I've been messing around, making a NES demo. Recently I've kept running into a strange little glitch that I can't nail down.
You can see what I mean by downloading it here:
http://www.box.net/shared/3u9d5u97gm
"demo.nes" is the normal demo. "demo jitter.nes" has had some extra code inserted that should do nothing but eat up a few more CPU cycles. This makes the whole screen shake slightly for some reason.
I've been very careful with the scrolling since I'm not using it right now, I only write to $2005 to set the initial scroll and nothing else modifies it. Since all I need to do to cause the jitter is add a few more instructions to the program, I have to assume I've run out of cycles before vblank or something? (Already?!) Might that cause some scrolling issues?
By the way, the background is from La-Mulana and the character sprite is from Knytt Stories.
You can see what I mean by downloading it here:
http://www.box.net/shared/3u9d5u97gm
"demo.nes" is the normal demo. "demo jitter.nes" has had some extra code inserted that should do nothing but eat up a few more CPU cycles. This makes the whole screen shake slightly for some reason.
I've been very careful with the scrolling since I'm not using it right now, I only write to $2005 to set the initial scroll and nothing else modifies it. Since all I need to do to cause the jitter is add a few more instructions to the program, I have to assume I've run out of cycles before vblank or something? (Already?!) Might that cause some scrolling issues?
By the way, the background is from La-Mulana and the character sprite is from Knytt Stories.