-
Notifications
You must be signed in to change notification settings - Fork 13
/
performance-huge-viewport.html
44 lines (38 loc) · 1.45 KB
/
performance-huge-viewport.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
<!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>
randomTile = function(x, y) {
var r = Math.floor(Math.random() * 255);
var g = Math.floor(Math.random() * 255);
var b = Math.floor(Math.random() * 255);
var br = Math.floor(Math.random() * 255);
var bg = Math.floor(Math.random() * 255);
var bb = Math.floor(Math.random() * 255);
var c = Math.floor(Math.random() * chars.length);
return new ut.Tile(chars[c], r, g, b, br, bg, bb);
}
</script>
</head>
<body onload="init(101, 41); start();">
<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>
</body>
</html>