Saving and reading FPS from model

This commit is contained in:
juliandescottes
2012-09-20 23:57:26 +02:00
parent 019df61cdc
commit c7a8233adc
6 changed files with 53 additions and 32 deletions

View File

@ -22,8 +22,12 @@
};
ns.AnimatedPreviewController.prototype.onFPSSliderChange = function(evt) {
this.fps = parseInt($("#preview-fps")[0].value, 10);
$("#display-fps").html(this.fps + " FPS")
this.setFPS(parseInt($("#preview-fps")[0].value, 10));
};
ns.AnimatedPreviewController.prototype.setFPS = function (fps) {
this.fps = fps;
$("#display-fps").html(this.fps + " FPS");
};
ns.AnimatedPreviewController.prototype.render = function (delta) {