Oculus

Oculus

48M Downloads

Immersive engineering causes issue with oculus and shaders

PenumbraStar opened this issue ยท 1 comments

commented

What happened?

First off, I tested this with Optifine aswell and only had the issue with Oculus. I was also using Complementary Shaders for my testing.

After loading a world, and enabling shaders, the log will be spammed with:
[23:05:04] [Render thread/INFO] [mojang/GlDebug]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'

Memory usage skyrockets and after about 2 minutes the game freezes.

Screenshots

No response

Relevant log output

[12Apr2022 23:04:58.482] [Render thread/WARN] [Oculus/]: Destroying pipeline OVERWORLD
[12Apr2022 23:04:58.558] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:1:1: error: Unknown preprocessor directive Profiles
[12Apr2022 23:04:58.559] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:10:1: error: Unknown preprocessor directive Screen
[12Apr2022 23:04:58.559] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:80:1: error: Unknown preprocessor directive Set
[12Apr2022 23:04:58.560] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:83:1: error: Unknown preprocessor directive Force
[12Apr2022 23:04:58.560] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:92:1: error: Unknown preprocessor directive Disable
[12Apr2022 23:04:58.560] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:93:1: error: Preprocessor directive not a word #
[12Apr2022 23:04:58.560] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:95:1: error: Unknown preprocessor directive Program
[12Apr2022 23:04:58.561] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:102:1: error: Unknown preprocessor directive Alpha
[12Apr2022 23:04:58.561] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:111:1: error: Unknown preprocessor directive Misc
[12Apr2022 23:04:58.561] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:121:1: error: Unknown preprocessor directive Custom
[12Apr2022 23:04:58.561] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:129:1: error: Unknown preprocessor directive Custom
[12Apr2022 23:04:58.567] [Render thread/WARN] [Oculus/]: Profile: Custom (+78 options changed by user)
[12Apr2022 23:04:59.839] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:3:1: error: Preprocessor directive not a word 1.13
[12Apr2022 23:04:59.839] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:31:6: warning: No newline before end of file
[12Apr2022 23:04:59.840] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:3:1: error: Preprocessor directive not a word 1.13
[12Apr2022 23:04:59.841] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:30:6: warning: No newline before end of file
[12Apr2022 23:04:59.857] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:1:1: error: Preprocessor directive not a word --
[12Apr2022 23:04:59.857] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:2:2: error: Unknown preprocessor directive Useful
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:3:2: error: Preprocessor directive not a word 12345
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:4:2: error: Preprocessor directive not a word 888
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:5:2: error: Preprocessor directive not a word 889
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:6:2: error: Preprocessor directive not a word 300
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:7:1: error: Preprocessor directive not a word --
[12Apr2022 23:04:59.858] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:10:1: error: Preprocessor directive not a word 1.13
[12Apr2022 23:04:59.867] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:174:1: error: Preprocessor directive not a word 1.12
[12Apr2022 23:04:59.869] [Render thread/INFO] [org.anarres.cpp.DefaultPreprocessorListener/]: null:283:6: warning: No newline before end of file
[12Apr2022 23:04:59.899] [Render thread/WARN] [Oculus/]: Using shaderpack: ComplementaryShaders_v4.4.zip
[12Apr2022 23:04:59.914] [Render thread/WARN] [Oculus/]: Creating pipeline for dimension OVERWORLD
[12Apr2022 23:05:00.149] [Render thread/WARN] [Oculus/]: [Triforce Patcher] gl_FragColor is not supported yet, please use gl_FragData! Assuming that the shaderpack author intended to use gl_FragData[0]...
[12Apr2022 23:05:00.514] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.545] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.575] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.615] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.637] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.669] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.704] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.737] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.771] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.803] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.839] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.869] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.905] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.941] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:00.968] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:01.005] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:01.034] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:01.069] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'
[12Apr2022 23:05:01.101] [Render thread/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'

Minecraft Version

1.18.2

Iris Version

oculus-mc1.18.2-1.2.2b

Sodium Version

rubidium-0.5.2a

Operating System

Windows 10

What is your GPU?

Nvidia Geforce RTX 3070 Ti

Java Version

AdoptOpenJDK 17.0.2.8-Hotspot

Additional context

latest.log

commented

@PenumbraStar Been looking at various different versions of Oculus, and this is the same issue I get as well on 1.2.2b - however, I do not have the freezing problem.

Can you try and see if these Java arguments fix the issue with the freezing after a few minutes at least?
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:-UseParallelGC -XX:-UseParallelGC -XX:-UseG1GC -XX:+UseZGC

This tells Java to use the newer Z Garbage Collector, which is generally faster and more efficient in my testing than the default garbage collector, and should be supported on JDK17.