-
Notifications
You must be signed in to change notification settings - Fork 137
FPS Counter
emorling edited this page Sep 17, 2012
·
5 revisions
Step 1. Add a div to index.html, and style it as you like.
<div id="fps" style="position:absolute"></div>
Step 2. Add the following to client.js
setInterval(function(){document.getElementById('fps').innerHTML = ige.fps()+"fps "+ige.dps()+"dps "+ige.dpt()+" dpt";},1000);
FPS = Frames per second
DPS = Draws per second
DPT = Draws per tick