Laskyyy / Create-Astral

Other
71 stars 73 forks source link

Lag caused by chest + bed with shaders turned on, on Linux #37

Open Visne opened 1 year ago

Visne commented 1 year ago

To reproduce:

  1. Ensure complementary shaders are turned on
  2. Place a bed
  3. Place a wooden chest (the default Minecraft one)
  4. Stand in close proximity of the chest and bed

Now the following is spammed in the console:

ID: 0x3
    Source: API
    Type: ERROR
    Severity: HIGH
    Message: GL_INVALID_OPERATION in glUniform(program not linked)
    Stacktrace: org.lwjgl.opengl.GL20C.glUniform1i(Native Method)
              org.lwjgl.opengl.GL20.glUniform1i(GL20.java:510)
              com.mojang.blaze3d.platform.GlStateManager._glUniform1i(GlStateManager.java:212)
              com.mojang.blaze3d.systems.RenderSystem.glUniform1i(RenderSystem.java:948)
              net.coderbot.iris.gl.uniform.IntUniform.updateValue(IntUniform.java:37)
              net.coderbot.iris.uniforms.CapturedRenderingState.setCurrentBlockEntity(CapturedRenderingState.java:77)
              net.coderbot.iris.layer.BlockEntityRenderStateShard.lambda$new$0(BlockEntityRenderStateShard.java:13)
              net.minecraft.class_4668.method_23516(class_4668.java:36)
              net.coderbot.iris.layer.OuterWrappedRenderType.method_23516(OuterWrappedRenderType.java:26)
              net.coderbot.batchedentityrendering.impl.FullyBufferedMultiBufferSource.method_22993(FullyBufferedMultiBufferSource.java:113)
              net.minecraft.class_761.handler$eep000$batchedentityrendering$beginTranslucents(class_761.java:3938)
              net.minecraft.class_761.method_22710(class_761.java:1483)
              net.minecraft.class_757.method_3188(class_757.java:1034)
              net.minecraft.class_757.method_3192(class_757.java:813)
              net.minecraft.class_310.method_1523(class_310.java:1122)
              net.minecraft.class_310.method_1514(class_310.java:737)
              net.minecraft.client.main.Main.main(Main.java:236)
              net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
              net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
              net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
              org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88)
              org.prismlauncher.EntryPoint.listen(EntryPoint.java:126)
              org.prismlauncher.EntryPoint.main(EntryPoint.java:71)

and the game lags a lot.

This seems to only happen on Linux, but I'm not really sure.

Some extra information: Astral version 2.0.3b Arch Linux, fully updated CPU: AMD Ryzen 5900X GPU: AMD RX 6800 Graphics drivers: Mesa 22.3.6-1

JoeJoeTV commented 1 year ago

I have a very similar issue, but I have only noticed my latest.log getting too large(42MB), since the error is constantly spammed to the console:

I am also on Linux and am using PrismLauncher 6.3 and Java 17 to start the Modpack. Same Modpack version as above and I have an NVIDIA GTX 1060 6G GPU.

[13:18:06] [Render thread/INFO]: [STDERR]: [LWJGL] OpenGL debug message
    ID: 0x502
    Source: API
    Type: ERROR
    Severity: HIGH
    Message: GL_INVALID_OPERATION error generated. No active program.
    Stacktrace: org.lwjgl.opengl.GL20C.glUniform1i(Native Method)
              org.lwjgl.opengl.GL20.glUniform1i(GL20.java:510)
              com.mojang.blaze3d.platform.GlStateManager._glUniform1i(GlStateManager.java:212)
              com.mojang.blaze3d.systems.RenderSystem.glUniform1i(RenderSystem.java:948)
              net.coderbot.iris.gl.uniform.IntUniform.updateValue(IntUniform.java:37)
              net.coderbot.iris.uniforms.CapturedRenderingState.setCurrentBlockEntity(CapturedRenderingState.java:77)
              net.coderbot.iris.layer.BlockEntityRenderStateShard.lambda$new$0(BlockEntityRenderStateShard.java:13)
              net.minecraft.class_4668.method_23516(class_4668.java:36)
              net.coderbot.iris.layer.OuterWrappedRenderType.method_23516(OuterWrappedRenderType.java:26)
              net.coderbot.batchedentityrendering.impl.FullyBufferedMultiBufferSource.method_22993(FullyBufferedMultiBufferSource.java:113)
              net.minecraft.class_761.handler$eep000$batchedentityrendering$beginTranslucents(class_761.java:3938)
              net.minecraft.class_761.method_22710(class_761.java:1483)
              net.minecraft.class_757.method_3188(class_757.java:1034)
              net.minecraft.class_757.method_3192(class_757.java:813)
              net.minecraft.class_310.method_1523(class_310.java:1122)
              net.minecraft.class_310.method_1514(class_310.java:737)
              net.minecraft.client.main.Main.main(Main.java:236)
              net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
              net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
              net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
              org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88)
              org.prismlauncher.EntryPoint.listen(EntryPoint.java:126)
              org.prismlauncher.EntryPoint.main(EntryPoint.java:71)
branan commented 11 months ago

I fixed a different (apparently also linux-specific) issue in iris-flw-compat. I'll see if I can also reproduce this one too and put up another patch before I forget how all of this stuff works.

branan commented 11 months ago

Unfortunately I can't reproduce this. If anyone else still can and can provide any more debugging info, I'm still willing to try to work on a fix