I noticed that calling playdate.wait(0)
would have a dramatic impact on my framerate ( from 30 to 15 fps).
I would expect that this would not have any impact on the game.
import 'CoreLibs/utilities/printer'
import 'CoreLibs/sprites'
import 'CoreLibs/graphics'
white = playdate.graphics.kColorWhite
black = playdate.graphics.kColorBlack
local gameTime = 0
function playdate.update()
gameTime = gameTime + 1 / playdate.display.getRefreshRate()
playdate.graphics.clear( white )
playdate.graphics.fillCircleAtPoint(
200 + math.cos(gameTime)*70,
120 + math.sin(gameTime)*70,
30)
playdate.drawFPS(5, 5)
if playdate.buttonIsPressed(playdate.kButtonA) then
playdate.wait(0)
end
end