diff options
| author | jules <jules@okfoc.us> | 2014-01-21 01:18:36 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2014-01-21 01:18:36 -0500 |
| commit | ced1db8df6c73f7bd0a4debd3f20b5570b99e7b4 (patch) | |
| tree | ac3caa637cb7538cb8e1ee6316cc07a10b1d4dba /js/render.js | |
| parent | c55b90c1ed47028a5e6ce0aff2284fb7cb5ed554 (diff) | |
shader loader demo
Diffstat (limited to 'js/render.js')
| -rw-r--r-- | js/render.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/render.js b/js/render.js index 9d3ab04..fdb0125 100644 --- a/js/render.js +++ b/js/render.js @@ -93,11 +93,14 @@ function animate(t){ draw(t) // timing = +(new Date()) - timing fps = avg(fps, 1000/step_t, 4) - status(~~(fps) + " fps") + // status(~~(fps) + " fps") } + function draw(t) { t -= start_t t -= pause_t frame = giveFrame(t) shade(frame, t) } + +function status(s){ $("#status").html(s); console.log(s) } |
