Jabka666 / scpcb-ue-my

SCP - Containment Breach Ultimate Edition
26 stars 10 forks source link

Some textures stop rendering after game missing focus in fullscreen #161

Closed EasyT-T closed 3 months ago

EasyT-T commented 3 months ago

Can you pause game when game is in background like non-reborn edition or original cb? Because that can make player use FullScreen mode and freeze the game in background and the game ui will not be ruined.

Or you can make a switch button to switch this feature.

ZiYueCommentary commented 3 months ago

The game does pause when it is not focused.

EasyT-T commented 3 months ago

The game does pause when it is not focused.

No, I mean you need freeze the game when the game is in background. Seems like now the UI will not update/disappear when the game is minimize. If you freeze the game, the UI will resume update when the game is in foreground.

If you do this, players can use dgVoodoo to use FullScreen mode and has a better experience.

Jabka666 commented 3 months ago

The game does pause when it is not focused.

No, I mean you need freeze the game when the game is in background. Seems like now the UI will not update/disappear when the game is minimize. If you freeze the game, the UI will resume update when the game is in foreground.

If you do this, players can use dgVoodoo to use FullScreen mode and has a better experience.

image

EasyT-T commented 3 months ago

The game does pause when it is not focused.

No, I mean you need freeze the game when the game is in background. Seems like now the UI will not update/disappear when the game is minimize. If you freeze the game, the UI will resume update when the game is in foreground. If you do this, players can use dgVoodoo to use FullScreen mode and has a better experience.

image

Btw, so that is why the title changed to "Some textures stop rendering after game missing focus in fullscreen". And it is not TSS Engine's problem, because ZiYue's sinicization version worked well. There must something wrong is reborn. And after textures stop rending, the "Active textures", "Video memory" or "Global memory status" haven't changed.

I contacted ZiYue, there are some videos may help you.

https://github.com/Jabka666/scpcb-ue-my/assets/116633144/65ce929b-7a62-4fc3-8793-eff6cbc620fa

This video shows I used fullscreen in non-reborn edition successfully. This can be not only in old UE, original game also can use Fullscreen with dgVoodoo. After enter Alt+Tab (switch to desktop, same as minimize) and back to game, the menu's textures are working.

https://github.com/Jabka666/scpcb-ue-my/assets/116633144/667931b1-a8de-468a-a23f-34840c9b1fe9

This video shows I used fullscreen in reborn edition, after I enter Alt+Tab and back to game, the menu's textures were not rendering.

https://github.com/Jabka666/scpcb-ue-my/assets/116633144/ba54936d-a9f5-4e57-a577-8b8b06bb053c

This video shows I used fullscreen in reborn edition and in game, after I enter Alt+Tab and back to game, some ui's textures were not rendering.

Jabka666 commented 3 months ago

I think it can be easily fixed by adding BufferDirty in LoadTextureCheckingInCache function, but it will require more RAM

Jabka666 commented 3 months ago