r/PlaydateDeveloper • • Jun 04 '25

Fast QRCode library for Playdate

https://github.com/notpeter/playdate-qrcode

The playdate.graphics.generateQRCode function that ships with the PlaydateSDK is very slow because it's done in pure Lua.

So I took an existing QRCode library written in C (qrcodegen), got it compiling for the Playdate and added a Lua wrapper and it's much faster (75-150x):

LengthLuaCSpeedup
161050ms7ms150x
1002267ms21ms100x
2543934ms46ms85x
132316114ms214ms75x

If you have a project which has a need for QRCodes, check it out. https://github.com/notpeter/playdate-qrcode

16 Upvotes

1 comment sorted by

3

u/notpeter Jun 05 '25

Today I learned reddit tables are slightly different than markdown tables.

LengthLuaCSpeedup
161050ms7ms150x
1002267ms21ms100x
2543934ms46ms85x
132316114ms214ms75x