Commit Graph

7 Commits

Author SHA1 Message Date
Erich Schubert
6431ef7324
Trivial improvement to get_item_group (#15260)
One hash table lookup is enough, and this is even easier for the JIT to inline, optimize, etc.
2024-10-14 22:09:01 +02:00
sfan5
c4703a7f19 Fix wrong collision axis in Lua moveresult
introduced by c24a04d246221e13a626f4a4dd34037a5332a935
2024-05-17 14:32:57 +02:00
grorp
af8cb63292
Add object's own position for each collision to moveresult (#14608) 2024-05-05 13:28:59 +02:00
sfan5
c24a04d246 Optimize pushing collision data for entity on_step
Since this is fixed overhead for every entity, this is important to optimize.
This optimizes one very common case.

before:
  push_collision_move_result [us] _____________ 64512x   3.562

after:
  push_collision_move_result [us] _____________ 72636x   0.831
2024-05-03 16:28:29 +02:00
sfan5
93dfa8a6d8
Optimize and improve built-in PNG writer (#14020) 2023-12-27 11:56:48 +01:00
Jude Melton-Houghton
5c248c2d7d Add callback on_mapblocks_changed 2022-12-24 08:24:59 -05:00
sfan5
e6385e2ab7 Reorganize some builtin functions in preparation for async env 2022-05-02 20:54:55 +02:00