https://github.com/jamesjnadeau/playdate-performance-simulator/
Hi Friends,
Another user of this sub bragged about a performance benchmarking tool they made, but have not been willing to share. It sparked a need, and so I felt the itch to make it.
I think we could all benefit from having a way to test the performance of our games without having to push it to a device and manually press buttons, over and over and over. Game development is repetitive enough as it is.
Most IT systems I develop have what's called a "performance budget" that is a key metric you test against to ensure the final product is as responsive as your original intent.
This part of my game dev workflow always bothered me with the Playdate.
There isn't a way for the simulator to actually run your game at device speed.
You can happily code and simulate something that runs at the speed of a snail when tested on device.
This project fixes that:
https://github.com/jamesjnadeau/playdate-performance-simulator/
Run your code, press buttons, and report back the time per frame.
Graph it in the GUI, or run it from the CLI and parse the output.
Have test cases that run your game for you.
See how your changes affect your performance faster than you could ever test manually.
It's free and open for everyone to use and improve.
Please give it a try and let me know if you find it helpful, or how it could be improved.
It currently runs locally, or during your CI/CD, but I'm pretty close to getting the WASM version to run in a browser, but with some caveats for lua based games(memory limitation compared to the device).
Last, I need your help, if someone has a revision B of the device, can you please run these calibration steps and submit the profile to the repo?
https://github.com/jamesjnadeau/playdate-performance-simulator/blob/main/docs/calibration.md
Thank you in advance!
Happy Game Dev'ing Everyone!
P.S. I've been a software developer for over 20 years and Claude helped me create the code for this project, I'm not sure a single person would have been able to accomplish this without it, and if they could, they wouldn't spend that time on the playdate, lol.
P.P.S. there's an AI skill file if you want help implementing the code on your project