Have you tried your game on any more modern Mac? The specs in your first post are really bad...that's not what I would consider even a low end gaming machine.
Need some help solving performance issues
RPG Maker MZ SupportI didn't mess with it much, but for me, disabling Events and Movement Core stabilized the FPS at a solid 60 and removed the stutter. It's the first thing I tried (since I already knew that that plugin can be problematic on maps that have a lot of events), so I didn't really dig into anything else.
Would you suggest something standard (like 1 wait frame at the beginning or end of every parallel event) or varied wait frames across all of them to stagger their processing?
Ideally, it's done thoughtfully - you ask how often this thing actually needs to be done in order to achieve its purpose, and let it do that.
For example, something that's polling for player input needs to be left without a wait because that can change any frame. Something that's checking the player position can have a wait 6 because that's the minimum time it would take the character to move to another tile.
Hmm, I don't think this will impact my game much in this case. I don't really have any "looping" parallel events, just ones that trigger once and then stop (none that are actively checking for anything, just ones that run once when a switch is flipped by another event and then flip the switch back off).
I am using plugins for the main things that might normally be handled by a parallel event, such as the time system (via Ocram Time). Because of this, the parallel event usage is very light in my actual events.
I did add waits to the few I have, but there doesn't seem to be a change in performance.
The events/movement being disabled would make sense, though unfortunately I depend very heavily on the region-based event triggers that this adds (my games encounter system is built using this).
All of my collisions are also handled with it's collision regions, so removing this would mean replacing it with other similar plugins which might cause the same problems in the end. Something for me to keep in mind if nothing else improves performance, though. I am seeing a boost on my end as well by disabling this, so I might have to re-think how I am handling collisions and my encounter effect triggers, and look for lighting alternatives since the lighting plugin requires this as well.
I have no newer Mac, though I do have a more mid-range PC available for testing, which is is running pretty well on. I am mainly using this janky mac as a worst-case scenario test device, as it has similar specs to the minimum requirements I see on other RPG Maker games on steam, so figure getting it at least playable on it is a decent goal. I would like the game to run well on SteamDeck as well, so shooting for lower min specs should help with that as well.
In the end, I am sure I'll have to find some balance between keeping the game working the way I want and making it available on lower end devices. I'll have a better idea of what seems reasonable as more folks run the game on their devices and let me know how well it is running.
You just may not be able to. I couldn't tell you what other people publishing games do to determine the requirements they list on Steam, but I bet it's not exhaustive playtesting with a machine that actually has those minimum specs.
The most common practice I've seen is to just reproduce what MZ itself lists for the system requirements. Thus, adding any kind of fanciness in terms of plugins makes those numbers no longer valid, and there's not really any point in trying to make yourself fit into them.
I don't know what version of MacOS you're using, but the last several require 4GB of RAM just to have the operating system run without error. Like I said before, I wouldn't presume any modern video game would run smoothly on that machine.
There are definitely alternative lighting and collision plugins. I would imagine that there are also alternative region trigger plugins, though I can't guarantee that off the top of my head.
To explain why I thought to try disabling that plugin right off the bat: about a year and a half ago, I ran a little test where I continually spawned events on a small map until my FPS dropped to 30. They were stationary events that had a sprite, but no commands, and they were not parallel.
When I used Events and Movement Core to spawn in the events, I was only able to spawn in 473 events.
When I switched to using Galv's Event Spawner instead, I was able to spawn in 7287 events--over 14x more than when Events and Movement Core was enabled.
I found the difference pretty concerning, because there were no other plugins running, the map was just a small empty grass field, and they were events that don't move or so anything. In a real game, that has other plugins, and parallel events firing, and has pathfinding calculations and such running, the 473 event limit would likely be much lower, to the point where it might be fair to consider the plugin to be impractical--especially when considering that you might want your game to have lower system requirements than a AAA game.
Since this was a year and a half ago, these numbers don't necessarily reflect the performance of the latest version of the plugin. Maybe it performs better now... or maybe worse. All I can say is that having that plugin installed seems to have a notable performance impact that scales with the number of events on the map (even if those events aren't doing anything).
I suspect that the system requirements listed for MZ are meant to refer to usage of the editor, so even if we set plugins aside, I don't know that I'd consider them to be a reasonable starting point.
Testing this further, the frame rate on SteamDeck has more than doubled after removing this. I think there's no way around it - I'll have to remove events/movement core and lighting, look for an alternative lighting plugin, and change my collisions from region-based to tileset-based, which I can certainly do.
I think this will definitely be worth the performance gain. Such a shame though, as the utility that events/movement core adds is so nice.
My main use for movement core was triggering effects like sfx, fog, screen filters, etc. when players enter certain areas (ie. signaling that an enemy encounter is near with a static sound and screen filter effect like Silent Hill). I noticed that there was a performance issue by using too many of these a while ago, so had already started moving towards using a "large events" plugin to just increase the size of events to trigger these on touch rather than using regions, which helped. I will just continue down this route and phase out region events altogether and drop the events/move plugin.
This seems to be the main culprit, so thank you! This should solve most of the issues. There is still slight stuttering on SteamDeck (just from 60-58 frame drops etc.) but I think I can certainly live with that.
Oh I agree, I'm just saying that's what I think people do (because I've seen the discussions in threads on here).
There are almost certainly alternatives - have you looked? @AquaEcho has a whole thread for VisuStella alternatives, and she has a Japanese plugin for just about everything (which may or may not have English instructions).
I think there is actually a region collision plugin that comes with MZ (in your DLC folder), so you might check that out. I don't recall what it's called, but I'm pretty sure it has the word "region" in it's name.
Otherwise, I'm pretty sure that I recall trying Yanfly's MV region restriction plugin in MZ a long time ago, and I think it either worked right off the bat, or it required very minimal editing in order to work.
But yeah, I agree that it's a pity that Events and Movement Core has this issue. In terms of the features it offers, I would rate it as one of the most universally useful plugins out there. But the plugin's performance impact makes it difficult for me to actually recommend it to people. You could try to report this to VisuStella and see if they're willing to look into it.
its bad coding. all plugins from 10 different people different ideas different coding. some have wrong frame rate some have mistakes in general. some plugins have same properties and and run same thing in different time so creating pixelated lag... this platform and JS is created by beginners mainly. later when they learn here how to create games they move to C++ or other coding languages... if coding is good JS is strong to handle even large 2D games.
best you can do is open all plugins try to make same frame update same or change some numbers if you dont know JS coding like me...
best you can do is open all plugins try to make same frame update same or change some numbers if you dont know JS coding like me...
From my own testing, sometimes it's actually more efficient to event things than to use a plugin. There's a myriad of reasons why this might be, one of them you experienced now in this thread: the event and move core plugin. It's doing so much extraneous stuff that it takes more process then 2 separate plugins doing the same thing.
A time system is something - depending on how extensively you are using it - might be better off being evented. It's one of the easier things to event anyways (as opposed to some of the things Event & Move Core might do)
And as a bonus, if you are curious to see the stats that Arthran and I have, I still have the charts. This was part of a project that unfortunately just seemed to fall through (though maybe one day it will still happen - still think about this regularly)
You'll have to excuse these pictures. They are screen-shots from my phone, so the quality might not actually be great (for some reason I can't directly download the graphs on the mobile version of Google Sheets)
Arthran, being the wizard genius he is, actually emulated the technique, which does put some room for error in the numbers; we started with non-VS plugins, Galv and Yanfly iirc, then edited those plugins to emulate VS's "technique" but applied it conservatively, so I would personally say these numbers may actually be WORSE using actual VS plugins, but that's not reflected in these graphs.
So the "Straight" means the plugins without the coding technique applied.
The light purple is when that technique is applied.
The deep purple can mostly be ignored, this was just a fun expirament we decided to do which was to apply that coding technique to the entire engine. Interesting, but statistically irrelevant.
@AquaEcho has been building out a list of free alternatives to VS plugins. I don't know if they planned to add commercial plugins that avoid said "coding technique" but I believe that's one of the main goals is that for those who do not support VS's plugins or otherwise find their coding practices intrusive to their game's development, there is a list of alternatives.
To end this, since it always stirs drama:
I have no problem with VS, and the plugins are quite good. But due to the coding practice, it's just something you should be mindful of when developing your game as each plugin will actively harm performance more than most other plugins.
Here's the link to the VisuStella Alternatives. I've avoided listing any paid plugins, even though some alternatives are only paid so I had to leave those blank for now. I might have to list them if I really can't find any free ones. I made an exception for those that are "semi-free", i.e. free for noncommercial use while clearly labeling them.
MZ - List of Free Alternatives to VisuStella Plugins
This is a work in progress list of completely free alternatives to VisuStella plugins. I prioritized English language plugins, or at least plugins with English in the plugin help file (green entries), and completely free for both noncommercial and commercial games. If a plugin is only in...
forums.rpgmakerweb.com
Galv spawn really good idea to have!
Original thread: https://forums.rpgmakerweb.com/threads/need-some-help-solving-performance-issues.163589/