Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

declare WebGL functions as noop - usefull to benchmark

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 MIT-LICENSE.txt
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 nowebgl.js
README.md

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 learningwebgl.com 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.

Something went wrong with that request. Please try again.