jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Rearrange drawing system in order to eliminate anti-aliasing glitches #108

Closed jakubg1 closed 6 months ago

jakubg1 commented 1 year ago

Right now, all sprites, when drawn, are scaled independently of each other. This causes some text glitches, where you can see a row of darker pixels due to bleeding, and may be contributing to the drawing routine being slower overall.

The idea is to create a canvas of NATIVE_RESOLUTION size and draw everything onto it with anti-aliasing turned off. Then, once the frame is ready, the canvas will be drawn onto the actual screen, with anti-aliasing turned on again.

How would the scaled sprites work?

jakubg1 commented 6 months ago

Unfortunately, this method did not work.