Plugin optimization...?

Hi everybody,
hope you all are doing fine.

I practicaly finished my game.
It is an educational videogame especially made for my students, to make them practice and exercise on spanish grammar and reading/listening comprehension while having fun playing (I am a spanish teacher). It is very, very simple as a game, I basically only changed the combat system so that to hit enemies the player have to anwer a question (same thing for opening/activating doors, bridges, secrets, chest and so on).
I made it very simple because the target is 14-15yo students who often have little or no videogame experience. For the same reason, I almost only used RPG Maker's assets.
The game is completely free, finished and playable, although at the moment it is only in italian (the introductory part, then the game switches to spanish, of course). According to Google analytics, here in Italy already ~350 people downloaded it (this makes me so happy), and I am working on the english version of the game, it'll be ready in a month or so.
If you wanna give a look at the game/project, here's the webpage: www.pressplayonpeople.com/en (however I will post it in "completed games" as soon as it will be 100% completed)
As I told, only little improvements have to be made (for example, faces expressions).
However, I am here to ask you advices on the game's plugins optimizations, as some users told me that they suffered some lags while playing on older machines. Also I'd like to optimize the game because once the Win version is finished I'd like to work on an Android version of the game.
Here I attach you the list of the plugins.
If you have any advice on how I can move/change them to improve the game performance (if this is possible, of course), you'll have my everlasting gratitutde.
Have a good day/night.

​

Plugin_list.jpg
Most plugins have only a minor effect on the game performance.
if you're experiencing lag, then the most likely causes are elsewhere, like parallel processes or too large parallax pictures and so on.

lag can have different reasons however, you need to give a description of where you have problems and what the game does there before we can start helping you with optimizations.
Hi!
Most plugins have only a minor effect on the game performance.
Thanks, this is what I wanted to hear.
There are very few parallel processes, and the game uses unly one small parallax image, and only during few scenarios.
Problem is that I don't know these people, nor I have the possibilities to have more detailed informations. They are about 20-25 people who downloaded my game and only reported me through Facebook/other socials things like "game freezes for some seconds" or "game quitted unexpectedly", but I don't know on what machine they run the game (I suspect that in the most part of this cases they were old machines, as a couple of them admitted when I had the opportunity to ask) or what are their level of computer knowkedge (here in Italy most teachers are not famous for digital literacy, to put it mildly: a colleague of mine uses a PC running Winidows 7, just to give you an example).
It is for these reasons that I wanted to optimize game performances.
Thanks again, if someone has any other suggestion to do this, not only related to plugins, I would be glad to know.
although like andar said above that most plugin does not affect performance much...

there is still some plugins which could cause performance drops in my opinion...
and since you don't have access to the computer in problem... it will be hard to pinpoint which plugin causing it...

you also need to pinpoint which part of the game that freeze / crash... maps? battle? menu?
etc... maybe you could ask the one reporting it in which part of the game they crashed / froze...

also... from what i see you use lightning plugin... it's one of the type of plugin that could potentially cause performance issue (especially on older computers)... so if the performance issue happen on maps... that plugin have a potential to be the culprit

hope this help.
another reason to point out if a computer use low ram (8gb) and/or
low video card that cannot handle games.

so far I know, for rpg requires at least 12-16gb ram and a good
videocard/cpu to run it smoothly.

all the games I test here didn't gave issues, except 1 which runs alot
of parallel processes to keep things up to date in town (only that map).

so I dont know how your game runs on my system, to see if it lags on my end.
otherwise, you can make a few small changes to make it smoother when/where/if
possible to do so.
@Fufi_Saintz
the posters above are right - I simply missed that there was a lighting type plugin in the list.
because yes, that is one of the few plugins that can cause a lot of lag if used wrong.

unfortunately the only "optimisation" to that has nothing to do with the plugins itself, it would simply be to use less lighting sources if that is what causes the lag.
and even in that case the true cause of the lag would be that the computer in question is not powerfull enough to handle the lighting....
Many thanks to all of you, folks!

you also need to pinpoint which part of the game that freeze / crash... maps? battle? menu?
etc... maybe you could ask the one reporting it in which part of the game they crashed / froze...
As far as I can understand, the game freezes especially during battles.

Lighting effects are only used in very small areas/scenarios with very few (and in many cases none) parallel processes or moving characters; as an example, in the photo you can see one of the more 'heavy' situation of the whole game. Not 'heavy' at all, as you can see the room is very small.
Could it be that the problem is more related to flashing effects rather than lighting effects? I'm asking because as I wrote I'm also studying to make an Android version of the game, and many people/guide says that on Android flashing causes a lot of performance problems.
Many people suggest to eliminate all flashing effects from animations, one guide suggest using this plugin to do that (not tried it yet):

Sprite_Animation.prototype.updateFlash = function() {
//if (this._flashDuration > 0) { //completely removes flash effects
//var d = this._flashDuration--;
//this._flashColor[3] *= (d - 1) / d;
//this._target.setBlendColor(this._flashColor);
//}
};

