Development, Play Test Speed

When I deployed my game, and tested it out on my computer,


it lagged horrendously.


Deleted it, checked for viruses, checked to see if anything


was out of place or incompatible.


Then I deployed again, and still the same speed.


I had someone test out my game to see if they got the same results


and they had the same lag issues.


Anything I can do to fix this?
You need to find the cause for this lag and remove it - there is always a cause, but often it's difficult to find, especially for the inexperienced.


Possible causes are:


1) too large resource files - for example someone had a lot of 10-minute-music files included, and a file needs to be loaded completely before it starts. that large music file caused lag with delayed sound simply because most computers needed several seconds to load it.


2) parallel processes - there is a reason why we always tell "don't use parallels unless you know exactly what you're doing. The worst advice someone can give is to use parallel processes for everything no matter what. And if you are using parallel processes, never forget to include waits - in case of a parallel process, waits reduce lag by skipping the parallel processes over several frames.


3) parallax mapping or lighting scripts - the better looking your maps are, the more resources they need. Never use large parallax maps when you want to deploy to mobile.


4) too many events on too large maps. That doesn't matter in most cases, but if your maps go to hundreds of events then that will lag.


and probably some more causes...
2) parallel processes - there is a reason why we always tell "don't use parallels unless you know exactly what you're doing. The worst advice someone can give is to use parallel processes for everything no matter what. And if you are using parallel processes, never forget to include waits - in case of a parallel process, waits reduce lag by skipping the



It may be this, but its hard to tell.

4) too many events on too large maps. That doesn't matter in most cases, but if your maps go to hundreds of events then that will lag.



My maps aren't huge, and the game is pretty small so far.


The most events I have ever used on a map are probably 14.

You need to find the cause for this lag and remove it - there is always a cause, but often it's difficult to find, especially for the inexperienced.



I am definitely inexperienced when it comes to finding issues that


don't show themselves. But if anything id say I have 2-4 parallel processes


in my entire game so far.


Although, what is bugging me is that the game file is 442 MB,


and I barely have any content into it yet. I may have to remove


everything unnecessary. But I don't think that's what is causing


the problem.  
442 MB - yes and no. For a windows computer that should make no difference, but it would be bad for devices with limited capacity like mobiles. So you should check what you can remove as unused.


Can you show us screenshots of the parallel processes? A single PP can lag the game even on the most powerfull computer if that PP has a bad design logic. That s no joke - for testing purposes I once made such a PP (barely three or four commands, but those affected a lot) and it dropped the FPS in playtest from 60 to about 5.
Can you show us screenshots of the parallel processes? A single PP can lag the game even on the most powerfull computer if that PP has a bad design logic. That s no joke - for testing purposes I once made such a PP (barely three or four commands, but those affected a lot) and it dropped the FPS in playtest from 60 to about 5.



These are of a Test Map, so I doubt it matters.

Spoiler
Problem 2.png


Problem 3.png


Problem 1.png



These are of the actual game.


(All just movements.)

Spoiler
There are several copies of this on different maps. So this event is running on those as well.


But doesn't look any different from this one.


Problem 4.png


These are just NPC movements on 1 map.


Problem 5.png


Problem 6.png


Problem 7.png



Sorry about the screens, don't know if this is how I do it or not.

Original thread: https://forums.rpgmakerweb.com/threads/development-play-test-speed.61715/