agb icon indicating copy to clipboard operation
agb copied to clipboard

Bitmap modes can corrupt allocators

Open corwinkuiper opened this issue 2 years ago • 0 comments

Bitmap modes give access to vram, where allocators store state. This is bad.

Also, I don't think objects can be used in bitmap modes, and besides they share vram so allocation gets clobbered.

The fix:

  • Initialise allocators on acquiring the resource.
  • Objects and backgrounds come together, I think.

The current difficulty:

  • I've used sprite allocation without resource acquisition a lot. Can be fixed but will make things more awkward.

corwinkuiper avatar Jul 03 '23 00:07 corwinkuiper