Poor performance in large parks
Opened this issue · 0 comments
mrmagic2020 commented
Describe the bug
In larger scenarios with lots of rides and peeps, the plugin causes performance issues. There is a significant decrease in FPS whenever the plugin updates the statistics (the default is every 10 seconds).
To Reproduce
Steps to reproduce the behavior:
- Turn on show FPS in options.
- Load a large park with the plugin loaded. For example,
testleveldata1
provided by OpenRCT2. - Observe that the FPS drops significantly every update_ratio seconds.
Expected behavior
Minimal impact on performance.
Desktop (please complete the following information):
- OS: macOS 14.4.1
- OpenRCT2 Version: v0.4.11
Possible Solutions
- Add options to manually update statistics.
- Maintain an offset on each set of calculations.
- Optimise time complexity.