mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
Add fps-meter to cuteness.unoptimized.
This commit is contained in:
@ -1,4 +1,9 @@
|
|||||||
import application = require("application");
|
import application = require("application");
|
||||||
|
import fps = require("fps-meter");
|
||||||
|
fps.addCallback(function (fps, minFps) {
|
||||||
|
console.info("fps=" + fps + " minFps=" + minFps);
|
||||||
|
});
|
||||||
|
fps.start();
|
||||||
|
|
||||||
// Set the start module for the application
|
// Set the start module for the application
|
||||||
application.mainModule = "main-page";
|
application.mainModule = "main-page";
|
||||||
|
Reference in New Issue
Block a user