Performance - Safe zone IsActionAllowed
Reported
Game version: 1.200.032
Methods:
- MySafeZone.IsActionAllowed
- MySessionComponentSafeZones.IsActionAllowedForSafezone
The above methods are called frequently on multiplayer servers with many safe zones and grids, imposing a significant CPU load.
I've added simple caching of their result for up to 2 seconds reducing the CPU load by ~99%. You may want to apply a better fix.
See MySafeZonePatch and MySessionComponentSafeZonesPatch in https://github.com/viktor-ferenczi/performance-improvements
Run this test world in DS to reproduce (OneDrive due to its size): https://1drv.ms/u/s!AqEgz8G_d8TSh8wPzLoPp_dQDBRb7g?e=eBhsuv
Hello, Viktor,
thanks for letting us know. The issue was reported internally.
Kind Regards
Keen Software House: QA Department
Hello, Viktor,
thanks for letting us know. The issue was reported internally.
Kind Regards
Keen Software House: QA Department
Replies have been locked on this page!