Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL (deferred) renderer taking a lot of VRAM #27924

Closed
takase1121 opened this issue Apr 18, 2024 · 5 comments
Closed

OpenGL (deferred) renderer taking a lot of VRAM #27924

takase1121 opened this issue Apr 18, 2024 · 5 comments

Comments

@takase1121
Copy link

Type

Performance

Bug description

When using the OpenGL (deferred) renderer, the performance stays consistently good (even better than the legacy renderer), until the memory pressure increased significantly enough to cause swapping. This then induces ocassional lag spikes. The game can take up to 3GB of my GTT (from my understanding this is the RAM used to transfer data to GPU) and almost fill up my VRAM. I am using a laptop with 8GB RAM so this is noticeable.

Screenshots or videos

image
image
image

Version

2024.412.1-lazer

Logs

compressed-logs.zip

@bdach
Copy link
Collaborator

bdach commented Apr 19, 2024

Please post to #27659 instead.

Additionally opengl deferred is kind of generally considered as a "black sheep" of sorts, as in it exists because it was easy to make it happen already, but it's slow and generally any other renderer is better in comparison.

@bdach bdach closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
@smoogipoo
Copy link
Contributor

I do actually want linux users to test opengl deferred. I've personally seen a reduction in frame spikes.

As for the VRAM issue, that's likely the memory leak we've been seeing with Veldrid as a whole (Vk/D3D/MTL too...).

@bdach
Copy link
Collaborator

bdach commented Apr 19, 2024

I thought I read somewhere you saying that opengl deferred "can't work well in general" or something? Or did I just hallucinate that?

@takase1121
Copy link
Author

takase1121 commented Apr 19, 2024

I do actually want linux users to test opengl deferred. I've personally seen a reduction in frame spikes.

As for the VRAM issue, that's likely the memory leak we've been seeing with Veldrid as a whole (Vk/D3D/MTL too...).

Yes! I was vaguely aware of the memory leak with the renderers (I read about the issue somewhere before but can't find it before opening this one).

To clarify, OpenGL deferred is the best working renderer for me (apart from the VRAM issues). Vulkan struggles to put out frames (looking at around 8ms lag every frame) and the legacy renderer is somehow burning my CPU (uploading data to the GPU?).

I'll put all the stuff here and further updates to the other linked issue.

@smoogipoo
Copy link
Contributor

"can't work well in general" or something? Or did I just hallucinate that?

I think you hallucinated that 😄 I don't want Windows users to use it which is why I've hidden it on that platform. There are reasons why I might've said that for veldrid+gl though, and I stand by it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants