Skip to content

Commit a637315

Browse files
committed
limit elapsed-time - prevent jump on blur
1 parent 28aa109 commit a637315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/fbo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function computeVertexNormals( ) {
300300
function update() {
301301

302302
const now = performance.now();
303-
dt = (now - prevTime)/1000;
303+
dt = Math.min(now - prevTime, 33.333)/1000;
304304
prevTime = now;
305305

306306
integrate();

0 commit comments

Comments
 (0)