MiSTer-devel / NeoGeo_MiSTer

NeoGeo for MiSTer
GNU General Public License v2.0
145 stars 76 forks source link

Fix rendering the last two sprites to the line buffer #172

Closed paulb-nl closed 1 year ago

paulb-nl commented 1 year ago

The line buffers were switched too early (pixel 259) which caused the last two sprites (32 pixels) to be written to the wrong buffer.

Latching the nFLIP signal at pixel 264 will make the line buffers switch at pixel 267. The first write of the new line to the line buffer happens at pixel 268.

@furrtek I don't know if the original hardware does it this way but this does make everything line up perfectly.