fabiangreffrath / taradino

SDL2 port of Rise of the Triad
GNU General Public License v2.0
35 stars 9 forks source link

Use SDL_LockTexture() instead of SDL_UpdateTexture() #90

Closed erysdren closed 1 month ago

erysdren commented 1 month ago

SDL2 documentation states that this is the preferred method if you want fast(er) screen updates. I don't know if there's any perceivable difference on my machine, but it's probably best practice anyways.

fabiangreffrath commented 1 month ago

Could you also integrate this commit and change all texture and surface formats to SDL_PIXELFORMAT_ARGB8888, please?

https://github.com/fabiangreffrath/woof/commit/60d9deae965c6cf15fa53132c655c8cf009a7dc9