Can this be used also in the Win version of the game to improve performance on lower-end PCs? As well as some Android-related optimization plugins like Kodera's?

Also, just to know: I updated NW.js to improve game performances, as explained in this guide. Could this affects performances in a negative way on older machines? Do i have to downgrade it to the original version or can I continue using the updated NW.js?

so far I know, for rpg requires at least 12-16gb ram and a good
videocard/cpu to run it smoothly.
Omg, really? I read somewhere that 4/6GB RAM are fine to run simples RPG Maker games (mine sure is), isn't it true? A simple lighting plugin just can causes the minimum requirement to increase that much?

all the games I test here didn't gave issues, except 1 which runs alot
of parallel processes to keep things up to date in town (only that map).

so I dont know how your game runs on my system, to see if it lags on my end.
otherwise, you can make a few small changes to make it smoother when/where/if
possible to do so.
Many thanks, I'll consider the option to ask you to test the game somewhen in the future :-D, but I have a PC equipped with an AMD Ryzen 4000 series, a SSD drive and (only) 8GB of RAM, with a GTX1650 GPU; not a beast, but I never-ever had any problem while testing/playing the game.

That's why in the end I think that the problem is mainly related to user's low-end old machines rather than plugins/game optimization. I could increase minimum requirements specifications in the game's website, but I don't like the idea of cutting out people from downloading the game.. Still prefer to try to find a way to improve performance, or to keep it like it is now.
for your specs, only a nice RAM to 16 (if you have 4 slots or if 2, 2x 8gb)
would be perfect for you already.

SSD runs the spec fast and open apps faster.

low end pc (not with a good or gaming graphic card) have troubles
running games (specially high end games).

big maps (double as default or bigger) needs loading, high end
load those maps faster.

lightining can play a role into it, as terrax has some issue, you could
try to replace with commity_lighting as this one improve terrax plugin
as it uses its base as well and solve many issues on terrax plugin.

small maps with lighting should not be a problem though, but could
happen.

I'm more than happy to playtest if required and when I got time.

as other also mentioned, if not editor, pc, (older one), laptops, android <4.x
can have trouble running it as other with high end gaming system, or using
it for apps that need a stronger system to run has a mostly a base of 16GB RAM
in it, some even 32GB RAM.

it has so many factor's, even plugin order might be one, how you event it
and has an oversight that should be used (like wait 1 frame or 2) because
it could be to fast between things (not for text boxes) as it need a wait
in order to render it.

parallels running in the background or on the map, background APPS on
the pc can also play a role, so you have to include all those things as well
if they lag and has a website with 5 tabs open, and 3 apps on the background,
for low end, the game can lag in the beginning as they dont have enough
RAM left to run the game smoothly.
I have a PC equipped with an AMD Ryzen 4000 series, a SSD drive and (only) 8GB of RAM, with a GTX1650 GPU; not a beast, but I never-ever had any problem while testing/playing the game.
I have the same amount of system RAM, an older/slower CPU/GPU, and a HDD, and I haven't seen any problems either. Some ideas, though:
  1. If it's not a web game: systems with integrated graphics + dedicated GPU will often select the former for RM games. You can tell those players to try forcing the game to run on the dedicated GPU, e.g. via the Nvidia Control Panel for Nvidia users. (I don't know if there's a way to somehow "flag" a deployed game so this happens automatically.)

  2. If the game's image cache size is too small, that could cause the game to load files an unnecessary number of times, e.g. image B loads -> cache goes over limit -> old image A pushed out to make space -> ... -> need image A again, reload from disk. This is particularly relevant if you load a lot of (big) images from files. Community_Basic lets you increase the cache size.

  3. Where did these freezes/crashes happen? It might just be that you have some event there that takes a lot of processing, which people with faster CPUs don't really notice. After all, it still looks like 60 fps even if your system is capable of running it at 200.

    Similarly, background processes may also be contributing, e.g. an auto-updater for another application or an anti-virus scan may use up some of the CPU the game needs to stay at 60 fps. Some security apps have a realtime script-scanning feature, too, which might lock your game's core scripts (and therefore the game) until scanning is done. Obviously you can't do anything about that, though.

another reason to point out if a computer use low ram (8gb) and/or
low video card that cannot handle games.

so far I know, for rpg requires at least 12-16gb ram and a good
videocard/cpu to run it smoothly.
This sounds unrealistic to me; can you provide a link to an example game? I feel like any RM game with such high requirements is either very fancy or badly designed...perhaps both. 😴

That said, if you have other apps open in the background, that will limit the amount of RAM available. Defective RAM modules are another possibility.
StoneWorks is the only game that lags in town (but you need at least
craft/build all town to max, and especially on the final battle of the
demo where the fight lags ALOT, this because of parallel processes.

8GB RAM would be hard to handle this part, but he found a way I think
to make it more less laggy, but it is also an evented ABS system which
also require parallel process.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-optimization.145889/