🆙 added Renderer back

This commit is contained in:
DuckieTM 2025-03-10 23:22:09 +01:00
parent 74b59bffaf
commit 888738bbba

View File

@ -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();