It is currently Sat Oct 21, 2017 10:53 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Wed Jan 18, 2017 5:21 am 
Offline

Joined: Tue May 28, 2013 5:49 am
Posts: 806
Location: Sweden
Not OAM decay but you just said the PPU goes batshit and corrupts parts of OAM if rendering is turned off while sprites are being evaluated. I assumed sprite evaluation isn't being done during vblank. In that case turning off rendering in vblank is the safe way to turn off rendering I thought. "The frames and NMI" also suggest doing this, although it doesn't explain exactly why (it says something about that the screen jumps if rendering is turned on outside of vblank).


Top
 Profile  
 
PostPosted: Wed Jan 18, 2017 6:21 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10065
Location: Rio de Janeiro - Brazil
Pokun wrote:
you just said the PPU goes batshit and corrupts parts of OAM if rendering is turned off while sprites are being evaluated.

Ah, OK. This is a much bigger problem if rendering is being consistently turned off at a bad moment every frame, but one frame after transitions and such would hardly be noticeable. But you are right, delaying $2000/$2001 writes until vblank is the best practice. Not only you avoid any sprite corruption, but you also avoid displaying partial frames that may make the screen appear to "jump".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot], zeroone and 9 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