File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ var AbstractCanvasHandler = require("../renderer/canvas-handler.js");
2
2
var Options = require ( "../../utils/options.js" ) ;
3
3
var Util = require ( "../../utils/misc.js" ) ;
4
4
5
- var MAXFPS = 30 ;
6
-
7
5
var OPTION_CONTINUOUS = "renderer-continuous" ;
8
6
Options . register ( OPTION_CONTINUOUS , false ) ;
9
7
@@ -49,11 +47,11 @@ GLCanvasHandler.prototype.initialize = function () {
49
47
XML3D . updateXflowObserver ( ) ;
50
48
XML3D . flushDOMChanges ( ) ;
51
49
52
- if ( that . canvasSizeChanged ( ) || that . renderer . needsRedraw ( ) || Options . getValue ( OPTION_CONTINUOUS ) ) {
50
+ if ( that . renderer . needsRedraw ( ) || Options . getValue ( OPTION_CONTINUOUS ) || that . canvasSizeChanged ( ) ) {
53
51
that . draw ( ) ;
54
52
}
55
53
56
- window . requestAnimationFrame ( that . tick , MAXFPS ) ;
54
+ window . requestAnimationFrame ( that . tick ) ;
57
55
} ;
58
56
59
57
// Block the right-click context menu on the canvas unless it's explicitly toggled
You can’t perform that action at this time.
0 commit comments