frame allocs (25.2): physics, npc, vehicles and wildlife's bounded growth declared - id tables to their most, a walker slot, a guest's copies, a player's own vehicle, a table at a load
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
082fd26bf1
commit
34664e867f
7 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
const PH_INDEX: int = 8388607 # a body id's low 23 bits are its index (Jolt's BodyID)
|
||||
|
||||
# every body owns nothing: at a world's opening, the table made once at its size and kept after
|
||||
@alloc_ok("the body table made at its size when a world opens, kept after")
|
||||
function ph_own_reset(physics_st: mut PhysicsState, max_bodies: int) -> void {
|
||||
if len(physics_st.ph_own) < max_bodies {
|
||||
List.clear(physics_st.ph_own)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue