mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
🆙 added Renderer back
This commit is contained in:
parent
74b59bffaf
commit
888738bbba
10
src/App.tsx
10
src/App.tsx
@ -30,11 +30,15 @@ export const App: FC<{}> = props =>
|
|||||||
if(!window.NitroConfig) throw new Error('NitroConfig is not defined!');
|
if(!window.NitroConfig) throw new Error('NitroConfig is not defined!');
|
||||||
|
|
||||||
const renderer = await PrepareRenderer({
|
const renderer = await PrepareRenderer({
|
||||||
width,
|
width: Math.floor(width),
|
||||||
height,
|
height: Math.floor(height),
|
||||||
|
resolution: window.devicePixelRatio,
|
||||||
autoDensity: true,
|
autoDensity: true,
|
||||||
backgroundAlpha: 0,
|
backgroundAlpha: 0,
|
||||||
preference: 'webgl'
|
preference: 'webgl',
|
||||||
|
eventMode: 'none',
|
||||||
|
failIfMajorPerformanceCaveat: false,
|
||||||
|
roundPixels: true
|
||||||
});
|
});
|
||||||
|
|
||||||
await GetConfiguration().init();
|
await GetConfiguration().init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user