Games are freezing/laging.

I have these issues on 90% rmmv games only.
-It's freezing when I call menu. Menu cursor doesn't response a sec, then stumbling a few seconds to work fine.
-While exiting menu.
-Sometimes while just walking hero freezing or stumbles.
-While transferring through locations.
But today I explored that it works perfectly if run them through the firefox.
Why are games have lags while lounched with .exe, but works fine while in browser ?
I bet you've got some antivirus that's grabbing hold of it. In that case, if you have all your projects under the same folder (like C:\MVGames for example), you can whitelist that whole folder and it'll leave everything in it alone.
I bet you've got some antivirus that's grabbing hold of it. In that case, if you have all your projects under the same folder (like C:\MVGames for example), you can whitelist that whole folder and it'll leave everything in it alone.

Nope, they all in different directories, projects in one, rmmv in other, and rmmv in another. And I reinstalled my windows not long time ago. Since then I even don't use antivirus. I have this issue with antivirus and without it.

Once I even tried to move rmmv game on ssd, but It's does change nothing.
The MV engine have some knowns lags issues with menu access and map transfert. :/
The MV engine have some knowns lags issues with menu access and map transfert. :/
If I'm playing through the firefox everything works fine. But through the .exe... Can't belive that all ppl playing with this lags or through the browser.
If I'm playing through the firefox everything works fine. But through the .exe... Can't belive that all ppl playing with this lags or through the browser.

I think most ppl are playing with lag, and waiting for a patch to fix it. It lags on top of the line pcs. I've tried 5 different machines they all lag.
Open your task manager and expand it so you can see all processes, and sort it by CPU (or try sorting by memory as well). Then start playing the game through the exe. See what jumps up to hog your system.
Open your task manager and expand it so you can see all processes, and sort it by CPU (or try sorting by memory as well). Then start playing the game through the exe. See what jumps up to hog your system.

It looks like cpu spikes. By default it's ~5-10% but transferring and menu button makes it up by 5-10%. And its jump to 80-90% in rare cases.
False. Most of the lags on menu and map transfer are due to plug-ins. MV is not responsible for how plug-ins code. I can see this in action all the way back in 1.3.1. There's no lag in a blank project, but once I put in Yanfly's plug-ins, I get a 2 - 3 second delay on every event interaction. But that is nothing MV can fix and it is all up to the developers of those plug-ins to fix.

Odds are high the lag you are seeing on other's games is due to the plug-ins they use being poorly coded. There is nothing that can be done to fix that short of asking the developer of those games to see if they can get newer plug-ins that work better (version 1.5 changed how plug-ins worked, but it is still new enough that few games have been made with it), or see if they can use different plug-ins.
False. Most of the lags on menu and map transfer are due to plug-ins. MV is not responsible for how plug-ins code. I can see this in action all the way back in 1.3.1. There's no lag in a blank project, but once I put in Yanfly's plug-ins, I get a 2 - 3 second delay on every event interaction. But that is nothing MV can fix and it is all up to the developers of those plug-ins to fix.

Odds are high the lag you are seeing on other's games is due to the plug-ins they use being poorly coded. There is nothing that can be done to fix that short of asking the developer of those games to see if they can get newer plug-ins that work better (version 1.5 changed how plug-ins worked, but it is still new enough that few games have been made with it), or see if they can use different plug-ins.

Okay, but why it's runs perfectly with firefox browser ?
I'll try a project w/o plugins.
MV was designed for browsers, not desktops. So in a browser you're running it in it's native environment, so it is going to perform better.

There is a plug-in to optimize it for desktops, but again the games made with MV you are playing probabaly didn't use that.
The posts here are mixing up two different things.

The "general lag" most of the posters here assume has nothing to do with the lag that the OP described - he specifically stated that the game runs perfectly in firefox, but doesn't when starting by the exe.

@starkurt the program in the project folder is nothing but a chromium-based browser that starts the index.html. If that creates lag but a start of the index.html with firefox does not, then the cause is in a setting specific to the chromium browser that is that exe.
And I know that some versions of the chromium browser have a default setting to block local access as a security measure against virus-infected websites - that prevented people from launching their games when MV was new, while firefox (with different settings) worked perfectly from the beginning

Can you tell us the core version of your project? Open its rpg_core.js file with any text editor and tell us the number at the end of the title line. If there is no number there, it's 1.0.0
This will help us determine other possible sources for the problem.

