mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Prefer WebGL over WebGPU for now
This commit is contained in:
parent
cb80bf3a17
commit
98b3bcc9d4
@ -28,13 +28,10 @@ export const App: FC<{}> = props =>
|
|||||||
height,
|
height,
|
||||||
autoDensity: true,
|
autoDensity: true,
|
||||||
backgroundAlpha: 0,
|
backgroundAlpha: 0,
|
||||||
//@ts-ignore
|
preference: 'webgl'
|
||||||
preference: 'webgl2'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const stage = GetStage();
|
GetTicker().add(ticker => renderer.render(GetStage()));
|
||||||
|
|
||||||
GetTicker().add(ticker => renderer.render(stage));
|
|
||||||
|
|
||||||
await GetConfiguration().init();
|
await GetConfiguration().init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user