That makes sense. How can I actually set or simulate a 6-frame delay like that? Is there a specific way to delay the HUD update by exactly that amount?
Random Freezing Issues in RPG Maker MV (Performance Problem)
RPG Maker MV SupportHere are three screenshots showing the parallel events I currently have set up in the game. Could any of these parallel events be causing performance issues or delays?
For example, HUD money uses variable 30, you can store the actually money number in variable 60.
So when money changes, you update variable 60 instead. In the meanwhile, make a parallel common event, copy variable 60 to variable 30, then wait for 6 frames. The other values can use similar method.
So when money changes, you update variable 60 instead. In the meanwhile, make a parallel common event, copy variable 60 to variable 30, then wait for 6 frames. The other values can use similar method.
I don't see obvious problem in your screenshots.
I tried deleting some parallel events and also reduced the map size by half. After doing that, I noticed an improvement in performance and fewer freezes. However, both the events I removed and the larger map size are actually important for my game and its features.
Do you have any suggestions on how I could optimize these parallel events or handle large maps more efficiently? I’d really appreciate any tips on how to improve overall performance without removing essential parts of the game.
The game should be able to handle a few dozens of events without slow down. Parallel events don't slow down the game directly. Unless they do something stressful to your computer.
I can only guess:
1) Plugins that add display elements, like HUD, but I don't think it is map size related.
2) Event indicator (labels over their heads), but I think I need to actually read the code to judge. Usually they don't refresh every frame considering the author is not a novice. Shadows are the same I think.
3) There are actually more events than it is shown in your screenshot. For example you use event spawner to spawn a few hundreds events.
4) Your pc is too old, have a faulty display driver, etc. Maybe you can make a smaller demo so different people can test if they have the same problem on their hardwares.
I can only guess:
1) Plugins that add display elements, like HUD, but I don't think it is map size related.
2) Event indicator (labels over their heads), but I think I need to actually read the code to judge. Usually they don't refresh every frame considering the author is not a novice. Shadows are the same I think.
3) There are actually more events than it is shown in your screenshot. For example you use event spawner to spawn a few hundreds events.
4) Your pc is too old, have a faulty display driver, etc. Maybe you can make a smaller demo so different people can test if they have the same problem on their hardwares.
Original thread: https://forums.rpgmakerweb.com/threads/random-freezing-issues-in-rpg-maker-mv-performance-problem.176740/