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!');
|
||||
|
||||
const renderer = await PrepareRenderer({
|
||||
width,
|
||||
height,
|
||||
width: Math.floor(width),
|
||||
height: Math.floor(height),
|
||||
resolution: window.devicePixelRatio,
|
||||
autoDensity: true,
|
||||
backgroundAlpha: 0,
|
||||
preference: 'webgl'
|
||||
preference: 'webgl',
|
||||
eventMode: 'none',
|
||||
failIfMajorPerformanceCaveat: false,
|
||||
roundPixels: true
|
||||
});
|
||||
|
||||
await GetConfiguration().init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user