@novorender/api / FillrateProfiler
Class: FillrateProfiler
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:15
A basic GPU fill rate profiler.
Constructors
Constructor
new FillrateProfiler(benchmark, shaders): FillrateProfiler;
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:23
Parameters
Parameter | Type | Description |
---|---|---|
benchmark | Benchmark | The benchmark context to use. |
shaders | { fillrate : { fragmentShader : string ; vertexShader : string ; }; pointrate : { fragmentShader : string ; vertexShader : string ; }; } | The shader imports. |
shaders.fillrate | { fragmentShader : string ; vertexShader : string ; } | - |
shaders.fillrate.fragmentShader | string | - |
shaders.fillrate.vertexShader | string | - |
shaders.pointrate | { fragmentShader : string ; vertexShader : string ; } | - |
shaders.pointrate.fragmentShader | string | - |
shaders.pointrate.vertexShader | string | - |
Returns
FillrateProfiler
Methods
measure()
measure(): Promise<number>;
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:40
Measure fill rate by rendering a series of noisy, semi-transparent quads.
Returns
Promise
<number
>
Fill rate estimate in pixels/second.
Remarks
This test is quite inaccurate and does not match close to the nominal fill rate of a GPU, particularly on tile based mobile GPUs. The result should only serve as a rough estimate.
Properties
benchmark
readonly benchmark: Benchmark;
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:25
The benchmark context.
program
readonly program: WebGLProgram;
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:16
uniforms
readonly uniforms: object;
Defined in: @novorender/src/core3d/benchmark/fillrate.ts:17
Index Signature
[k: string]: null | WebGLUniformLocation