-
-
Save azu/cdd6f7c565c96b90f05406b41cd8928a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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