Skip to content

Commit 01da374

Browse files
author
David Gillen
committed
updates to benchmark
1 parent 68bf3ca commit 01da374

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/WebGL/Benchmark.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
this.objects = MaxPerTick;
6464
this.triangles = "";
6565

66-
this.texture = "Individual";
67-
this.particleRender = false;
66+
this.texture = "Sprite Sheet";
67+
this.directDraw = true;
6868
this.allowWebGL = true;
6969

7070
this.more = handleRelease; // add event listener for down
@@ -113,7 +113,7 @@
113113
propsFolder.open();
114114
propsFolder.add(guiProps, "texture", ["Individual", "Sprite Sheet"]).onChange(toggleEffect);
115115
propsFolder.add(guiProps, "allowWebGL").onChange(toggleEffect);
116-
//propParticle = propsFolder.add(guiProps, "particleRender").onChange(toggleEffect);
116+
propsFolder.add(guiProps, "directDraw").onChange(toggleEffect);
117117

118118
gui.add(guiProps, "reset");
119119

@@ -187,8 +187,9 @@
187187
canvas.width = CANVAS_WIDTH;
188188
canvas.height = CANVAS_HEIGHT;
189189
if(guiProps.allowWebGL) {
190+
//debugger;
190191
// we know we wont be unloading textures, so turn off the cleanup routine to get maximum speed
191-
stage = new createjs.StageGL(canvas, {autoPurge: -1});
192+
stage = new createjs.StageGL(canvas, {autoPurge: -1, directDraw: guiProps.directDraw});
192193
stage.setClearColor(0x000000);
193194
} else {
194195
stage = new createjs.Stage(canvas);

0 commit comments

Comments
 (0)