There was an error while loading. Please reload this page.
1 parent 8355e90 commit e926451Copy full SHA for e926451
1 file changed
src/Processing.cpp
@@ -3941,6 +3941,7 @@ void PApplet::run(){
3941
auto frameEnd = ::std::chrono::steady_clock::now();
3942
double fullFrame = ::std::chrono::duration<double>(frameEnd - last).count();
3943
if (fullFrame > 0) _frameRate = (float)(1.0 / fullFrame);
3944
+ deltaTime = (float)fullFrame;
3945
last = frameEnd;
3946
}
3947
if(phongProg){glDeleteProgram(phongProg);phongProg=0;}
0 commit comments