warmCabin / mm2_flicker_ender

Simulates a few of Rockman 2's key drawing routines in Lua to eliminate sprite flicker
0 stars 0 forks source link

Slowdowns when too many sprites on screen #5

Open warmCabin opened 8 months ago

warmCabin commented 8 months ago

Something is rotten in the tiledraw code. If too many things are on screen, it takes so long that the emulator itself starts to lag, even if the game isn't. I don't typically notice this in real time play unless I have TASEditor open, but even without TASEditor, it's pretty substantial if you try to fast forward--you can't even achieve double speed.

I initially blamed this on the excessive gui.pixel calls and tried to buffer draws into a string for gui.image, but it made no difference. Not only that, the graphics themselves were spectacularly wrong, so I scrapped that idea instead of trying to fix it.

I need to figure out if this can be fixed, or if gui.pixel was just not meant to be bashed this hard.