Skip to content

Commit 4efd49c

Browse files
committed
Add the Tracer benchmark application
1 parent dc6eda9 commit 4efd49c

File tree

4 files changed

+1734
-8
lines changed

4 files changed

+1734
-8
lines changed

index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ <h1>Scala-js-benchmarks</h1>
2222
<h2>Benchmarks for Scala.js</h2>
2323
</header>
2424

25-
<section id="downloads" class="clearfix">
26-
<a href="https://github.com/jonas/scala-js-benchmarks/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
27-
<a href="https://github.com/jonas/scala-js-benchmarks/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
28-
<a href="https://github.com/jonas/scala-js-benchmarks" id="view-on-github" class="button"><span>View on GitHub</span></a>
29-
</section>
30-
3125
<hr>
3226

3327
<section id="main_content">
@@ -48,4 +42,4 @@ <h3>
4842
</div>
4943
</div>
5044
</body>
51-
</html>
45+
</html>

javascripts/main.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

tracer/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<title>index</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
7+
</head>
8+
9+
<body onload="Tracer.startApp()">
10+
<canvas id="canvasContext" width="100" height="100" style="border:1px solid black"></canvas>
11+
12+
<div>
13+
Width: <input type="text" id="imageWidth" value="100">
14+
</div>
15+
<div>
16+
Height: <input type="text" id="imageHeight" value="100">
17+
</div>
18+
<div>
19+
Pixel Size: <input type="text" id="pixelSize" value="5">
20+
</div>
21+
<div>
22+
Diffuse: <input type="checkbox" id="renderDiffuse" checked>
23+
</div>
24+
<div>
25+
Shadows: <input type="checkbox" id="renderShadows" checked>
26+
</div>
27+
<div>
28+
Highlights: <input type="checkbox" id="renderHighlights" checked>
29+
</div>
30+
<div>
31+
Reflections: <input type="checkbox" id="renderReflections" checked>
32+
</div>
33+
<button id="render">Render</button>
34+
<div>
35+
Time (ms): <span id="time"></span>
36+
</div>
37+
38+
<script type="text/javascript" src="tracer-opt.js"></script>
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)