MCModderAnchor / TACZ

129 stars 25 forks source link

[Bug]: Memory Leak from Bliss Shader #268

Open TqLxQuanZ opened 1 month ago

TqLxQuanZ commented 1 month ago

I have confirmed that ...

Minecraft and modloader version

1.20.1-forge-47.3.0

tac version

1.0.3

Related Mods

Embeddium 0.3.31
Oculus 1.7.0
TACZ 1.0.3
Bliss Shader (https://github.com/X0nk/Bliss-Shader)

Description

There's memory leak whenever picked up guns and start shooting when bliss shader is on. The game will slowly starts to lag out over time and eventually crash once it reached the maximum amount of memory available.

There are also times that I don't need to shoot, just make sure I bring a gun up and it'll slowly pile up with memory leak. If this is an issue from Bliss Shader itself, please let me know.

Step to reproduce

  1. Install all the following mods above.
  2. Make sure shader is on and selected on bliss shader.
  3. Create a new world.
  4. Bring out any guns through creative mode.
  5. Start spam shooting.
  6. Wait until you notice the game is lagging randomly over time, and even if you stop shooting, the memory leak still happens over time.

Logs & Crash reports

crash-2024-10-06_00.01.16-client.txt

crash-2024-10-06_00.08.19-client.txt

https://github.com/X0nk/Bliss-Shader/issues/308

TqLxQuanZ commented 1 month ago

Checked this with Bliss Shader's developer, apparently its on TACZ side.

this is indeed on TACZ's end, according to the Iris developer. it is a problem related to how the 2 mods interact when iris's hybrid deferred entities feature is used by a shader. i cannot do anything about this.

there is an option in the shader you can turn off: shader settings -> debug/experimental -> TRANSLUCENT_ENTITIES which turns off the use of that iris feature, but it will no longer render translucent entities correctly.

AquaticPlush commented 2 weeks ago

For added clarity, the current solution to this issue is to disable the 'translucententities' feature of Iris/Oculus. This needs to be done on a per-shaderpack-basis (if that's wrong please correct me)._

Instructions:

Note: As pointed out in this thread: Link, any shaderpacks that utilize either Bliss or Photon shaders will cause this issue.