1 parent eca1d6b commit 8355e90Copy full SHA for 8355e90
1 file changed
src/Processing.h
@@ -4211,6 +4211,7 @@ struct PApplet {
4211
4212
int frameCount = 1;
4213
float _frameRate = 60.0f;
4214
+ float deltaTime = 0.016f; // seconds since last frame (like p5.js deltaTime/1000)
4215
bool looping = true;
4216
4217
@@ -4290,7 +4291,8 @@ struct PApplet {
4290
4291
void size(int w, int h, int renderer);
4292
void fullScreen();
4293
void fullScreen(int mode);
- void frameRate(int fps);
4294
+ void frameRate(int fps);
4295
+ float getFrameRate() const { return _frameRate; }
4296
void noLoop();
4297
void loop();
4298
void redraw();
0 commit comments