FPS drops to 30 when more than 1 event image on map

I just determined this by copying the map and deleting events one by one - it allows me an unlimited amount of events without an image, but as soon as there exists more than 1 that uses an image, I get the FPS drop. Nothing on the map uses parallel processes, none of the images are larger than 48x48 (a single tile), and none of them move. They are all just representative of "objects" the player can interact with that erase upon doing so, to give the illusion that the player has "picked up" the object.

This particular map is 16x16 tiles; there are 17 events without images (player transfer, generic message window, etc) and only 4 with images, all set to Direction Fix and Walking turned off. No matter which of those 4 is left after test-deleting the other 3, this lag persists. The only plugin being used for any of them is Shaz's Character Anchors, but even removing the notetag and/or turning the plugin off still causes the FPS drop. Otherwise, the player can move freely on maps as large as 96x96 tiles at 60 FPS, which is why it feels so strange that the addition of more than a single, nonmoving event should result in this much lag.

Any ideas? I'm using the latest RMMV (standalone, not Steam) and there is no use of parallax or animated tiles on the affected maps. Any other important details I may have forgotten to specify please let me know. And I apologize if I've posted in the wrong place, I tried to find similar questions and post in the same category, but it's a bit hard to tell what goes where.
Nothing on the map uses parallel processes,
But do you have parallel common events. And, are you 100% sure about that?


I just determined this by copying the map and deleting events one by one
But have you tried this in a new project entirely?


The only plugin being used for any of them is Shaz's Character Anchors
But are there other plugins that your project is using, whether or not it actually affects the events or not.


I'm using the latest RMMV
Have you updated the NWJS?



Additionally, system specs, screen shots of your plugin manager, and screen shots of the events would aid in troubleshooting the problem.
Thanks for the response. There have been a few changes to my initial discovery in the time it took for my post to be approved, but I will answer your questions first.
But do you have parallel common events. And, are you 100% sure about that?
I have 2 total in the game so far, neither have occasion to be called on this map and, as I said, it's only this map that seems to have the issue.

