branchrust_reboot/main/misc_alloc_cleanupcancel
22 Commits over 0 Days - Infinitycph!
Make sure to also rebuild plant info when new quality data comes in via rpc without a network update
Refactor and optimize LookAtIOEnt, avoid various allocs when wiring or updating battery info, avoid physics query every frame for turret interference
Optimize LookAtPlant and LookAtPlanter, only rebuild if data changed
Skip ItemIcon refreshing while not visible, now deferred to when the inventory opens
Before, any hidden icons would refresh on inventory changes, for example updating their amount and hover text every time you shot a gun
Also avoid some unnecessary OnItemAmountChanged broadcasts and hover text rebuild if data didn't change
Fix SelectedBlueprint.CanCraft running every frame while the crafting menu is closed, small but unnecessary
Fix all skinned items allocating on every inventory update when getting their icon sprite
Fix wounded UI formatting every frame
Fix sleeping bag map markers and death screen buttons allocating every frame
Fix a Sound alloc on every Init, Retire, StopAndRecycle, FadeOutAndRecycle
Coming from RustLog passing definition.name as an argument, which would allocate even with logging disabled
Added a missing space between the name and the id in the logs
Fixed CraftingNotice allocating every frame when crafting an item
Also converted them to RustText so they can display RTL languages
Avoid alloc when cleaning up expired projectiles, fix projectiles leaking when baseplayer is destroyed
Remove planner linq when looking for sockets
Avoid allocs when ticking hurt triggers
Fix linq every frame in cooking visuals