Thought I would share my testing on writing to the PPU during rendering.
https://nesdoug.com/2018/03/21/ppu-writ ... rendering/
I wanted to try to change a palette color mid-frame. I think I did ok, with the exception of noticable glitches at the exact write to the palette.
Let me know if I've made any technical errors, or ways I could improve this code. Thanks.
(source code is asm for asm6).
post on writing to PPU during rendering
Moderator: Moderators
post on writing to PPU during rendering
nesdoug.com -- blog/tutorial on programming for the NES
Re: post on writing to PPU during rendering
I didn't see you mention anything about sprites... Maybe you should include them in the test, since they're known to brave erratically when rendering is disabled mid-screen.
That being said, mid-screen palette changes are possible, but you need a "gap" of one or more blank scanlines (no background or sprites) if you want to do it without glitches, because it's just too much stuff to do in a single hblank.
That being said, mid-screen palette changes are possible, but you need a "gap" of one or more blank scanlines (no background or sprites) if you want to do it without glitches, because it's just too much stuff to do in a single hblank.
Last edited by tokumaru on Wed Mar 21, 2018 11:57 am, edited 1 time in total.
Re: post on writing to PPU during rendering
Oh, I forgot about that. Thanks for the input.
nesdoug.com -- blog/tutorial on programming for the NES