gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Sprite Artifacting in Upper left corner

#14112 - rooter - Tue Dec 30, 2003 7:57 am

Follow the link to see. http://www.consolevision.com/members/darkrift/rpgba.rar

In Visual Boy the corruption only appears when pushing sprites left and up. However when loaded on a GBA or on Mappy the corruption is a full time problem.

I'm wondering if any of you have had similar problems, and any suggestions for a fix would be great. I've paused the corruption on screen and checked every sprite in OAM and they were all offscreen so thats not a problem, also I make sure all sprites not shown are always offscreen. My guess would be a loose pointer. I'd post some code as well but right now nothing in the code looks very suspect and there is quite a lot to paste. I'd like to investigate all suggestions and maybe that could narrow the search down to a point where i could post offending code.

#14118 - jma - Tue Dec 30, 2003 6:09 pm

What does it do on actual hardware?

Jeff
_________________
massung@gmail.com
http://www.retrobyte.org

#14119 - sajiimori - Tue Dec 30, 2003 6:14 pm

I'm not seeing the problem on VBA.

#14121 - tepples - Tue Dec 30, 2003 6:58 pm

I see glitch in VBA 1.7. Have you made sure that all OAM writes occur in Vblank?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#14122 - rooter - Tue Dec 30, 2003 7:41 pm

VBA isn't accurate in this case - use Mappy or actual hardware - the artifacting occurs all the time... ah no Tepples is right some OAM accesses are occurring out of Vblank. I wasn't using a shadow copy of OAM, but now I am, thanks a lot for the help.