CNA Samples

Performance Measuring

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

Source for this sample on GitHub ↗

The running game after adding spheres and disabling collisions, with FPS and time ruler visible. Play ▸

Opens in a new tab. The game starts with 50 spheres and collisions on. The picture shows a later state after increasing the sphere count and turning collisions off.

About this sample

Colored spheres bounce above a checkerboard floor. The FPS counter and time ruler show the cost of updating and drawing the scene as the number of spheres and their interactions change.

Controls

ActionControl
Increase or decrease spheresHold Up or Down
Toggle sphere collisionsPress X
Open the debug consolePress Tab
Try System Link discoveryType remote in the console and press Enter
ExitPress Escape