Skip to content

Instantly share code, notes, and snippets.

@azu

azu/block3.js Secret

Created November 19, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azu/cdd6f7c565c96b90f05406b41cd8928a to your computer and use it in GitHub Desktop.
Save azu/cdd6f7c565c96b90f05406b41cd8928a to your computer and use it in GitHub Desktop.
const { PerformanceMetadataMarker } = require("performance-mark-metadata");
const marker = new PerformanceMetadataMarker();
const FpsEmitter = require("fps-emitter");
const fps = new FpsEmitter();
fps.on("update", function(FPS) {
// mark current FPS
marker.mark("FPS", {
details: {
FPS: FPS
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment