Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
vbl   Topic List   < Prev Topic  |  Next Topic >
Reply < Prev Message  | 
I'm creating a tetris game that uses a 180 entry array of ints to
represent a 10 x 18 play area. I'm experiencing a bug where this
array is being filled with garbage data. Until recently, I could not
determine what operation was causing the bug as it seemed to occur
only very rarely, and under no consistent circumstances. I found
though that it was happening consistently in the game's demo mode at
the same place and time (the demo has no random seed and performs the
same every time). I started stepping through the code using gdb, but
the error doesn't happen during debugging.

I removed the vbl interrupt for drawing, instead calling Draw() once
per game loop. The error doesn't seem to occur now!

Could this be a symptom of doing too much in the vbl, or could this
interrupt cause corruption of a write to a 180 entry array?

Thanks for the help!






Wed Jan 8, 2003 5:40 pm

j_north2002
Offline Offline
Send Email Send Email

< Prev Message  | 
Expand Messages Author Sort by Date

I'm creating a tetris game that uses a 180 entry array of ints to represent a 10 x 18 play area. I'm experiencing a bug where this array is being filled with...
j_north2002 <johnny_n...
j_north2002
Offline Send Email
Jan 8, 2003
5:50 pm

Sprites can ONLY be downloaded to OAMRAM in the vblank... you could enable the forceblank bit in the display till the sprites are downloaded. This though is...
bolloxim <bolloxim@...>
bolloxim
Offline Send Email
Jan 9, 2003
1:37 am

... Yeah, aside from the vbl, codewave's sound lib uses timer0 or timer1 or both, and DMA1. It's updater must be called somewhere in the vbl. I'm also using...
j_north2002 <johnny_n...
j_north2002
Offline Send Email
Jan 9, 2003
8:39 am

... your ... Is this verified? The docs says that you should only access VRAM in vblank or hblank but all that happens if you don't is that you get a stall for...
sasq_dcs <lists@...>
sasq_dcs
Offline Send Email
Jan 14, 2003
12:34 pm

... No, because it's untrue ! ... From what I could gather, they make the point of saying you *should* only upload during vblank in order to avoid obvious...
Jay
boolaala10
Offline Send Email
Jan 14, 2003
1:28 pm

Hey... I would like to know if the debugger you're using (gdb) is available for download on the net.... Is it? Thanks a lot... rgds.. William ... From:...
William Mallouk
wmallouk
Offline Send Email
Jan 10, 2003
12:18 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help