Skip to content

Instantly share code, notes, and snippets.

@eimkasp
Created June 21, 2013 06:02
Show Gist options
  • Save eimkasp/5829197 to your computer and use it in GitHub Desktop.
Save eimkasp/5829197 to your computer and use it in GitHub Desktop.
fpsLabel = new createjs.Text("-- fps", "bold 18px Arial", "#000000");
stage.addChild(fpsLabel);
fpsLabel.x = 10;
fpsLabel.y = 20;
stage.addChild(fpsLabel);
function tick(event) {
fpsLabel.text = Math.round(createjs.Ticker.getMeasuredFPS()) + " fps";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment