Okabintaro / SubmersedVR

A Subnautica VR mod aiming to bring full motion controler support and common VR mechanics to the game.
MIT License
204 stars 13 forks source link

Black screen after a certain playtime #9

Closed Okabintaro closed 1 year ago

Okabintaro commented 1 year ago

It seems that the way I steal and use the cameras in the game for the VR Setup could cause some issues. After a certain amount of time the screen just turns completely black or flickers.

When that happens the following log messages get spammed very often in the logs:

Resource ID out of range in SetResource: 1048578 (max is 1048575) 
(Filename:  Line: 109)

Reading upon this issue lead me to this thread explaining that

I was getting this issue after about an hour of playtime, but was also having QuickSlots+ mod installed. Not sure if they use rendertextures but it could accelerate the issue to appear faster. The hmd view and desktop view was black, with the exception of the UnityExplorer Windows which still kinda which is an interesting detail.

The user Natti(much thanks for helping with logs and savegames!) on Discord had the issue much more, but they were using the MiniMap mod too, which probably also uses render textures, causing the resource id overflow sooner.

Have to investigate more and see where in the game the render textures get used. Most likely also the eyes in VR Rendering in MultiPass uses them, but I hope those are cleaned up correctly.

Okabintaro commented 1 year ago

This seems to be fixed by 39fb607ca8bc1764d449a5c63012a832a4fffe58 indeed. Gonna reopen if it appears again.