It is currently Wed Nov 21, 2018 11:23 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 21, 2018 11:43 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2334
Location: DIGDUG
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).

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Wed Mar 21, 2018 11:53 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10979
Location: Rio de Janeiro - Brazil
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.


Last edited by tokumaru on Wed Mar 21, 2018 11:57 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Mar 21, 2018 11:55 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2334
Location: DIGDUG
Oh, I forgot about that. Thanks for the input.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group