Works on this device
Game Performance Calculator
Work out the arithmetic of game performance: frame rate and frame time, a frame budget shared between systems, the effect of an added cost, and the memory of textures and sounds. Every number is yours; the page holds no data about devices or engines.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out, for example Frame budget split across systems.
- Type your own numbers, such as the frame rate you aim for and the time each system takes in your profiler.
- Choose Calculate. The result shows the totals, a table and the working. Download the table as a CSV file if you need it.
The formulas
- Frame time in ms = 1000 ÷ frame rate in fps, and frame rate = 1000 ÷ frame time. 60 fps is 16.67 ms per frame.
- Frame budget = 1000 ÷ target frame rate. A share in percent is share × budget ÷ 100. Headroom = budget − the sum of the times.
- An added cost: new frame time = 1000 ÷ frame rate now + time of one item × number of items; new frame rate = 1000 ÷ new frame time.
- Texture memory: each mipmap level is half as wide and half as high as the one before (rounded down), down to 1 × 1. A block-compressed level takes whole blocks: ceil(width ÷ block width) × ceil(height ÷ block height) × bytes per block.
- Audio memory (uncompressed PCM) = sample rate × length × channels × bits per sample ÷ 8 bytes.
- Budget rows: total = the sum of how many × the amount for one, for memory, triangles or draw calls.
Worked example
A game aims for 60 fps, so the frame budget is 1000 ÷ 60 = 16.667 ms. Game logic 3 ms, physics 2 ms, animation 1.5 ms, rendering 7 ms, audio 0.5 ms and the user interface 1 ms use 15 ms, which leaves 1.667 ms of headroom (90% of the budget used).
A game runs at 72 fps (13.889 ms). Twenty effects of 0.25 ms each add 5 ms, so the frame takes 18.889 ms and the frame rate drops to 52.94 fps. To hold 60 fps, at most floor((16.667 − 13.889) ÷ 0.25) = 11 such effects fit.
A 2048 × 2048 texture in BC7 takes 512 × 512 blocks of 16 bytes = 4 MiB. With all 12 mipmap levels it takes 5,592,432 bytes, about 5.33 MiB.
A 30-second stereo sound at 48,000 Hz and 16 bits takes 48,000 × 30 × 2 × 2 = 5,760,000 bytes, about 5.49 MiB.
Limits you should know
- This page cannot predict the frame rate of a game on a computer or a phone from its parts. That needs measurements of that game on that hardware.
- Times are added as if the systems run one after the other. Work on other processor cores or on the graphics card can overlap, so use the longest path of one frame from your profiler.
- Texture sizes are the size of the data. A driver may add padding, and an engine may keep extra copies while it loads.
- Draw calls and triangles depend on how your engine batches objects, on shadows and on extra passes. Type what your engine reports.