Skip to content

Commit

Permalink
Merge branch 'main' into bottlesdevs-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
orowith2os authored Aug 29, 2023
2 parents 4e4289f + 5590eec commit f1ddabf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
6 changes: 3 additions & 3 deletions bottles/backend/wine/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ def __init__(
if override_dxvk is not None \
and not override_dxvk \
and self.config.Parameters.dxvk:
env_dll_overrides.append("d3d9,d3d11,d3d10core,dxgi=b")
env_dll_overrides.append("d3d9,d3d11,d3d10core,dxgi=n")

if override_vkd3d is not None \
and not override_vkd3d \
and self.config.Parameters.vkd3d:
env_dll_overrides.append("d3d12=b;d3d12core=b,n")
env_dll_overrides.append("d3d12,d3d12core=n")

if override_nvapi is not None \
and not override_nvapi \
and self.config.Parameters.dxvk_nvapi:
env_dll_overrides.append("nvapi,nvapi64=b")
env_dll_overrides.append("nvapi,nvapi64=n")

if override_fsr is not None and override_fsr:
self.environment["WINE_FULLSCREEN_FSR"] = "1"
Expand Down
11 changes: 4 additions & 7 deletions bottles/backend/wine/winecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,17 @@ def get_env(self, environment: Optional[dict] = None, return_steam_env: bool = F
env.add("__GL_SHADER_DISK_CACHE_PATH", os.path.join(bottle, "cache", "gl_shader"))
env.add("MESA_SHADER_CACHE_DIR", os.path.join(bottle, "cache", "mesa_shader"))

# VKD£D environment variables
# VKD3D environment variables
if params.vkd3d and not return_steam_env:
env.add("VKD3D_SHADER_CACHE_PATH", os.path.join(bottle, "cache", "vkd3d_shader"))

# LatencyFleX environment variables
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")
_lf_layer_path = os.path.join(_lf_path, "layer/usr/share/vulkan/implicit_layer.d")
env.concat("VK_ADD_LAYER_PATH", _lf_layer_path)
env.add("LFX", "1")
ld.append(os.path.join(_lf_path, "layer/usr/lib/x86_64-linux-gnu"))
else:
env.add("DISABLE_LFX", "1")

Expand Down Expand Up @@ -336,11 +338,6 @@ def get_env(self, environment: Optional[dict] = None, return_steam_env: bool = F
debug_level = "+fixme-all"
env.add("WINEDEBUG", debug_level)

# LatencyFleX
if params.latencyflex and params.dxvk_nvapi and not return_steam_env:
_lf_path = ManagerUtils.get_latencyflex_path(config.LatencyFleX)
ld.append(os.path.join(_lf_path, "wine/usr/lib/wine/x86_64-unix"))

# Aco compiler
# if params["aco_compiler"]:
# env.add("ACO_COMPILER", "aco")
Expand Down
20 changes: 1 addition & 19 deletions com.usebottles.bottles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ cleanup:
cleanup-commands:
- mkdir -p /app/utils
- mkdir -p /app/share/steam/compatibilitytools.d
- mkdir -p /app/share/vulkan/implicit_layer.d/

modules:
# PYPI modules
Expand Down Expand Up @@ -178,25 +179,6 @@ modules:
# Libraries
# ----------------------------------------------------------------------------

- name: LatencyFleX
buildsystem: simple
build-commands:
- mkdir -p /app/lib/x86_64-linux-gnu/
- mkdir -p /app/share/vulkan/implicit_layer.d/
- cp layer/usr/lib/x86_64-linux-gnu/liblatencyflex_layer.so /app/lib/x86_64-linux-gnu/liblatencyflex_layer.so
- cp layer/usr/share/vulkan/implicit_layer.d/latencyflex.json /app/share/vulkan/implicit_layer.d/latencyflex.json
sources:
- type: archive
url: https://github.com/ishitatsuyuki/LatencyFleX/releases/download/v0.1.1/latencyflex-v0.1.1.tar.xz
sha256: c992ebd2f43c99ab4a84a6ffce692d9aae4cc2571536a5854ae2e79b6951e78a
x-checker-data:
type: json
is-important: true
url: https://api.github.com/repos/ishitatsuyuki/LatencyFleX/releases/latest
version-query: .tag_name
url-query: '"https://github.com/ishitatsuyuki/LatencyFleX/releases/download/"
+ $version + "/latencyflex-" + $version + ".tar.xz"'

- name: ImageMagick
config-opts:
- --disable-static
Expand Down

0 comments on commit f1ddabf

Please sign in to comment.