I can't animate pictures without lag.

I'm trying to do animated batlebacks in an event fighting system. So to do my tests, I got some animations from EarthBound. Zoomed to 200% to reduce their size.

My problem is that the first time the battleback is running, it lags a lot. No problem for the following times. I tested on a new project, same problem.

I also tried to load them all once before displaying them, but the battle takes almost 3 seconds to start, it's way too much.
I also tried to load them all once before displaying them, but the battle takes almost 3 seconds to start, it's way too much.
This is why many games have a loading screen at the start of the game. So that they don't load it on the fly when they need it (and it takes memory).

You probably want one in your game. Load it at the start of the game (either do it yourself or request a script if you can't)
from your description that is not lag but loading delay.
and the best way to solve that is to reduce the filesize of the pictures.

preload plugins are also a possibility, but in those cases you need to know what you're doing in order to solve the problem.
You need to give the preload command early enough for the file to be loaded in time but not too early as the garbage collector will remove all unused pictures after a while.
Note that this is posted in ACE. I don't know of any preloader plug-ins in ACE.
Cache Back, by: KilloZapit
might be an answer. Otherwise, I don't know. Kind of would like to know if there are more or better scripts for graphic cache to speed up load times.
You need to give the preload command early enough for the file to be loaded in time but not too early as the garbage collector will remove all unused pictures after a while.
This is not how RGSS3 works. As long as there is a variable referencing to the specific bitmap image, it will not get disposed. That is why we have the Cache module.
Maybe more info on what you're doing would be warranted?

Are you loading the images from disk every time you render them or using the Cache module that TheoAllen mentioned? The display resolution for VX Ace is tiny (544x416) so its nearly unthinkable that any even remotely modern PC would have trouble compositing tons of images. I have noticed the engine struggles a bit on laptops running in severe power save mode, but my investigations so far have led me to believe that's a CPU\gamestate update issue, not a graphics one.

I regularly render 3-4 full screen images in overlay on every frame (albeit using sprites and cached bitmaps, but they are animated, so the sprite's backing BMP is regenerated each frame) and I've not observed even a 1% drop in frame rates. My suspicion is that something in the code you're using is doing something super inefficient... or the images in question are much, much larger than they need to be. In either case, more details on what you're doing might help to illuminate the problem.

Original thread: https://forums.rpgmakerweb.com/threads/i-cant-animate-pictures-without-lag.123212/