Buffering graphics updates.
Hello!
I have been thinking about how to draw my background;
http://web.archive.org/web/20090714010738/http://nesdevhandbook.googlepages.com/theframe.html
This document suggest that you have a set buffer in RAM for the data to copy.
Would there be any disadvantages if I instead just provide a pointer to somewhere in the ROM,
and copy to the PPU in the NMI from there? Then the data could be terminated with $FF in the ROM, and I could have a counter in the PPU write loop of the NMI so I can copy a set amount of bytes every NMI to the PPU.
Would this be a good way to make sure that you don't write to the PPU outside NMI, and also save some RAM?
Thanks!
I have been thinking about how to draw my background;
http://web.archive.org/web/20090714010738/http://nesdevhandbook.googlepages.com/theframe.html
This document suggest that you have a set buffer in RAM for the data to copy.
Would there be any disadvantages if I instead just provide a pointer to somewhere in the ROM,
and copy to the PPU in the NMI from there? Then the data could be terminated with $FF in the ROM, and I could have a counter in the PPU write loop of the NMI so I can copy a set amount of bytes every NMI to the PPU.
Would this be a good way to make sure that you don't write to the PPU outside NMI, and also save some RAM?
Thanks!
Comments
Personally I would just go with the RAM buffer, you're going to need the flexibility at some point.