Skip to content
Browse files

updates perf test, adds support for canvas mode

  • Loading branch information...
1 parent b999d9f commit af16e2f96e9f2392e998056d2131c307eae5e824 @funkaster committed
Showing with 7 additions and 4 deletions.
  1. +7 −4 html/test_perf.html
View
11 html/test_perf.html
@@ -83,7 +83,7 @@
var size = chesterGL.viewportSize();
// add lots of blocks
- addBlocks(5000);
+ addBlocks(useWebgl ? 5000 : 1000);
sceneBlock.lastAdd = Date.now() + 3000;
};
@@ -100,6 +100,10 @@
});
setupGame();
+
+ $("#pause").click(function () {
+ chesterGL.togglePause();
+ });
});
</script>
<script type="text/javascript">
@@ -121,9 +125,8 @@
<span id="debug-info">00</span> ms per frame
<a href="index.html">Test Index</a>
<div>
- Number of blocks: <span id="totalBlocks"></span> |
- Use block group (batched sprites): <input id="useBlockGroup" type="checkbox" checked value="1"/>
- <input type="button" id="reset" value="Reset"/>
+ Number of blocks: <span id="totalBlocks"></span>
+ <input type="button" id="pause" value="pause"/>
</div>
</div>
</div>

0 comments on commit af16e2f

Please sign in to comment.
Something went wrong with that request. Please try again.