class.FillrateProfiler
API > FillrateProfiler
Class: FillrateProfiler
A basic GPU fill rate profiler.
Constructors
constructor
new FillrateProfiler(
benchmark
,shaders
):FillrateProfiler
Parameters
Parameter | Type | Description |
---|---|---|
benchmark | Benchmark | The benchmark context to use. |
shaders | object | The shader imports. |
shaders.fillrate | object | - |
shaders.fillrate.fragmentShader | string | - |
shaders.fillrate.vertexShader | string | - |
shaders.pointrate | object | - |
shaders.pointrate.fragmentShader | string | - |
shaders.pointrate.vertexShader | string | - |
Returns
Source
@novorender/core3d/benchmark/fillrate.ts:17
Properties
benchmark
readonly
benchmark:Benchmark
The benchmark context.
Source
@novorender/core3d/benchmark/fillrate.ts:19
program
readonly
program:WebGLProgram
Source
@novorender/core3d/benchmark/fillrate.ts:10
uniforms
readonly
uniforms:Record
\<"seed"
,null
|WebGLUniformLocation
>
Source
@novorender/core3d/benchmark/fillrate.ts:11
Methods
measure
measure():
Promise
\<number
>
Measure fill rate by rendering a series of noisy, semi-transparent quads.
Returns
Promise
\< number
>
Fill rate estimate in pixels/second.
Source
@novorender/core3d/benchmark/fillrate.ts:34
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.