{"repo":"samme/phaser-plugin-advanced-timing","free":true,"listed":false,"github":"https://github.com/samme/phaser-plugin-advanced-timing","clone":"git clone https://github.com/samme/phaser-plugin-advanced-timing.git","description":"Shows FPS, frame intervals, and performance info. Phaser 2/CE","language":"CoffeeScript","stars":31,"topics":["phaser","phaser-plugin","fps"],"license":null,"category":"game-templates","readme_excerpt":"Shows FPS, frame intervals, draw count, and other performance info. Demo Usage ----- The display modes are domMeter , domText , graph , meter , and text . The default mode is text . You can save a reference to switch modes later: The plugin also provides two debug methods: Beware that debug display can be slow in WebGL. DOM Text, Text -------------- Both show [FPS][fps], [render type][renderType], and WebGL draw count. text is drawn on the game canvas. domText is a separate HTML element. The domText element can be styled as DOM Meter --------- Shows FPS. It can be styled as Graph ----- Plots values for the last 60 updates: - FPS (blue) - [update duration][updateLogic] (orange) - [render duration][updateRender] (violet) - spiraling (red) - updatesThisFrame (dark blue; only when [forceSingleUpdate][forceSingleUpdate] is off) Meter ----- Shows FPS (blue), [update duration][updateLogic] (orange), and [render duration][updateRender] (violet). Debug Methods ------------- debug.gameInfo() Prints values for - [game.forceSingleUpdate][forceSingleUpdate] - game. lastCount : “how many ‘catch-up’ iterations were used on the logic update last frame” - [game.lockRender][lockRender] - [game.renderType][renderType] - game. spiraling : “if the ‘catch-up’ iterations are spiraling out of control, this counter is incremented” - [game.updatesThisFrame][updatesThisFrame]: “number of logic updates expected to occur this render frame; will be 1 unless there are catch-ups required (and allowed)” debu","default_branch":null,"files":null,"tree":[],"storefront":"/r/samme","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/samme/phaser-plugin-advanced-timing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}