Skip to content

GPU Memory leak #2172

Description

@k0nstruct

What happened?

A bug happened!
When using any kind of shader, after a while of playing, switching, toggling and reloading packs, my gpu memory fills up.
At this point, the game 'throttles', my gpu usage spikes with any shader enabled, I slow down to 60, sometimes 30 fps.
Quitting the game completely is the only way to fix it.

Using Adrenaline hardware monitor, I can see my GPU (Rx 6800, 16Go of VRAM) memory fill up while playing;
then, quitting reduces it by a bit (going from 15550 Mo to 14000-ish). But it fills up quickly again, even in the menu.
Restarting the game completely solves the issue of course.
It usually takes around an hour or two.

Screenshots

I haven't taken any screenshots of my F3 tab yet while it happened, suspecting a mod to be the cause.
It seems to be iris-related though, after trial and error.
Resource packs seem to interact with this issue, making it happen sooner with higher resolution and variated textures.

I have yet to find the exact conditions for this to happen:
My drivers are version 23.11.1.
I allocate ~20Go of RAM to minecraft, though it rarely exceeds 50% usage.
Ferritecore doesn't seem to do anything with this leak.

Log output

latest.log
The latest log where I had this happen.

Minecraft Version

1.20.1

Iris Version

1.6.10

Operating System

Windows 11

What is your GPU?

RX 6800

Additional context

I still use a lot of mods so it can be an incompatibility; however it seems unlikely to be an interaction between two mods, since shaders are usually left only for iris to work with. I don't use core shaders either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is implemented incorrectly

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions