I use playdate.getElapsedTime()
followed by playdate.resetElapsedTime()
Lua
local deltaTime = playdate.getElapsedTime()
playdate.resetElapsedTime()
C
float deltaTime = playdate->system->getElapsedTime();
playdate->system->resetElapsedTime();
I use playdate.getElapsedTime()
followed by playdate.resetElapsedTime()
Lua
local deltaTime = playdate.getElapsedTime()
playdate.resetElapsedTime()
C
float deltaTime = playdate->system->getElapsedTime();
playdate->system->resetElapsedTime();