-
Notifications
You must be signed in to change notification settings - Fork 781
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
Issue with the Vanilla Tweaks texture pack. #1813
Comments
The reason is because this pack has core shaders, remake your pack on the website whitout the features that use core shaders |
Ok then. Thanks. |
The NVIDIA drivers now check the command line arguments for the presence of a sub-string containing ".main", and forcefully enables their "Threaded Optimizations" hack which destroys performance and causes crashes with Sodium. Unfortunately, NVIDIA has implemented this in the most insane way possible. Rather than using application-specific profiles, they have instead hardcoded the detection logic into their driver, and have done so in a manner that makes it impossible to use NVAPI to override it. So, in summary, this workaround does two things: a) We invoke GetCommandLineW and directly modify the pointer of string data it gives us, in order to strip the command line arguments of anything identifying. b) We invoke SetEnvironmentVariableW to set SHIM_MCCOMPAT=0x800000001, which hints to the NVIDIA driver that it should use the high-performance GPU. This is required, because as mentioned, we are breaking the driver's ability to detect Minecraft, which means it won't try to run it on the high-performance GPU any longer. Both of these modifications are applied just before context creation, and any changes are restored right after it. This ensures other applications which are trying to detect Minecraft are not affected. It is worth noting that this problem *only* affected the Vanilla launcher, since the Fabric Installer chose to include a reference to the Minecraft entry point on purpose so that the NVIDIA drivers could continue detecting it. As far as we know, Prism Launcher does not do this, hence it is not affected by the issue. As a side effect of this work, we have also improved the graphics adapter detection code to use OSHI. This is much simpler, and allows us to enumerate all graphics adapters more reliably. It also doesn't require a sub-process to be launched, which should hopefully reduce startup times and some jank. We have also implemented some minor optimizations which avoid the calls into glGetInteger/glGetUniformLocation, as we noticed these were particularly hot in profiling on NVIDIA GPUs. See #1813 for more information.
The mentioned commit incorrectly references this issue, when it should have referenced #1816. |
what are the features that use core shaders I don't know |
Please join the discord if you want guidance on this. |
Version information
mc1.20-0.4.10+build.27, mc-1.20.1, fabric loader-0.14.21-1.20.1
Expected Behavior
When opening the settings menu, I expect the sliders and the on-off buttons to be visible, like they always were (this is the first time I seen this issue, even with the same texture pack from vanilla tweaks). The photo is what I expect to see. Note that this photo was made when the texture pack was off.
![Sodium gltich](https://private-user-images.githubusercontent.com/129961843/246095549-5f25b41f-384c-4fb4-a7cb-87b10d841de4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExMDkxOTQsIm5iZiI6MTcyMTEwODg5NCwicGF0aCI6Ii8xMjk5NjE4NDMvMjQ2MDk1NTQ5LTVmMjViNDFmLTM4NGMtNGZiNC1hN2NiLTg3YjEwZDg0MWRlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNlQwNTQ4MTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNmJmZTM0NWFkY2I2Y2U5Y2UxMWE0OGRmZWY5NjQ0NGY4NmQ0MzUwODdhNTUyNzg2ZTY0N2U4M2UzYTNhMjMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ieAuEStl4-1yfD5ci9Z2RDXCAqzAyPMgWPadkEn6IXs)
Actual Behavior
The sliders and on-off buttons aren't visible, making it difficult to use. This photo is what happens. Note that this photo was made with the texture pack on. Before 1.20 this never happened. The second image is the mods I have installed. Note that I tried without Sodium Extra, BSVSB, and Reeses Sodium Options and this didn't fix the issues.
![sodium glitch 2](https://private-user-images.githubusercontent.com/129961843/246096060-cad39d39-8c8a-4bcc-aed7-17653b049bd9.png?jwt=eyJhbGciO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lYzYxYzA0MjNhNDRkZTZlMTQzYjJhMjE0Y2RmNzBiMDY1MWVhYTUwMDhmMDAzMGI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.NQpTp6rLvZ7Au6jMS75A5zmDvs6ATzpLr8cx3daeoPQ)
This is the texture pack configuration I'm using.
And the mods I use. To recreate just install the texture pack, go into video settings, and there's the problem.
Java version
Java 8 Update 371
CPU
Intel Core i7 8565U 1.80Ghz 1.99Ghz
GPU
Nvidia MX130
Additional information
I already gave everything above that is needed, I will edit it if you need me to.
The text was updated successfully, but these errors were encountered: