Disable the GPU timer by default
This commit is contained in:
parent
bd1eb1102e
commit
d241f36866
4 changed files with 19 additions and 5 deletions
|
|
@ -139,10 +139,12 @@ export class RendererImplementation implements Renderer {
|
|||
await compiler.compilePrograms();
|
||||
await Promise.all(promises);
|
||||
|
||||
try {
|
||||
this.stopwatch = new WebGlStopwatch(this.gl);
|
||||
} catch {
|
||||
// no problem
|
||||
if (settings.enableStopwatch) {
|
||||
try {
|
||||
this.stopwatch = new WebGlStopwatch(this.gl);
|
||||
} catch {
|
||||
// no problem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue