deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
276 stars 35 forks source link

Donkey Kong Country problems with rendering sprites #76

Open ESPboy-edu opened 1 year ago

ESPboy-edu commented 1 year ago
  1. jumping up from the palm tree we can see few Y lines where sprites (banana and kong) does not renders
  2. staying near the jumping crocodile we can see that croco sprite renders partially
  3. riding on the rhinoceros we can see lot of problems of sprites rendering (rhino, monkey/kong on the rhino and enemies) (using last peanut-gb commit)
deltabeard commented 1 year ago

I suspect that this is because Peanut-GB renders a line at a time, which is inaccurate because the game may be changing the state of the LCD and OAM during the rendering of the line. I have yet to investigate, but I may look into changing the PPU to render a few pixels at a time to fix issues like this. I think that this issue is also related to #73, in that the state of the LCD may be changing after HBLANK.