Embedding in electron and resizing causes webgl instance to become unrepsonsive #340
Replies: 3 comments
-
Update: I added overflow hidden to the html and body of the renderer, I made everything else in the renderer position absolute so it overlays the webgl canvas and now the webgl canvas is being set to the body width and height which is correct. This fixed my issue and now is no longet showing the performance issues in the console |
Beta Was this translation helpful? Give feedback.
-
Second Update: I am still getting this conosle warning when resizing my browser: Why is the performance warning showing up and what does it mean? |
Beta Was this translation helpful? Give feedback.
-
Hi Jake! I've never encountered this problem before. But it seems to be unrelated to this module, so I can't help you any further. I recommend keeping an eye on the Unity forums and perhaps opening a ticket in the Unity bug reporter. For the time being, I'll convert this issue into a discussion so others might help you out. Best of luck and happy coding! |
Beta Was this translation helpful? Give feedback.
-
Please avoid duplicates
Language and Compiler
Babel and WebPack TypeScript
What environment are you using?
Local Development Server
When does your problem occur?
When the Unity App is running
What does your problem relate to?
The problem seems Unity related
React-Unity-WebGL Version
^8.7.4
React Version
^17.0.2
Unity Version
2020.3.21f1
What happened?
Firstly thank you for this amazing and powerful project.
I am trying to embed the unity build in my electron renderer.
It works as expected however, I am running into some resizing/resolution issues that are causing some unexpected behavior.
After fullscreening the app and then unfullscreening, the webgl instance becomes unresponsive and I get this message:
Performance Warning: Recreating Offscreen FBO (2358x2340 => 2358x2370)
Quitting....
Done
How can I avoid the app quitting when changing the resolution?
Reproducible test case
No response
Would you be interested in contributing a fix?
Beta Was this translation helpful? Give feedback.
All reactions