@everyone else:
The original memory leaks and the lag caused by them have been fixed in the default engine since version 1.3 or 1.4. However, if a game out there is still using an older core it will still have those problems. But again that is not a problem of MV, it is a problem of the game developer who didn't update their game to use the fixed core without lag.
And as said before the same goes if they use a plugin that creates new memory leaks - that is something the game developer and the plugin writers have to solve, nothing Degica or Kadokawa can do in the engine to prevent buggy code added by plugins.
@Andar : I think where some of the confusion lies is Yanfly's plug-ins with 1.3.1 caused lag, and since most people use Yanfly's plug-ins, they assume it is part of the engine. Again, I proved it by testing an empty 1.3.1 project, no lag, but add Yanfly's plug-ins and I get a 2 - 3 second delay on all event interactions. No other plug-ins were in use but Yanfly.

That's honestly why I still use ACE, as I needed those plug-ins, but a 2 - 3 second delay on everything made the game look too unprofessional to me so I left MV. Now maybe it's been fixed on Yanfly's side, but that is just what I experienced back then.

Still nothing the MV devs can do to fix though.
Can you tell us the core version of your project?

rpg_core.js v1.5.0

by testing an empty 1.3.1 project, no lag, but add Yanfly's plug-ins and I get a 2 - 3 second delay on all event interactions. .

Today I've tested an empty project and it's still have some lags. Maybe they feels like on 10-20% less.
So looks like there is no solutions for an issue.
Without plugins it's not much difference. And as I don't know js good enough, I’ve no choice but use plugins to satisfy my requirements and save my time.

Can I change these settings of chrome with adding some launch parameters through cmd or change some settings within the chrome ?

And when I tried to launch index.html with chrome - it's showed me an error about missing files. But it's an other question.
What is that error of missing files?
You can't change settings like that, but if a browser does not find files that might point to something else that could be the problem.
Windows has some overrides that allow programs to load files with a wrong but similiar filename if no file with the correct filename is found. That is the reason why for deployment to other systems all files need to conform to networking rules to function.
A missing file in some browsers only might point to a Problem with that override in Windows, and that might create lag by delayed loading of files, especially large files.

So the full error message (including the full filepath where you store your games) might help to find the Problem.
It's common thing with data/Actors.json 'cuz of security purposes.
I've managed to launch it with chrome + "allow file access to files" already. And it's similar to firefox. Games are smooth in browsers, but lagging while exe.
False. Most of the lags on menu and map transfer are due to plug-ins. MV is not responsible for how plug-ins code. I can see this in action all the way back in 1.3.1. There's no lag in a blank project, but once I put in Yanfly's plug-ins, I get a 2 - 3 second delay on every event interaction. But that is nothing MV can fix and it is all up to the developers of those plug-ins to fix.

Odds are high the lag you are seeing on other's games is due to the plug-ins they use being poorly coded. There is nothing that can be done to fix that short of asking the developer of those games to see if they can get newer plug-ins that work better (version 1.5 changed how plug-ins worked, but it is still new enough that few games have been made with it), or see if they can use different plug-ins.

That is simply not true.
Here is a screen shot of me standing still, and the frame fps dropping to 40. 0 Plugins are enabled. I am not opening any menus or doing any
map transfers. I'm just standing still, and the fps is dropping like crazy.
My rpg maker version is 1.5.2
upload_2018-5-12_14-52-43.png


upload_2018-5-12_14-54-0.png

HD = SSD 500GB

This is visually very noticeable and it looks like the screen is skipping frames.
Your maker version is not the same as the project version. Also as stated above if your anti-virus is trying to block it, it will always have an FPS drop. PLEASE go to your anti-virus as make sure these programs are in the exception list, as this sounds like an anti-virus program is trying to block it.

Also keep in mind windows does many things in the background, and these will often cause FPS drops in anything. I've lost FPS in an AAA Game as windows wanted to do an update at that time. Nothing the developer can do about that though. Even virus scans can take up enough memory to cause a drop.

Incidentally, Windows 10 is bad about FPS drops. I've had ACE games have a small drop that didn't on my windows 7 machine.
It's not the virus protect. Project version is up to date, tried with brand new project too.
That leaves windows 10, so I don't know what to say if you expect people not to use windows 10 to run rpg maker mv.
I have no issues with any other games.

FYI: The frame rate drop is constant, I'm not saying its once a few minutes or at certain times of the day, its always, every second there is frames dropping, its not based on other things running/not running. It's always dropping frames.
upload_2018-5-12_15-29-5.png

Original thread: https://forums.rpgmakerweb.com/threads/games-are-freezing-laging.94798/