Yanfly doodads performance issue

When I move from map to map or I open the menu, the game starts to lag which can take up to 30sec.
I tried to turn off all my other plugins with no luck.

I think it might have something to do with the dimensions I'm using which is 64pxl instead of 48pxl, but to work around I made sure that my doodads are as small as possible, ranging from 1kb to 300kb with 300kb being only some trees, also I do not cluster my maps with it I got 5-50 doodads per maps.

To give you a better grasp on the dimensions I add some screenshots with normal sized companions.

Also in case it might help, here are my specs:
AMD Ryzen 7 1800x
DDR4 16GB
Geforce GTX1060


I'm not sure if I posted this in the right thread, I wasn't sure where this fits.


EDIT:
A little update in hopes that maybe someone can still help me out here, so thats what I did.

I made a new project with 2 small maps, only plugin in it is Doodads nothing else, no parallaxes.
Now when I move from map or open the menu, even without having added yet any doodads it starts to have lag and when I add just one doodads, that lag gets bigger and bigger till I have a response time from up to 20sec. after awhile...

Now what I did now is to update all my drivers including graphic card, I also optimized and cleaned my system.
Sadly with no changes, makes me wonder if that has something to do with the fact that Im using the Steam version ?

UPDATE:
I solved it, and in case someone has the same Issue, here is what I found out.
It sounds stupid and simple but I never encountered such an Issue before so it never occured to me at the 1st place.
Anyway I solved this Issue by converting this game and trying to play it and in this state that Lag does no longer exist.
It only occures in Playtest mode.... so many wasted days...
Well, it doesn't matter how much you try to compress, because it will be uncompressed when loaded to cache memory. You're basically losing quality without helping that much in speed.

By the way, 30s of lag seems too much. It's normal to fps to go down when changing from a map to another, but it takes around 2 seconds or less to go back to normal(at least here, wich specs are a lot worse/worst[I never know wich one use ;-; help me])

What's your map size? If it be really big(near the limit of MV, wich is 256x256), things will be hard to improve :T


EDIT: Hey, perfect time to test something
https://github.com/lekoder/rpgmaker-optimization
Install that plugin and tell me if it got better. I found it when searching for performance improvements for MV in google, but i don't know if it still works, since last update was last year.
Yeah I thought about that, but compressing wasn't all i did.
When i saved my doodads I saved them as png8 format with only 128colors, the quality loss wasnt to bad.
Anyway my biggest map is 117x35 and my smallest 48x20, all of them have lag issue, but of course the biggest have the longest lags.
Yeah I thought about that, but compressing wasn't all i did.
When i saved my doodads I saved them as png8 format with only 128colors, the quality loss wasnt to bad.
Anyway my biggest map is 117x35 and my smallest 48x20, all of them have lag issue, but of course the biggest have the longest lags.
Well unless you saved them as something worse than 8bit(wich has 256 colors) there's something wrong there.

Anyway, try the plugin i sent in the last message,SRD_GameUpgrade and the SRD_Preloader.

Adjust the preloader to load the first maps assets(Character+Tilesets)+Musics(And musics only)+System(mark "important").Everything else can be marked as "none". After that, go to the gameupgrade plugin and change Garbage collection to "On Scene change".

Now try making some loadings maps here and there in the game(It can be just 1, if you use switchs correctly). Maps without anytileset used, that will work only to you call a plugin command from preloader to load the assets of the next things that are going to appear.


Your problems must be because of the bad cache system that's used now in MV(wich probably will change in 1.6 or in a next update, or as as plugin idk). It loads assets when we enter a map, and that lags. Staff is already taking a look at the problem.


EDIT: Oh and, if you're going to port for desktop only, there's also the "Yanfly’s Desktop Optimized Version Update" for 1.5.1.
Yap thats what I did, I saved them in 8bit but with the option of going to 128 colors instead
Wow thank you, I will try that now.

I will post again with the results ^_^
Well unless you saved them as something worse than 8bit(wich has 256 colors) there's something wrong there.

Anyway, try the plugin i sent in the last message,SRD_GameUpgrade and the SRD_Preloader.

