Facepunch / sbox-issues

173 stars 11 forks source link

ScenePanels now trigger 'TEXTURESTREAMING: Extremely low memory' #1660

Open Oppossome opened 2 years ago

Oppossome commented 2 years ago

Describe the bug Ever since the most recent hell day, having more than a handful of scene panels will fire off these messages every frame and it will persist even after the current gamemode is closed.

sbox_2022-03-05_08-29-28

To Reproduce

  1. Run my issue reproduction gamemode
  2. Run the command RunTest 80
    • Replace the 80 with a larger number if not encountered
    • Be careful because if you go too large it will freeze your machine

Expected behavior For it to not exhibit this behavior, like before hell day.

samzanemesis commented 2 years ago

Thanks for the reproduction steps, should make it easier to track it down

samzanemesis commented 2 years ago

Is this still happening?

MrBrax commented 1 year ago

Still happening for me

Before opening: 1675078694423

After opening and closing, spammed: 1675078712178

It happens on my better GPU too (8GB) if you open multiple.

yuberee commented 1 year ago

I've had this happen as well, I managed to track it down to the ScenePanels, even when they aren't rendering anything at the moment.

BEFORE OPENING MY GAME: image

AFTER OPENING MY GAME (NO SCENEPANELS) image

AFTER OPENING MY GAME (WITH SCENEPANELS) image

I do have only 3GB of VRAM, but the only times I encounter a "Low memory" problem is because of ScenePanels, every other game works great. I know Redwig.Studios were having the same issue as well during their last playtest, I think they have more experience on this and maybe found a way to work around it.

kebabulon commented 1 year ago

I have a lot of scene panels in my game as well and i have the same problem.

kebabulon commented 1 year ago

I found a way to work around it. Using render targets, you can set the size of the rendered image, thus lowering the VRAM used. The quality suffers a bit but it looks fine on small panels. Wish something like that was possible with ScenePanels instead of having to setup a texture.