CNA Samples

Performance Utility

Ported from Microsoft's XNA 4.0 Performance Utility sample for Windows.

Source for this sample on GitHub ↗

🟡 Partially implemented on the web. The local profiling tools and command console work. The original remote command cannot connect yet: browser account sign-in and SystemLink discovery, joining and relay support are unfinished in CNA.

The running utility shows a cat, keyboard instructions, FPS and a timing ruler on a blue screen. Play local utility ▸

Opens in a new tab. Focus the game, press A, B or X to show the counters, and Tab to open the command console.

About this sample

This utility demonstrates reusable debug tools: an FPS counter, a nested timing ruler and log, and a command console with help, history and commands. Its demonstration scene draws a cat; the pos command moves it.

The original Windows product also includes a SystemLink remote-command client, with the host in the Xbox branch. The command and protocol remain in this port, but the browser cannot use that network feature yet. The initial “Please signed in.” message is not a successful connection.

Controls

ActionControl
Show or hide FPSA key / gamepad A
Show or hide timing rulerB key / gamepad B
Show or hide timing logX key / gamepad X
Open or close command consoleTab
Move the catEnter pos 300 200 in the console
Read position / list commandspos / help
Stop the sampleEscape / gamepad Back, or close the tab

What remains for web networking

After CNA's shared network layer is ready, this sample must be rebuilt and tested with genuine signed-in peers. The full completion checklist and implementation locations are in diff.md and CNA's browser network readiness record.