Performance - Safe zone IsActionAllowed
Game version: 1.200.032
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