Nitrox icon indicating copy to clipboard operation
Nitrox copied to clipboard

Performance improvements

Open tornac1234 opened this issue 1 year ago • 0 comments

Describe the issue

  • [ ] virtual colliders (VirtualCyclops.CreateColliderCopy) take some time to be built (they only need to be built once then they're cached): they use reflection and graph algorithms. It takes a total of ~10ms to build the 32 different constructables that can be built at the same time when starting a game with already those placed in a cyclops. To avoid performance impact during gameplay, the caching is done during initial sync (VirtualCyclops.InitializeConstructablesCache). Added in PR #2154

"Maybe we deem it not necessary at release. Or if the release candidate runs bad, we can look at these performance issues." Suggested by @Measurity

(NB: edit this description to add more things)

tornac1234 avatar Aug 13 '24 00:08 tornac1234