2D Shooter Bullet and Weapon System for Unity 3.0.0
Loading...
Searching...
No Matches
BenchmarkRunner Class Reference

Runs a timed benchmark, records FPS, and writes results to a file. More...

Inheritance diagram for BenchmarkRunner:

Public Attributes

float defaultDurationSeconds = 15f
int frameSampleInterval = 1

Detailed Description

Runs a timed benchmark, records FPS, and writes results to a file.

Average FPS uses total frames / total time (correct); arithmetic mean of per-frame FPS would skew high. Activate via command line: -benchmark -useDots (1|0) [-duration seconds] Example: MyGame.exe -benchmark -useDots 1 -duration 15 Output: Application.persistentDataPath/benchmark_YYYYMMDD_HHmmss_DOTS_on.txt

Member Data Documentation

◆ defaultDurationSeconds

float BenchmarkRunner.defaultDurationSeconds = 15f

◆ frameSampleInterval

int BenchmarkRunner.frameSampleInterval = 1

The documentation for this class was generated from the following file: