On my AMD Ryzen 7 8845HS desktop running Ubuntu 24.04, both raylib and game built from source, CPU pushed hard even with FPS set to 60.
On another AMD Ryzen 7 6800U computer running Win 11 Home:
- On WSL2 running Ubuntu 22.04, both raylib and game built from source, same high CPU usage.
- From WSL2, cross-compiled both raylib and game to Windows. According to Windows task manager, this version used max 1% CPU and 70MB RAM.
This Windows computer is a GPD Win Max 2 with built-in gaming controls, which work fine with the game.
Two observations:
- The ship's left and right movement feels slow. Is it possible to speed up in application code? The last time I played such a game was Alien Typhoon on Apple ][ decades ago. If I'm not misremembering, that game's ship movement was much faster.
- On Linux, the default raylib backend is GLFW. An SDL backend is also available. I might try rebuilding raylib with SDL backend on Linux to see if the CPU problem is due to GLFW.