Hello friends!
Like many before me I've been writing an emulator in my spare time for the last few months. Mostly for my own personal enjoyment and learning, and to help prepare me to better contribute to open source projects. I do have some fun graphical effects eventually planned out, but for now I consider it mostly writing a toy emulator.
I'm running into a problem with Super Mario Bros. Certain large sprites will have an odd line drawn in the middle of them. I've attached screenshots below. Notice the coin, the depleted question mark block, and the squished goomba. They all have a strange line appearing though them.
I was wondering if anyone had any insights as to what could potentially be causing this odd line.
A couple notes on the emulator:
1. Other than these lines (and a similar one with smashed turtles), no other obvious graphical artifacts are present in SMB or in any other NROM game I've tested. (Excitebike, Donkey Kong, Donkey Kong Jr.)
2. I have scrolling implemented correctly as laid out on the wiki.
3. Buffered reads, latched reads, and sprite zero detection are all emulated. (As far as I can tell at least).
4. I have no APU support added to speak of.
5. I do sprite evalution for the next scanline at PPU cycle 257. My sprite evaluation is fairly straightforward and simple.
Any ideas?
Thanks so much guys!
Like many before me I've been writing an emulator in my spare time for the last few months. Mostly for my own personal enjoyment and learning, and to help prepare me to better contribute to open source projects. I do have some fun graphical effects eventually planned out, but for now I consider it mostly writing a toy emulator.
I'm running into a problem with Super Mario Bros. Certain large sprites will have an odd line drawn in the middle of them. I've attached screenshots below. Notice the coin, the depleted question mark block, and the squished goomba. They all have a strange line appearing though them.
I was wondering if anyone had any insights as to what could potentially be causing this odd line.
A couple notes on the emulator:
1. Other than these lines (and a similar one with smashed turtles), no other obvious graphical artifacts are present in SMB or in any other NROM game I've tested. (Excitebike, Donkey Kong, Donkey Kong Jr.)
2. I have scrolling implemented correctly as laid out on the wiki.
3. Buffered reads, latched reads, and sprite zero detection are all emulated. (As far as I can tell at least).
4. I have no APU support added to speak of.
5. I do sprite evalution for the next scanline at PPU cycle 257. My sprite evaluation is fairly straightforward and simple.
Any ideas?
Thanks so much guys!