branchrust_reboot/main/playerinventory_oncycle_optimcancel

2 Commits over 0 Days - ∞cph!

Today
Optim: ItemContainer.OnCycle now uses cached list of items with a callback - added a perf test of 300 containers with ~10% items with OnCycle callback Goes from 0.179 ms down to 0.074ms(-58%) for 300 player inventories. Real world server's invoke times are 0.97ms for 171 inventories, so might need to move it out of invokes later. Tests: ran unit test
Today
Tests: add ItemContainer.TestOnCycle test Tests: ran unit tests