Player
The Player is a standalone desktop application that lets you preview and test your game UI as you develop it. It loads HTML pages, propagates input, and gives you access to profiling and debugging tools — all without needing to integrate your UI into a game engine first.
For a workflow-oriented Player setup with local dev servers, HMR, and overrides, see The Gameface Player and Setting up the Gameface Stack.
Running it
Section titled “Running it”Run the provided Player.bat on Microsoft Windows or Player.sh on MacOS.
Overview
Section titled “Overview”The Player provides everything you need for UI development and testing:
- Showing User Interfaces (UI) — drag and drop HTML files from your file system directly onto the Player window, type a URL in the address bar, or open a saved bookmark. It also supports loading files through HTTP and WebSockets which allows using Hot Module Replacement (HMR) with frameworks like
ViteandWebpack. - Input handling — the Player sends mouse and keyboard input to the view. Gamepad and touch input are also supported on Microsoft Windows.
- Profiling — open DevTools with F12 and use the Performance panel to measure rendering speed and identify bottlenecks.
- Debugging — inspect elements, debug JavaScript, and monitor activity through the built-in DevTools and Visual Studio Code.
Bookmarks
Section titled “Bookmarks”The Player includes a bookmark bar and manager for quick access to frequently used pages. Bookmarks are stored in CohtmlBookmarks.html, located next to the Player executable. It uses the standard HTML bookmarks format, so you can import bookmarks from any browser by exporting them and using the Import Bookmarks menu.
Player configuration
Section titled “Player configuration”Command-line options
Section titled “Command-line options”The most useful options when working with the Player:
Player.exe [OPTIONS] [positional_url...] [SUBCOMMANDS]
POSITIONALS: positional_url TEXT Initial URL(s) to load.
OPTIONS: -h, --help Print this help message and exit --url TEXT Initial URL(s) to load. Provide comma-separated values for multiple views. --root TEXT Sets the root directory for "coui://" --width INT [1280] Sets the width of the player window in pixels. --height INT [720] Sets the height of the player window in pixels. --renderer ENUM:value in {dx11,dx12,opengl} [dx11] Selects the graphics renderer. --debugger-port, --remote-debugging-port INT [9444] Port for DevTools; open http://localhost:<port> in Chrome to access them. Set to -1 to disable. --log-verbosity ENUM:value in {trace,debug,info,warning,error,assert,critical,none} [info] Controls the verbosity of log output. --input ENUM:value in {mouse,touch} [mouse] Type of input events to send to the UI. --default-font TEXT [Droid Sans] Sets the default style font family. --redraw-all [false] Tells the application to repaint Views every frame (useful for debugging). --profile-performance [TEXT] Enables performance profiling, applies profiling-friendly defaults, and writes a trace file. Accepts optional l1, l2, or l3; defaults to l1. --config [Config.toml] Read options from a configuration file.Run Player.exe --help for the full list of supported arguments.
Configuration file
Section titled “Configuration file”The Player looks for the Config.toml in the following locations in decreasing priority:
- The location specified by the
--configcommand-line option - The current working directory
- The directory containing the Player executable
The configuration file may specify any command-line option, while still allowing the command-line to override the option value.
Keyboard shortcuts
Section titled “Keyboard shortcuts”| Shortcut | Action |
|---|---|
| F1 | Opens this documentation in your browser |
| F5 | Reloads the current view |
| Ctrl+L | Focuses the address bar |
| Ctrl+F11 | Toggles the Player GUI |
| F12 | Starts the DevTools in Google Chrome |
| Ctrl+F12 | Toggles internal profiling at level 1 |
| Ctrl+Shift+F12 | Toggles internal profiling at level 2 |
Toolbar
Section titled “Toolbar”The toolbar runs along the top of the Player window and gives you quick access to navigation, bookmarks, and selecting an fixed aspect ratio for showing the UI.
Font loading in the Player
Section titled “Font loading in the Player”The recommended way to load fonts is to use @font-face and font-family. You can also configure the Player to load specific fonts as well:
default-font = "MyFont"
[register-font]path = "URL or path to a font"family = ""sdf = "auto"style = "auto"weight = "auto"
[register-font]path = "URL or path to a second font"family = ""sdf = "auto"style = "auto"weight = "auto"To view all available font registration options, run Player.exe register-font --help.
Player and user interfaces using absolute URLs
Section titled “Player and user interfaces using absolute URLs”If your UI is using absolute URLs you could set the coui-root using the command-line --root argument at Player start-up, or, preferably, convert the absolute URLs to relative ones.
Webpack, Vite, or other similar content development tools can produce such absolute URLs.
To convert generated URLs from absolute to relative, you should check the Webpack documentation and Vite documentation or documentation of your tool of choice.
Profiling UI with the Player
Section titled “Profiling UI with the Player”The Gameface Player can be used to profile standalone HTML pages before integrating them into the game. This is useful when you want to measure UI performance in isolation, compare changes between revisions, or capture profiling data without game-specific overhead.
After starting the Player, your UI can be profiled through Chrome DevTools, internal Gameface profiling markers, and additional Player command-line options, as outlined below.
Profiling mode
Section titled “Profiling mode”The Player supports the --profile-performance command-line option. In addition to enabling performance tracing, this option also applies profiling-friendly defaults intended to reduce Player-side overhead and make captures easier to compare.
If no level is provided, --profile-performance uses l1 by default.
When enabled, --profile-performance applies defaults such as:
- hiding the Player GUI overlay;
- disabling allocation tracking;
- disabling allocation callstack collection;
- disabling same-frame allocation dumping;
- enabling Gameface performance profiling markers at the requested level.
These defaults are applied only when the corresponding option was not explicitly provided. This means that --profile-performance can be combined with other command-line options when you want to override part of the preset.
For example, you can start with the default level:
Player.exe --profile-performance --url "coui://ui/index.html"Or request a more detailed profiling level:
Player.exe --profile-performance l3 --url "coui://ui/index.html"© 2026 Coherent Labs. All rights reserved.