Why would I choose SDL2 over SFML?

I built the exact same Tetris game using Raylib, SDL, Allegro, and SFML. I ultimately stuck with SDL for all future game development and improvements for two reasons.

SDL does not force you to use C++ if you don’t want to. I only use C because C++ is hard on my brain.

SDL programs also launch a ton faster than those built with Raylib or SFML. SDL and Allegro are both smaller and modular in that you only compile the modules you need, and this leads to quicker recompile and running while developing.

1 Like