shish/rosettaboy

Use SDL Textures

Closed this issue · 2 comments

shish commented

Right now most implementations use the Surface API (software rendering), except for rust which uses the Renderer API (hardware accelerated, except in our case that just means "additional overhead on every setpixel() call") - the docs say that for our use case (we are setting every pixel individually) the Texture API is best

https://wiki.libsdl.org/MigrationGuide#if_your_game_just_wants_to_get_fully_rendered_frames_to_the_screen

shish commented

Go / C++ / Rust are all consistent now - just python which does things very differently, seems pygame changes the SDL API quite a bit...

shish commented

Python uses PySDL now, with the same code as the others