Transition-Lag with changed Tilesize and Parallax-Mapping on MV (1.6.2)

Hey community,

i am working very hard on a horror RPG by trying to make it as unique as possible with the Maker.
That's why I decided to Up the resolution from Default to 1707x960 with Yanflys Core Engine which doesn't affect the Performance of the game which is nice but I also changed the Tilesize with Shaz's TileChanger from default to 192px which also kinda didn't affect the performance much (if I transition into a map where nothing gets drawn ofc lol) but the art style of the game looks way better now in my opinion:

Before:
1.png


After:
2.png


Ofc everything is still in concept but bascially it should look like this which feels really nice.
To make the TileChanger work I had to edit the pixi.js in a few lines (I only had to make the maximum pixels value larger).
Now you could argue that this isn't in the support of MV anylonger since I manipulated their file which is 100% true but talking about it and trying to solve it would only benefit the RPG Culture I believe.

Instead of talking about the problem, let me just show you.


The first one is Default RPG Maker Transition.
The Second one is with my new Sizes and OrangeParallaxMapping
The last one is the same as the second one but with Galvs Parallax Mapping.

Things I've tried to smooth it out:
- Lots of Pre-Loader Plugins (Somehow none of them work even a bit for me)
- Changing "no transition fade" to "black" which caused it to fade in smoothly but fade out instantly after a lag-spike
(Drops from 60 to 24+-10 and goes back up)
- Disable *ALL* of my other plugins but those needed for the resolution which didn't change anything at all


Things I didn't find out yet:
- How do I change my game to Canvas Mode (since one user said that in his project WebGL lags and Canvas runs smooth and I don't plan to port my game to mobile or somewhere else. It's a Windows Desktop Game. But nowhere I seemed to find the answer to change the game "drawing" method.
- Why does RPG Maker not even remotely use my CPU/GPU/RAM instead of deciding to lag? I mean my computer has the power to run that game at least 50 times simultaniously but the engine seems so limited and doesn't use the hardware it can (maybe because of cross compatibility?)


Is there something on my end other than changing the Engine (which is not gonna happen) or get back to 48px tilesize which would ruin the artdesign of the game?

I'd literally appreciate any kind of advice I could be using.
PS: If your answer is going to be "wrong engine dude" or "there is nothing you can do" pls don't bother answering.
I'll conclude it from the context if that's how things are.

Thank you very much for reading if you made it this far.
All the Love
Kong
I can answer one of those. It doesn't use GPU due to the mobile support, and not every phone at the time of release had GPU's in it. So to make the code universal and work for both PC and mobile at the same time GPU support was not an option. You could probably rewrite it to use GPU though if you don't want to export to phones though.
Thanks for your reply bgillisp.
peq42_ wrote in another forum the following:
"[...] Pure HTML5 games, made in javascript and drawn with canvas, are going to use CPU only, and even worse than that: Just a single core(Because javascript can only use a single core of your PC, unless you know how to use webworkers), so for a better performance I would recommend always changing "rendering mode"(Inside community basic and/or some other core plugins that have the option) to webgl, so then part of the game is processed in GPU."

Does that mean there is a possibility for me to change the rendering mode so it uses more hardware in my project?
And if so, how much effort would that be? (Can't program JavaScript but if it's a one time job I could hire someone who does it maybe)
Why does RPG Maker not even remotely use my CPU/GPU/RAM instead of deciding to lag?
those don't help because what you see is not regular lag.
"Lag" means that your processors are busy.

What you most likely have here is loading delay.
A file needs to be completely loaded before it can be used by anything. That load speed is mostly determined by HDD-speed, it has nothing to do with CPU/GPU/RAM (at least not beyond minimal use. If you are so short on RAM that the computer needs to rely on virtual memory then this would slow things a lot).


Usually this kind of delay can be reduced by preloaders, but you have to know how to use a preloader - expecting it to automatically work especially in your case is not going to make it.
A preloader reduces loading times by using up RAM - you can tell it to load a resource into RAM before it is needed. However RAM is always limited - and if the RAM is used up some of those resources will be automatically deleted again.
So you need to use the preloader to give the commands to load the next parallax exactly before you're transitioning to that map - but not directly before because then the preloader has no time to load the required resources. That is a very tricky balance act that can't be automated if you want it to be effective.
So you need to use the preloader to give the commands to load the next parallax exactly before you're transitioning to that map - but not directly before because then the preloader has no time to load the required resources. That is a very tricky balance act that can't be automated if you want it to be effective.

Even if it's tricky - if it's possible, then it can be done and is worth the try.
I will try it again with a few preload-Plugins and place them maybe a few steps before the loading zone as an event... Thank's for the advice!

those don't help because what you see is not regular lag.
"Lag" means that your processors are busy.

What you most likely have here is loading delay.
I completely get what you're saying but say for example if RMMV used 2 cores then the second core could watch the actual maps "transitions" and load all the maps in advance to reduce the loading time to almost nothing I think. Since loading those 2MB Image Files isn't that big of a deal for CPU's nowadays ^^'
2 MB image file =/= 2 MB in memory. The program has to uncompress it first if you use any compressed formats. You'd be shocked how much memory a parallax map of your size takes up uncompressed.
say for example if RMMV used 2 cores
doesn't work that way.
99% of all software today uses only a single core, because multi-task-programming is anything but easy.
Multiple cores help because they allow Windows itself to distribute tasks between different cores, so the background programs like Antivirus don't take processing power from the same core as the main program is running on - but only very few programs intentionally programmed for it can distribute their work between different cores. For example Adobe Photoshop can distribute photoprocessing over several cores, but if it goes to painting itself more than one core is useless.
And it is extremely difficult for any program to split its task between cores without paying more processing power for coordination between them than gained by the second core.

And as said above filesize is not memory size. save one of your pictures as BMP, that format has no compression. Then compare filesizes to see the difference between compressed and uncompressed size.
And you can't work on compressed data, for the map the pictures need to be uncompressed in RAM.
I'm so frustrated.
I bought a 5$ Preloader Plugin from Aetherflow and it just doesn't reduce the lag by a millisecond.
I so hope that I'm doing something wrong because if I go back to the map from where I came from it loads the parallax as fast as possible which is great but it's done by the game engine itself.
So there just HAS to be the possibility to load the Map I want to enter before I enter it.
If some Plugin Guru could help me I'd be willing to mention his name in the credits as big as he wants.

For example:
The plugin says in it's "documentation":
"ImageManager/AudioManager.addContainerItem("containerName", "itemKey"): Adds an item
to the container. NOTE: It only adds a key to look up the item in the cache for purging,
it does not preload or load an item for you, you will need to do that prior to adding it
to a container."


But how though.. How can I load an image before I add it to the container manually?
You could try to use images with 256 colors. Or try to convert your png files with a compression rate of 1 or even zero. Zero will dramatically blow up the file size of your images, but when you deploy your game within a compressed zip file, it wil go back to "normal" size.
Shameless self promotion.

Have you tried using my Scene Stabilizer plugin? if not might be worth a shot. 🙂

However I believe the issue might be the total size of all your sprites, If I could, I'd suggest shrinking your games resolution to half the size, shrinking all your sprites to half size, and then upscaling the game window x2.

In short, this would give roughly the same result, however, your resources would load much quicker, as they'd be a smaller size.

Original thread: https://forums.rpgmakerweb.com/threads/transition-lag-with-changed-tilesize-and-parallax-mapping-on-mv-1-6-2.121398/