It is currently Sat Nov 18, 2017 3:28 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 106 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8
Author Message
PostPosted: Fri Dec 25, 2015 10:38 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10112
Location: Rio de Janeiro - Brazil
You can reserve sprite 0 for effects, but I don't think it will help with this problem in particular. It looks to me like the OAM is filled from a random position, as a way to cycle sprite priorities.

What I do is use a free sprite counter, which starts at 64 and goes down as sprites are drawn. I don't decrement it after each individual sprite though (that would take 5 cycles per sprite), I subtract the total number of sprites in the meta-sprite before drawing it, and I only proceed if the result is positive, in which case I store it back as the new free sprite count. This means I don't draw partial meta-sprites. In the end, I just use the final value of the counter to count how many sprites to clear.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 106 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 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