mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
- Pixi Canvas and WebGL render was added for quick benchmarking but it's going away soon, because WebGL is even slower than Canvas for big textures. The browsers nowadays use OpenGL in the backend for rendering Canvas. - There is 3 different WebGL Renders but they need adjusting so they work with Non Power Of Two textures. - For now the winner is JPEG+Canvas, however CRN+WebGL will be better almost for sure if server side supports it.
29 lines
614 B
HTML
29 lines
614 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Fast Image Render Test</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h2>Fast Image Render Test</h2>
|
|
|
|
<dl>
|
|
<dt>Frame number</dt>
|
|
<dd id="frame-number"></dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Total Time</dt>
|
|
<dd id="total-time"></dd>
|
|
</dl>
|
|
|
|
<canvas width="643px" height="1149px"></canvas>
|
|
<!--<canvas width="642px" height="1146px"></canvas>-->
|
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/pixi.js/1.5.1/pixi.dev.js"></script>
|
|
<script src="../webgl-texture-utils/build/texture-util.js"></script>
|
|
<script src="../index.js"></script>
|
|
<script src="performance_test.js"></script>
|
|
</body>
|
|
</html>
|