fabric-engine/JSSceneGraph — Issue #183: Peformance heavy scenes now seem to block all JavaScript from evaluating
Author: phtaylor
Created: 2012-02-20 20:04:43+00:00
State: open
Labels: fix for 1.0

This is not a new regressions, and in fact may have always been there.

On some of the heavier scenes now, I find on my laptop that the GUI locks up an becomes unresponsive. What it seems to be is that during rendering, JavaScript is blocked, and on a heavy scene, we kick off the next render immediately on returing from the previous.

The sample scenes: crowd, painting, animation review tool. The manipulations end up getting further and further behind the viewport, making the demo unusable.

A simple timeout gives the JavaScript time to catch up.
e.g.

```
setTimeout(function(){
scene.pub.redrawAllViewports();
}, 1);
```

Note: this may have always been like this, however for 1.0.20, I improved the timing system to tighten up redrawing so that we could hit the desired frame rate. Jerome noticed a similar problem a long time ago on his families computer, but we were unable to repro it.