Performance - Safe zone IsActionAllowed

Viktor Ferenczi shared this bug 4 months ago
Reported – Awaiting fix

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

Replies (1)

photo
1

Hello, Viktor,

thanks for letting us know. The issue was reported internally.

Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file