#61831 - gauauu - Thu Nov 24, 2005 3:25 am
Ok, I was dumb enough yesterday that I have to tell you all about it.
I was having some weird glitches in my code when I scrolled my map around. Weird seams and things didn't seem right. I kept checking all my map scrolling routines and everything was definitely right, so I couldn't really figure it out. I went through and disabled everything in my code, like sprites and other backgrounds, trying to pinpoint the issue, but no luck.
So I was about to post here to ask for advice. I was thinking through how to describe the problem, when I thought "the best way to describe it is tearing".......OH....DUH...somehow I had spent hours staring at my scrolling routine, and it had never occurred to me to check that I hadn't messed up my "wait for vblank" routine. It's only what, one of the most common problems with such an obvious symptom? Of course, that was the issue - I was scrolling in the middle of drawing the screen.
The funniest part about it was that afterward, I described the problem to my completely non-techie, non-programmer wife, who said "well, that sounds like that problem you had told me about once before where you change things while the screen is drawing"......when my wife could diagnose the problem and I couldn't, you know there's a problem.
So, if there's an important lesson to be learned here today, it is this:
I am an idiot.
I was having some weird glitches in my code when I scrolled my map around. Weird seams and things didn't seem right. I kept checking all my map scrolling routines and everything was definitely right, so I couldn't really figure it out. I went through and disabled everything in my code, like sprites and other backgrounds, trying to pinpoint the issue, but no luck.
So I was about to post here to ask for advice. I was thinking through how to describe the problem, when I thought "the best way to describe it is tearing".......OH....DUH...somehow I had spent hours staring at my scrolling routine, and it had never occurred to me to check that I hadn't messed up my "wait for vblank" routine. It's only what, one of the most common problems with such an obvious symptom? Of course, that was the issue - I was scrolling in the middle of drawing the screen.
The funniest part about it was that afterward, I described the problem to my completely non-techie, non-programmer wife, who said "well, that sounds like that problem you had told me about once before where you change things while the screen is drawing"......when my wife could diagnose the problem and I couldn't, you know there's a problem.
So, if there's an important lesson to be learned here today, it is this:
I am an idiot.