userJarryd Campicancel
branchrust_reboot/main/vending_machine_optimisationcancel

2 Commits over 121 Days - 0.00cph!

8 Months Ago
Merge from main
11 Months Ago
Improve performance of vending machine screens In a test of 200 vm's in network range, the cost of updating these screens is the highest single cost in the game (about 0.46ms a frame) Updated screen script to use new NotifyLod system to use the regular LOD system rather than checking camera distance every frame NotifyLod now turns off the screen component when out of range, completely removing the runtime cost if the player is more than 15m away Reimplemented the fade in/out that was commented out due to a memory leak, reimplemnt it with MaterialPropertyBlocks for better performance Updated all vending machine prefabs, monuments will need a S2P but backwards compatibility is preserved so they can still run in the old mode