Endeva Posted June 6, 2018 Share Posted June 6, 2018 Hello, I'm new to Pixi.js and wanted to get the current FPS the game is running at and display it. I know that I will need to use the Ticker class but I'm not too sure on how to do that. Any help would be appreciated. S. Quote Link to comment Share on other sites More sharing options...
Exca Posted June 6, 2018 Share Posted June 6, 2018 ticker.FPS should give the value. It is the FPS for that given moment, to get a more nicer looking fps meter you should consider calculating an average from certain amount of frames. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 6, 2018 Share Posted June 6, 2018 app.ticker.FPS ? Quote Link to comment Share on other sites More sharing options...
jonforum Posted June 6, 2018 Share Posted June 6, 2018 if you use chromium or chrome you can set arg --show-fps-counter https://developer.chrome.com/devtools/docs/rendering-settings for app simply add custom flag inside the package.json ! the flag are "chromium-args" : "--show-fps-counter" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.