Skip to content

Commit

Permalink
winecommand: Fix LatencyFleX enablement (#2993)
Browse files Browse the repository at this point in the history
Co-authored-by: Dallas Strouse <[email protected]>
  • Loading branch information
misyltoad and orowith2os authored Jul 30, 2023
1 parent 9e058ec commit b4b9492
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bottles/backend/wine/winecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ def get_env(self, environment: Optional[dict] = None, return_steam_env: bool = F
if params.latencyflex and not return_steam_env:
_lf_path = ManagerUtils.get_latencyflex_path(config.LatencyFleX)
_lf_icd = os.path.join(_lf_path, "layer/usr/share/vulkan/implicit_layer.d/latencyflex.json")
env.concat("VK_ICD_FILENAMES", _lf_icd)
env.add("LFX", "1")
else:
env.add("DISABLE_LFX", "1")

# Mangohud environment variables
if params.mangohud and not self.minimal and not (gamescope_available and params.gamescope):
Expand Down

0 comments on commit b4b9492

Please sign in to comment.