So, just curious, am I doing something wrong with my event or is there some type of work around for this? From what I understand, this seems to be a common issue but I haven't seen any topics regarding it.
Anyone?
Try with one or two pictures. Does it cut the load in fractions??
What resolution are you using? I ask because picture #2 is out of range in x coordinate with normal resolution.
That could cause issues.
Try binding these same event commands to a new event with an action button trigger.
Activate it once, check the lag. Then click it again to see if it does the same.
Open task manager and see if your RAM for MV is increasing while it froze to load.
If so, it is a memory leak and it is not disposing or loading properly.
disk use is maxing out. doesn't happen during initial load mainly when exiting battle. I was running at 1280x720 but then decided to try on default and it didn't change anything.
Also, picture 2 isnt out of range on a 50x50 map. the picture loads from the x/y of the map not the screen correct?
As for the rest, I'll try reducing and narrowing down the specifics.
Show picture loads on in game screen coordinates, unless you have a plugin that changes that.
I am not sure there is a plugin in MV yet that even does that.
The way it is handling the pictures with what I have so far, I believe it isn't disposing of your pictures.
When you exit battle and go back to the map, your pictures are returning.
Then you have that event activating.
If the program isn't disposing and reloading the pictures properly it is stacking.
Then you have a stack runaway.
You should test all pictures individually.
There could be a faulty picture number, a faulty picture, weird coordinates or the program itself.
Just some thoughts. 😀
Just tried it again... recreated the event from scratch... worked fine until i added the 5th picture and then RAM and disk usage maxed out instantly. The 5th picture was only 88kb... the 1st 3 overlap each other a bit and it only slowed a hair. 4th didn't change anything... Just when I got to the 5th...
Seems it doesn't matter what order i do it in... it always seems to happen with the 5th picture. Makes me think its a bug, not something on my end.
Also, all pics load fine on their own... and any combination of 4 pics seems to have a slight bit of lag but nothing game breaking. Not sure why the 5th one does it unless, like you said, something isn't being disposed of properly and its stacking.
Have you got any plugins? What happens if you disable them?
I seem to recall an Ace script that made strange things happen when you use picture #5.
Out of interest, what happens if you use Show Picture #6 instead of #5 - does it still lag?
I have a theory on what's going on here.
Unless MV changed this, pictures don't disappear by them selves(when on any map mind you), plus in this case you have the event set to Parallel, and using erase event, instead of using a switch to get rid of the event.
When you enter a battle, you are effectively not on any map at all(which is why you don't see the pictures while in battle), and the erase event command only gets rid of the event, until you leave, and return.
Inshort not only do all the pictures remain until you manually delete them, but every time you enter battle, and leave battle, I think the Parallel event plays again, meaning the amount of pictures on the screen is being multiplied every time you go into battle/return to the map.
I would suggest using a switch to turn off the event, instead of erase event.
You DO want a parallel event with Erase Event, because you want the pictures to disappear when you leave the map, but reappear when you come back on.
Also, the event would not come back and run again after battle on the same map. The events are only refreshed when you leave the map (to go to another map) and return.
But what you just said makes me think back to Neo's comment on my fog plugin, where it's not disposing the fog image. I based it on the logic already used by the parallax processing, which didn't specifically dispose the parallax sprite either. He suggested using Pictures as an example, but it sounds like maybe they don't get disposed properly either. So what you say could be true - if you leave the map and return to it - in a way that causes the setup method to run again (which resets all the events on the map), you could be getting the images loaded several times each.
Can you please confirm, does the lag start immediately after you load the 5th image, even if you haven't left the map? Or do you have to load them all and then do something else in order for it to happen? You did mention going to the title screen then into a battle, but you can't go into a battle straight from the title screen, so you must be starting a new game or resuming a saved game from the title screen, and then once in the game, going into a battle? What I'm asking is, could you please list the individual steps that are the minimum required to reproduce this issue?
thanks - I'll check it out myself.
I wonder if it could be something to do with your image size? I set up the same thing, but just used a battler image in the 5 Show Picture commands. On a default-sized map I couldn't see any issues at all. When I changed the map to 50x50, entering battle and leaving battle were very slow - I'd get a blank screen for several seconds. When I left battle, fps would drop right down but quickly climb again right back up to 60.
If you temporarily replace your images with small ones (like a battler), do you still see the issue happening? Is it as severe?
I dont have the MV but maybe the Erase Event interfers with the previos 5th Picture? Do a Wait between the both. test with 60frames if it works decrease it to wanted.
Or maybe its because u load many Pictures at once in your Internet Browser, try this Eventsetup:
Show Picture1
Pluginn command
wait 4 frames or (more if possible , much more if its not for action stuff 60)
Show Picture2
Pluginn command
wait 4 frames (more if possible , much more if its not for action stuff 60)
continue by ur own...
wait 60
erase event. or change to other eventpage.
Or its a Human mistake, check all your eventcode again.
and or Never change event or player grafics in a loop every frame or every few frames,in that loop use switches
to determine if a change is needed or not. That mistake made many on the vx ace too.
I have a few updates to my BindPicturesToMap plugin on the agenda, among them optimizations for larger images (cutting them up internally into "chunks" to lessen gpu load on scrolling large maps with multiple large pictures) as well as improved ways to load pictures in general. When doing this I'll also have to perform more extensive performance tests to see if anything fishy is going on. I'm very busy these days so I can't say when I'll have it done, but I want to get it out there as fast as I can.