Closed gigiwotou closed 1 month ago
Using debug build can show you some error logs in the output window (Gens KMod or BlastEm nightly) :
KDEBUG MESSAGE: VRAM_alloc(123) failed: no enough free tile in VRAM (free = 109)
It's expected as the number of used tiles can vary depending the cutting process. So in this case you can increase the reserved VRAM for sprite (use SPR_initEx(...) in place of SPR_init(..) to specify the amount of VRAM reserved for the sprite engine)
Large sprite drawing errors Var:SGDK 2.00 (January 2024) I draw large sprites in two parts, top and bottom. When opt_level=FAST, the sprite draws incorrectly. If opt_level=MEDIUM the drawing error disappears.
Test code is attached. testmd.zip