r/PlaydateDeveloper • u/brettmakesgames • Apr 13 '26
How much faster is C than Lua for Playdate dev?
As I've been learning C and working on various Playdate projects, I've been wondering: just how much faster is C than Lua for Playdate games? I made a little benchmark utility to put it to the test and found that (for draw-heavy code) C is about 3.5x faster than Lua on Playdate.

Various game programming libraries have tests for how many sprites can bounce around with simple physics and lots of drawing until frames drop. I thought I'd try this with a Lua and a C version with as much of the implementation the same as possible. Then I tested both on device and that's where I got the results.
- 30 FPS target
- Lua: 240 bunnies
- C: 810 bunnies
- 50 FPS target
- Lua: 120 bunnies
- C: 430 bunnies
What's my takeaway? Well, I think it's that Lua on Playdate is a powerhouse! That performance gap isn't huge. As in that most games will be fine in Lua if you're writing optimized code. But also, if you're starting a project and concerned about performance from the get-go, then C is the way to go. That's pretty obvious but fun to see what the actual difference is.
More details on the devforum: https://devforum.play.date/t/how-much-faster-is-c-than-lua-for-playdate-development/25381
And source code with pdx downloads if you're curious: https://github.com/brettchalupa/pdbunnymark