Adjust the preloader to load the first maps assets(Character+Tilesets)+Musics(And musics only)+System(mark "important").Everything else can be marked as "none". After that, go to the gameupgrade plugin and change Garbage collection to "On Scene change".

Now try making some loadings maps here and there in the game(It can be just 1, if you use switchs correctly). Maps without anytileset used, that will work only to you call a plugin command from preloader to load the assets of the next things that are going to appear.


Your problems must be because of the bad cache system that's used now in MV(wich probably will change in 1.6 or in a next update, or as as plugin idk). It loads assets when we enter a map, and that lags. Staff is already taking a look at the problem.


EDIT: Oh and, if you're going to port for desktop only, there's also the "Yanfly’s Desktop Optimized Version Update" for 1.5.1.


Alright I added the plugins, but well not to sound stupid but how do I add something to be loaded 1st with the SRD_PreloaderCore ?
All I can do is either set something as Important, all, costum or none.

Anyway here are my results so far, Going into Menu is now almost instant again but going out can take 5-12sec. The same with going from map to map, to be more specific the more I move the longer it takes, even if I only go to a map 17x13 with nothing in it.

Also before I asked for help here I did add 1.5.1_Yanfly_Update, which did help with a pop up error I had when moving to other maps
I think your problems is in the way you setup your events 🙂 if it's correct, post some event pages here may help.
But before that try to turn off Doodads plugin & Overlay plugin to see if they're the culprits
Are your maps done by tiles or by parallax?
And with your kind of lag I think you should check for all other sources of lag as well, to get to 30 second delays you need more than a single source for lag, there should be other causes in addition to this.
I think your problems is in the way you setup your events 🙂 if it's correct, post some event pages here may help.
But before that try to turn off Doodads plugin & Overlay plugin to see if they're the culprits

There are no events yet on my maps, other then to transfer.
I tried turning everything off other then Doodads with lag still being present, afterwards I did vice versa and the Lag was gone,
thus I know it is doodads that causes the lag
Are your maps done by tiles or by parallax?
And with your kind of lag I think you should check for all other sources of lag as well, to get to 30 second delays you need more than a single source for lag, there should be other causes in addition to this.

Yes I use parallaxes for my maping but floors I still normal tiles, by now I was able to reduce delay from 30 to 7-12sec, which still sucks of course.
Anyway I tried to turn everything on and off and the culprit really is just doodads, it is odd because even when I tried to google it, I could not find a single person with this kind of error I have, matter of fact some even have up to 800doodads active on one map with no lag
(Take care, double post is not allowed, unless it's been 3 days since last post)

Well, i don't know then. If it's lagging without events, without a huge parallax image,etc it may be a problem with your drivers or something.
@Kad1984
One of your assumptions is wrong.
A parallaxed map needs about three to four THOUSAND times the RAM of a tile-based map.
For that reason parallaxed maps of 100*100 tile equivalent are considered the maximum possible on good computers, with much lower limits on older computers.
And that simply removes too much of your computers resources, especially if you add doodads (which should be an alternative to parallax mapping, not added to it) on top of that.
@Kad1984
One of your assumptions is wrong.
A parallaxed map needs about three to four THOUSAND times the RAM of a tile-based map.
For that reason parallaxed maps of 100*100 tile equivalent are considered the maximum possible on good computers, with much lower limits on older computers.
And that simply removes too much of your computers resources, especially if you add doodads (which should be an alternative to parallax mapping, not added to it) on top of that.

I read about that too actually, for parallax mapping I use Kaus_Ultimate_Overlay, I tried to turn that also off while doodads being the only thing being on, with no success.

@elpeleq42
Still thank you much appreciated, anyway if that issue is only with my computer I would not mind as long as others can play my game smooth 🙂

A little update in hopes that maybe someone can still help me out here, so thats what I did.

I made a new project with 2 small maps, only plugin in it is Doodads nothing else, no parallaxes.
Now when I move from map or open the menu, even without having added yet any doodads it starts to have lag and when I add just one doodads, that lag gets bigger and bigger till I have a response time from up to 20sec. after awhile...

Now what I did now is to update all my drivers including graphic card, I also optimized and cleaned my system.
Sadly with no changes, makes me wonder if that has something to do with the fact that Im using the Steam version ?

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-doodads-performance-issue.88151/