-
Notifications
You must be signed in to change notification settings - Fork 13
/
performance-cached-moving.html
47 lines (38 loc) · 1.24 KB
/
performance-cached-moving.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Performance Test</title>
<link href="../unicodetiles/unicodetiles.css" rel="stylesheet" type="text/css" />
<link href="../docs/style.css" rel="stylesheet" type="text/css" />
<link href="../examples/style.css" rel="stylesheet" type="text/css" />
<script src="../unicodetiles/unicodetiles.js"></script>
<script src="../unicodetiles/ut.WebGLRenderer.js"></script>
<script src="../unicodetiles/ut.CanvasRenderer.js"></script>
<script src="../unicodetiles/ut.DOMRenderer.js"></script>
<script src="performance-core.js"></script>
<script>
var x = 0;
tick = function() {
eng.update(x, 0);
term.render();
++x;
++iterations;
};
function postInit() {
eng.setCacheEnabled(true);
}
</script>
</head>
<body onload="init(); postInit(); start();"><div id="container">
<p id="result" class="centerer">Test running...</p>
<div class="centerer">
<div id="game">Enable JavaScript and reload the page.</div>
</div>
<div class="centerer">
<p>Renderer: <span id="renderer"></span></p>
<a href="#" id="switch-renderer">Switch</a>
</div>
<a class="backlink" href="index.html"><-- Back</a>
</div></body>
</html>