All Projects → samme → phaser-plugin-advanced-timing

samme / phaser-plugin-advanced-timing

Licence: other
Shows FPS, frame intervals, and performance info. Phaser 2/CE

Programming Languages

coffeescript
4710 projects
HTML
75241 projects

Projects that are alternatives of or similar to phaser-plugin-advanced-timing

phaser-plugin-scene-graph
Prints the display tree. Phaser 2/CE
Stars: ✭ 32 (+28%)
Mutual labels:  phaser, phaser-plugin
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (+140%)
Mutual labels:  phaser, phaser-plugin
craft
Phaser Library with utility chainable functions
Stars: ✭ 27 (+8%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-debug-arcade-physics
Draws properties of Arcade Physics bodies. Phaser 2/CE
Stars: ✭ 18 (-28%)
Mutual labels:  phaser, phaser-plugin
phaser-nineslice
NineSlice plugin for Phaser!
Stars: ✭ 52 (+108%)
Mutual labels:  phaser, phaser-plugin
phaser-super-storage
A cross platform storage plugin for Phaser
Stars: ✭ 49 (+96%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (+40%)
Mutual labels:  phaser, phaser-plugin
phaser-responsive
Adds a set of responsive objects to Phaser that can be pinned to
Stars: ✭ 25 (+0%)
Mutual labels:  phaser, phaser-plugin
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (+12%)
Mutual labels:  phaser, phaser-plugin
CtrlUI
CtrlUI (Controller User Interface) is a Windows application, game and emulator launcher for your game controller, DirectXInput converts your game controller to a Xbox (XInput) controller, Fps Overlayer is a tool that shows the frames per second and the cpu, gpu and memory information.
Stars: ✭ 39 (+56%)
Mutual labels:  fps
ioq3
The ioquake3 community effort to continue supporting/developing id's Quake III Arena
Stars: ✭ 2,067 (+8168%)
Mutual labels:  fps
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+276%)
Mutual labels:  phaser
badassquest
RPG / GTA-style game engine built on top of Google Maps Javascript APIs
Stars: ✭ 26 (+4%)
Mutual labels:  phaser
exengine
A C99 3D game engine
Stars: ✭ 487 (+1848%)
Mutual labels:  fps
phaser3-plugin-pathbuilder
Draw and edit Lines, Bezier Curves, Splines at runtime, explore your scene and export your paths to Phaser
Stars: ✭ 67 (+168%)
Mutual labels:  phaser
Unity-FPS-Counter
#NVJOB FPS Counter and Graph. Free Unity Asset.
Stars: ✭ 44 (+76%)
Mutual labels:  fps
dungeonz
Everything for the game Rogueworld.
Stars: ✭ 88 (+252%)
Mutual labels:  phaser
liblast
A libre multiplayer FPS game created in Godot Engine
Stars: ✭ 92 (+268%)
Mutual labels:  fps
phaser
This is where Phaser 4 is being developed
Stars: ✭ 291 (+1064%)
Mutual labels:  phaser
TFM
Tyler's Frame Machine is a simple, free, educational, and portable tool for testing, benchmarking, comparison, and demonstration. TFM supports OpenGL, DirectX 11, DirectX 12, Metal, and most importantly, Vulkan! https://tylemagne.github.io/TFM
Stars: ✭ 63 (+152%)
Mutual labels:  fps

Shows FPS, frame intervals, draw count, and other performance info. Demo

Usage

game.plugins.add(Phaser.Plugin.AdvancedTiming);
// or
game.plugins.add(Phaser.Plugin.AdvancedTiming, {mode: 'graph'});

The display modes are domMeter, domText, graph, meter, and text. The default mode is text.

You can save a reference to switch modes later:

var plugin = game.plugins.add(Phaser.Plugin.AdvancedTiming);
// …
plugin.mode = 'text';

The plugin also provides two debug methods:

game.debug.gameInfo(x, y);
game.debug.gameTimeInfo(x, y);

Beware that debug display can be slow in WebGL.

DOM Text, Text

plugin.mode = 'domText';
plugin.mode = 'text';

Text Mode

Both show FPS, render type, and WebGL draw count.

text is drawn on the game canvas. domText is a separate HTML element.

The domText element can be styled as

.ppat-text {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font: 16px/1 monospace;
}

DOM Meter

plugin.mode = 'domMeter';

DOM Meter Mode

Shows FPS. It can be styled as

.ppat-fps {
  position: absolute;
  left: 0;
  top: 0;
}

Graph

Graph Mode

plugin.mode = 'graph';

Plots values for the last 60 updates:

Meter

plugin.mode = 'meter';

Meter Mode

Shows FPS (blue), update duration (orange), and render duration (violet).

Debug Methods

game.debug.gameInfo(x, y);
game.debug.gameTimeInfo(x, y);

Example output of debug.gameInfo() and debug.gameTimeInfo()

debug.gameInfo()

Prints values for

  • game.forceSingleUpdate
  • game._lastCount: “how many ‘catch-up’ iterations were used on the logic update last frame”
  • game.lockRender
  • game.renderType
  • game._spiraling: “if the ‘catch-up’ iterations are spiraling out of control, this counter is incremented”
  • game.updatesThisFrame: “number of logic updates expected to occur this render frame; will be 1 unless there are catch-ups required (and allowed)”

debug.gameTimeInfo()

Prints values for

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].