1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

wgl fail if perf issues flag moved to setupPixi();

This commit is contained in:
lgtst 2022-11-30 09:49:29 +00:00
parent 395e7fba41
commit 1f6a816fbf

View File

@ -108,12 +108,6 @@ export class Window extends PsychObject
this._addAttribute("autoLog", autoLog);
this._addAttribute("size", []);
if (this._psychoJS._checkWebGLSupport)
{
// see checkWebGLSupport() method for details.
PIXI.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = true;
}
// setup PIXI:
this._setupPixi();
@ -442,6 +436,12 @@ export class Window extends PsychObject
this._size[0] = window.innerWidth;
this._size[1] = window.innerHeight;
if (this._psychoJS._checkWebGLSupport)
{
// see checkWebGLSupport() method for details.
PIXI.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = true;
}
// create a PIXI renderer and add it to the document:
this._renderer = PIXI.autoDetectRenderer({
width: this._size[0],