4 ms·
Looks good, but why do you limit the Night version to 10fps? The JS profiler shows you're explicitly doing nothing on 5 out of 6 frames.
by hughes 11y ago
Looks good, but why do you limit the Night version to 10fps? The JS profiler shows you're explicitly doing nothing on 5 out of 6 frames.
- verbilis 11y agoYou mean to make the motion more smooth?
- hughes 11y agoI mean in `animateDrops` you check if `timestamp - lastExecutionTime < speed`. You set `speed` to 100ms when you call `engine.rain`. Because of this the motion is jittery, updating at about 1/3 the rate of smooth video and 1/6th the rate our eyes can perceive.