Repository navigation
Steam: Subnautica 2 on Mullion launches with Niagara sprite rendering off - #773
Merged
Merged
Conversation
… off On Mullion, Niagara's sprite particles draw as flashing, misplaced triangles across the ocean background. fx.EnableNiagaraSpriteRendering=0 in the game's Engine.ini turns them off. The game deletes its Engine.ini as it exits, so before each launch on the dxmt lane, when that lane is Mullion (both builds), MetalSharp adds the setting under [SystemSettings] and locks the file (uchg). On any other lane it unlocks the file and takes the setting out, removing a file that held nothing else. Other settings in the file stay.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Mullion, Subnautica 2's Niagara sprite particles draw as flashing, misplaced triangles across the ocean background. Turning sprite rendering off (
fx.EnableNiagaraSpriteRendering=0) removes the glitch, and vkd3d-proton doesn't have it. Until Mullion's own bug is found, the game launches on Mullion with sprites off.What changed
Before every Steam launch of Subnautica 2 (appid 1962700), on both the x86_64 and fex builds:
fx.EnableNiagaraSpriteRendering=0under[SystemSettings]inAppData/Local/Subnautica2/Saved/Config/Windows/Engine.inifor each user inprefix-steam, then lock the file (chflags uchg). The game deletes its Engine.ini as it exits, so without the lock the setting would be gone on the next launch. Settings already in the file are kept.The step runs right after
prepare_real_steam_launch, so it covers every launch path: the Steam client handoff, direct launches and fex's launch.env routes. If it fails, MetalSharp logs it and the launch goes on.Testing
makeandmake testpass for the regular and fex variants (-Werror).