But have you tried this in a new project entirely?
There were no issues in the test project map, which consisted of the same dimensions as the problematic actual game map and 4 blank events with a graphic, but no I did not recreate the 17 other events that existed on said map... is there a simple transfer way of doing this or would I have to enter each event's info again manually?
But are there other plugins that your project is using, whether or not it actually affects the events or not.
Yes, that is true. The other day when I learned how to check FPS (I'm still very new to making) I went through the entire list of about 20 plugins, manually turning them off in batches of 5 until I found the problematic plugin and removed it. There had been no other FPS drops on larger maps since then, and I figured if I got things working in the 96 tile map, the others that were a fraction of that size shouldn't have any issue... obviously I was wrong!
Have you updated the NWJS?
I have never heard of such a thing, actually! I only bought and installed the program from the company website 1 month ago... is it something that needs to be done in addition to the installation? Or should it already be the latest version since my installation was so recent?
Additionally, system specs, screen shots of your plugin manager, and screen shots of the events would aid in troubleshooting the problem.
I've attached the relevant images, let me know if you need more. For plugins, community basic is there, it just got cut off in the screenshot. And for events, that's the only one with anything in it. The others were just empty Action Button trigger events with their images put in place so I could keep track of what I wanted where on this map.

In the hours since submitting the OP, I made another small map of just 10x8 tiles, with 9 such image-using (albeit empty) events, and experience no FPS drop on that map. So now I'm even more unsure of what the cause could be, but at least that means it's probably something I can solve, and not a definite problem gamewide.
Whoa, an old ass CPU and only 4 gigs of RAM? Jesus, your rig is definitely aged!
Whoa, an old ass CPU and only 4 gigs of RAM? Jesus, your rig is definitely aged!
Yes, I was hesitant to share that my laptop is 14 years old because I was afraid it would instantly be declared the obvious problem, and all other attempts to identify a cause would be halted... but, actually it runs RMMV quite well, never had a problem with the cooling fan which is usually my laptop's way of telling me to ease up. I'm quite pleased! Making a game is something I never thought possible and yet it's going so well, I almost feel like I'm pushing the envelope getting picky about FPS drops when I should just be glad it works at all.

Actually that's a good point, other people will most likely have a better CPU and therefore not experience FPS drops at all... I guess it wouldn't be the end of the world if the worst case scenario is me having to put up with 30 FPS while playtesting, as long as the game runs fine for other people. Of course, I'd still like to try to work out a solution just in case, though.
I did not recreate the 17 other events that existed on said map... is there a simple transfer way of doing this or would I have to enter each event's info again manually?
You can open the two projects, click the square on the map that represents the event, and use copy and paste.

I have never heard of such a thing, actually! I only bought and installed the program from the company website 1 month ago... is it something that needs to be done in addition to the installation? Or should it already be the latest version since my installation was so recent?
No, @TheAM-Dol was asking because doing that can greatly affect (positively and negatively) how MV performs. If you don't know what you're doing on a technical level, you should not mess with your NW.js.

I'm with @Sword_of_Dusk, I'm inclined to blame your computer. It is woefully underpowered to be trying to run basically any video games.

Windows 7 is an obsolete operating system at this point, and you only have 4 GB of RAM - Windows 7 needs 2 of that just to run smoothly.

Do you even have a dedicated video card?

Something that should be a simple test is to deploy your game, share it with a friend who has a modern computer, ask them if they experience any performance drops on that map.
Yes, I was hesitant to share that my laptop is 14 years old because I was afraid it would instantly be declared the obvious problem, and all other attempts to identify a cause would be halted... but, actually it runs RMMV quite well, never had a problem with the cooling fan which is usually my laptop's way of telling me to ease up. I'm quite pleased!
You really never know with technology. My old laptop had a freaking Celeron processor and 8 GB of RAM (started at 4 though. Had to upgrade myself) and ran MV with ease. Never really noticed any issues. Figured MZ would be the same, and I was right . . . to a point. When I entered a battle, it suddenly chugged hard.

My point is that when you're using a potato, the faults don't always appear immediately. Sometimes it takes you doing something you hadn't tried yet to expose the weakness.
Looks like Turan was able to basically summarize my thoughts before I could reply.
Anyways, usual RM performance copy-pasta:
RPG Maker is a single-core/single-threaded, and MV is a 32 bit application (MZ is 64 bit, whoop), but both woefully under utilizes the GPU.
Doesn't matter how much ram or how many cores/threads your super CPU has as the application cannot take advantage of that. Everything is running on a single thread, so things can quickly bottleneck. Because of its single-core/single-thread preference, RM likes fast CPUs, not multi-core CPUs.

To modify this copy-pasta for your specific case;
Broadly speaking, RM prefers higher clock speeds, and at 2.1 GHZ on your CPU (which is also quite) old is going to greatly impact how well the game can perform.
Couple that with a low amount of Ram where a lot of assets are going to be cached and you are going to regularly run into performance problems.

You might be able to optimize it to run on a potato (which is your laptop), but you're going to be constantly fighting the performance problems. You're really going to need some strong technical knowledge to optimize engine code, take advantage of newer versions of the back-end programs, and really, really optimize the hell out of your events.

Basically, what I think is happening, due to your CPU's low clock speed and limited RAM is that even your plugins are going to bottle neck performance.
You can open the two projects, click the square on the map that represents the event, and use copy and paste.
Ah, I never knew! Somehow I wouldv've thought opening 2 projects at once would be on the "never do this or your entire system will crash and corrupt forever" list I've seen warned about here and there.
No, @TheAM-Dol was asking because doing that can greatly affect (positively and negatively) how MV performs. If you don't know what you're doing on a technical level, you should not mess with your NW.js.
I mean, I'm not a wizard or anything, but I'm not a digital dummy either. I looked up a guide on how to do it and it didn't seem like neuroscience at a glance, but if you don't think it's worth it in my case, I won't touch it.
I'm with @Sword_of_Dusk, I'm inclined to blame your computer. It is woefully underpowered to be trying to run basically any video games.
I'm definitely messing something up here trying to multiquote the both of you at once but yeah, I was afraid the culprit would just be the machine. But I also didn't think 4 virtually empty events would cause the lag, since I'd only ever seen parallel processes warned about and never had any issues with those when I tested with (and then deleted) them, it made me believe as long as I kept them to a minimum I'd be fine. As long as the lag is just on my end, I can live with it! As you can imagine, I'm kind of used to that by now... haha

Looks like Turan was able to basically summarize my thoughts before I could reply.
Anyways, usual RM performance copy-pasta:
RPG Maker is a single-core/single-threaded, and MV is a 32 bit application (MZ is 64 bit, whoop), but both woefully under utilizes the GPU.
Doesn't matter how much ram or how many cores/threads your super CPU has as the application cannot take advantage of that. Everything is running on a single thread, so things can quickly bottleneck. Because of its single-core/single-thread preference, RM likes fast CPUs, not multi-core CPUs.

To modify this copy-pasta for your specific case;
Broadly speaking, RM prefers higher clock speeds, and at 2.1 GHZ on your CPU (which is also quite) old is going to greatly impact how well the game can perform.
Couple that with a low amount of Ram where a lot of assets are going to be cached and you are going to regularly run into performance problems.

You might be able to optimize it to run on a potato (which is your laptop), but you're going to be constantly fighting the performance problems. You're really going to need some strong technical knowledge to optimize engine code, take advantage of newer versions of the back-end programs, and really, really optimize the hell out of your events.

Basically, what I think is happening, due to your CPU's low clock speed and limited RAM is that even your plugins are going to bottle neck performance.
If it makes a difference, my game is pretty small, with only a few maps (most under 20sq tiles) and not much exploration. I'm hoping that will allow me to limit some of the issues I would run into making a larger, longer game, such as a full fledged RPG, but there have definitely been some cool plugins I've had to remove because of how much chug they caused.

Although, I assume that since it's just on my end, I'd be able to test each event individually, and then once I'm sure they work as intended, put them all back in for the final project? I don't really intend to be able to play my own game, I'm having a ton of fun making it knowing there are a lot of people excited to play it already. My concern was that I was overloading the game engine itself somehow, but if that's not the case then maybe it's not as big a problem as I thought.
Well, like I said, you should ask a friend to test. It's possible that there is something weird with your events or project that's causing it.

But sure, a computer with those specs is definitely the first suspect.

I mean, I'm not a wizard or anything, but I'm not a digital dummy either. I looked up a guide on how to do it and it didn't seem like neuroscience at a glance, but if you don't think it's worth it in my case, I won't touch it.
If you looked it up, you probably saw any thread about it has just as many people saying "this borked my project completely" as there are saying it showed a nice improvement in some way. (not to mention the separate support threads saying "I've had these problems ever since I updated...")

And depending on the version it can mess with the functionality of the code in both the base engine and plugins, so that's what I'm saying - if you don't know exactly what it's changing and how to edit the code to accommodate it, it's not worth it.

There are plenty of games that run perfectly well with the NW.js version that MV comes with.
I mean, I'm not a wizard or anything, but I'm not a digital dummy either. I looked up a guide on how to do it and it didn't seem like neuroscience at a glance, but if you don't think it's worth it in my case, I won't touch it.
I don't think it's too complicated. The only thing to keep in mind is that beyond a certain version, many plugins will begin to break, so you are limited to what version you can update to. My recommendation is to follow the KillerGin's guide exactly to the T, including the version number he uses in the post. (iirc, I updated my game to a slightly higher version than his and it caused a lot of problems so had to downgrade in the end.)


But I also didn't think 4 virtually empty events would cause the lag
The lag is likely not the processing of the event, but to be clear, plugins may interact with events and therefore require more overhead per event. It's rare, but not impossible. However, your assumption is mostly correct in that each event causes a negligible performance impact and therefore not something worth worrying about - probably even on a system as ancient as yours.
I suspect, because you are assigning images to the events, that Ram could be a potential problem here.
You can verify this.
Open the task manager and check memory utilization for both the entire system, and for the game. You can also check the game at different maps. Once the garbage collector unloads all the old map references of the previous map, you can compare a completely empty map to your map with events.
The lag is likely not the processing of the event, but to be clear, plugins may interact with events and therefore require more overhead per event. It's rare, but not impossible. However, your assumption is mostly correct in that each event causes a negligible performance impact and therefore not something worth worrying about - probably even on a system as ancient as yours.
I suspect, because you are assigning images to the events, that Ram could be a potential problem here.
You can verify this.
Open the task manager and check memory utilization for both the entire system, and for the game. You can also check the game at different maps. Once the garbage collector unloads all the old map references of the previous map, you can compare a completely empty map to your map with events.
Okay, this is really weird. I opened the game and task manager, now the FPS is back between 50-60, but I haven't changed anything since my OP... in fact, I have more garbage programs open on my computer now than I did when I first noticed the lag. Not quite sure how to read the things you mentioned, but it's saying memory is 3.13GB and physical memory 79%, while CPU usage flows on the lower end of between 45-85 while the game runs, all on the previously problematic map.

So it seems the problem has disappeared just as quickly as it appeared? In any case, thank you to everyone who showed up to help or even just got a laugh at my fossilized stone tablet of a computer (not sarcasm! it makes me laugh to see how shocked people get about its age) and here's hoping it'll be able to tough it out all the way to the game's completion.
Fwiw, many old laptops are pretty easy to open up, and I am sure DDR3 SODIMMs are dirt cheap to find. It probably wouldn't hurt to just upgrade the memory in your computer.
Check to make sure you can open it up first, and make sure the memory isn't soldered to the board. So long as there are SODIMMs slots, it's as easy as pulling out the old Ram and putting in the new. (I'm sure there are plenty of online guides for how to upgrade you Ram in your laptop)
You may also need to double check what the upper limit is on RAM. I cannot recall if old Windows versions could only handle a maximum of 4GB of RAM.

Anyways, I wouldn't consider this problem solved. But keep us posted.
I also recommend doing what Turan recommended. Deploy the game and have a friend or someone test run it on a modern computer to check for performance problems. If it's as simple as checking fps, that wouldn't take me long if you want to zip up and deploy a version for me to check.
It could also be other stuff.

If you've restarted your computer since the last time you tested, or closed some other program that was taking up just enough resources to tip your MV game over the edge, or something like that.
Ah, I never knew! Somehow I wouldv've thought opening 2 projects at once would be on the "never do this or your entire system will crash and corrupt forever" list I've seen warned about here and there.
Maybe on a super old potato, but basically any current computer can handle such a thing.
Fwiw, many old laptops are pretty easy to open up, and I am sure DDR3 SODIMMs are dirt cheap to find. It probably wouldn't hurt to just upgrade the memory in your computer.
Check to make sure you can open it up first, and make sure the memory isn't soldered to the board. So long as there are SODIMMs slots, it's as easy as pulling out the old Ram and putting in the new. (I'm sure there are plenty of online guides for how to upgrade you Ram in your laptop)
You may also need to double check what the upper limit is on RAM. I cannot recall if old Windows versions could only handle a maximum of 4GB of RAM.

Anyways, I wouldn't consider this problem solved. But keep us posted.
I also recommend doing what Turan recommended. Deploy the game and have a friend or someone test run it on a modern computer to check for performance problems. If it's as simple as checking fps, that wouldn't take me long if you want to zip up and deploy a version for me to check.
Oh I open it up all the time, have to completely disassemble the damn thing to get to the fan. The problem is the RAM needs to be seated in a peculiar way that's impossible to tell from a glance, and every single time it takes trial and error adjustments to get it to boot. Unfortunately, 4GB is the max for this model. At the time I never thought gaming on a computer would be of interest to me, and now that I have nerve damage in my hands I wouldn't be able do use a laptop for that anyway, so upgrading is not really practical for the cost. I don't ask too much of my laptop so it works for what I need, though. I have a Win10 upgrade disc but a lot of things I rely on would apparently become defunct without Win7, hence my paleozoism.
It could also be other stuff.

If you've restarted your computer since the last time you tested, or closed some other program that was taking up just enough resources to tip your MV game over the edge, or something like that.
I had done neither; I only shut it down every 3 days overnight, and keep Firefox and Telegram open at all times, with SAI2 as my art program of choice for pixel graphics. Otherwise, just a sleep mode every night for 8 hours, and I had been working on sprites for 2 hours when I noticed the FPS drop upon initializing the game after importing said sprites, then back to spriting for another several hours, then suddenly the FPS was normal. Go figure.

Also I kept forgetting to address the friend testing matter, the answer is yes, my 3 closest friends have high powered PCs and can test the game at any time. One of them is into tech/coding as a profession, and he's helped me with several plugins since I grew up on html and am very new to javascript. If any of them run into something that requires knowledge of RMMV to work out, I'm glad to know people here are able to offer their assistance.

I don't want to spam with updates as I know it's frowned upon here, but as far as keeping you posted, what should I be reporting back to the thread with? My current schedule is kind of just working on pixel art for 13 hours every day, and only really testing implementation of those things when the mood strikes. So I can't guarantee I'll be running into any related problems within a day or so that would prevent the thread from appearing stagnant while I attend to asset creation, and I'm just not sure how much time is allowed to elapse before it's considered an off-topic update and would require a new thread. I really do appreciate everyone's help so far though!
The only thing to keep in mind is that beyond a certain version, many plugins will begin to break, so you are limited to what version you can update to
Also, rather notably here, the newest versions of nwjs no longer support Windows 7.

I'm just not sure how much time is allowed to elapse before it's considered an off-topic update and would require a new thread
The usual rule is 30 days, though I'm not sure if the limit still applies if it's your own thread.

And I'd just like to add a general point about CPU speeds - I don't think that should in itself cause problems, unless other programs are eating up most of it. I regularly test my MV game at 1.1Ghz to make sure it can run on potatoes, and it very much works. My bet would mostly be on a deprecated OS causing problems.
as far as keeping you posted, what should I be reporting back to the thread with?
Maybe I've missed something, but...it doesn't matter at this point?

If it's running smoothly for you now, I think it's pretty clearly something computer-related - your RPG Maker game is going to function the same way every time.

Ditto with you getting a friend to playtest and double-check that it runs consistently on a modern computer.

But the rules (which you can access at the top or bottom of the page via "Help") say 72 hours between posts if you're the last one to write something. There is no necroposting rule on topics you started.
Maybe I've missed something, but...it doesn't matter at this point?
Sorry -- that was meant for TheAM-Dol who said not to close the thread just yet. I planned to report it solved this morning, just to give anyone who still had things to say time to get their replies in, but then they suggested leaving it open so I wasn't sure if there was more to it that I should be keeping an eye out for.

Now that I've been reassured that I wasn't doing anything wrong in the engine itself (which was my initial fear, that I had misunderstood eventing) I no longer consider it an issue that needs to take up anyone else's time. If I do run into more problems, I will take appropriate action to either update this thread, or start a new one in the relevant forum.

There is quite a lot of helpful discussion here, I'm already finding answers to questions I didn't even know I had just by browsing the main page. It's great to have such an active and experienced community to help make games!
I mean, you can close it if you personally feel it was solved. But tech gremlins turning the dial to "performance mode" is only temporary until those rascals turn it back to "sleepy time." So I just meant, we didn't really find a real solution, other than determining "tech gremlins".
If you are satisfied with that, then you are welcome to close it. Just, if this were my own problem, I wouldn't exactly consider that cased closed, especially when we had suggested trying some other troubleshooting steps, like having a friend try the game.

Keeping us posted would just be...what are the results of those troubleshooting steps, or has the computer/software continued to operate fine for the past x number of hours, or how the morning coffee tasted; the post is your oyster, seize the day.

Original thread: https://forums.rpgmakerweb.com/threads/fps-drops-to-30-when-more-than-1-event-image-on-map.165129/