declare WebGL functions as noop - usefull to benchmark
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

NoWebGL is a library to help benchmarking your WebGL demo. In short, it declares all WebGL functions as dummy, so you can measure more accuratly the time taken by the rest e.g. javascript.

Its purpose is to rule out WebGL performance when you optimize, and thus see more clearly the effect of your javascript. This isnt foolproof, mainly because the dummy functions are real dummy. If your code is doing a lot of gl.get* and is expecting real results, it may cause trouble.

This is directly inpired from firebugx. There is a lesson as example. This is early work. suggestions and/or pull request are welcomed.

How to use it

Just copy this line

<script src="nowebgl.js"></script>

It is all you need :) It will replace normal canvas.getContext function and provide a NoWebGL.Context.