Looking for tips on debugging a program that runs fine on the simulator but seems to just burn CPU on the device.
Can I see logs somewhere? Can I attach a debugger?
Links or pointers are fine, thanks for any help!
Looking for tips on debugging a program that runs fine on the simulator but seems to just burn CPU on the device.
Can I see logs somewhere? Can I attach a debugger?
Links or pointers are fine, thanks for any help!
It sounds like that may not be a matter of bugs, but rather that PCs/Macs are much faster than the Playdate. The Simulator can’t reproduce the Playdate’s specific performance. Optimizing your game to do less or be more efficient is a different challenge, but people here might have ideas if you wanted to share specifics.
The Sampler and other windowsin Simulator can hook into the device and will give you an idea on where your thing is using a lot of CPU.
On the simulator, you can set the malloc pool to 16Mb so you can have something closer to the device. Playdate > Malloc Pool
Then you can start your game on your device from the simulator. You need to plug it on your PC with USB. Device > Run Game on Device
Finally, logs, sample, etc accessible from View
will be bounds to your device.