mrdoob/three.js — Issue #896: Freeze FPS + Smooth Movements?
Author: zz85
Created: 2011-12-12 16:57:43+00:00
State: open

Freeze in `FirstPersonControls` doesn't seem to work for me. Not sure if this is the intended feature, but it seems to work better this way.

https://github.com/zz85/three.js/commit/2399ccc9d2e49fa9742b0d0f2390cdc3f6e48345

As an observation, I find that using deltas for updating in render() causes lots jerkiness. To investigate, open shadowmapping example and add this.

```var minDelta = Number.POSITIVE_INFINITY, maxDelta = Number.NEGATIVE_INFINITY;
function render() {
var delta = clock.getDelta();
minDelta = Math.min(minDelta, delta);
maxDelta = Math.max(maxDelta, delta);```

near the render block. I often get ~ 0.4 for max values and 0.015 for min values. That means, at certain frames, the camera+animation seems to at a halt, and at certain frames move across much faster, making animation look really jerky.

Yeah, this is really weird, because i guess that's what the clock's delta was meant for, but if I fix delta at say 0.025, I seems to get a much smoother animation on my machine. (I'm just guessing, but perhaps this is not a problem if GPU's fast enough? This alway seem more apparent for me in fullscreen)