Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Internetperson-dev/8d15356634fcae465057c46ec4141990 to your computer and use it in GitHub Desktop.

Select an option

Save Internetperson-dev/8d15356634fcae465057c46ec4141990 to your computer and use it in GitHub Desktop.
LSFG_DLL_PATH="/home/ram/.var/app/com.valvesoftware.Steam/.steam/debian-installation/steamapps/common/Lossless Scaling/Lossless.dll" ENABLE_LSFG=1 LSFG_MULTIPLIER=3 vkcube
@Internetperson-dev

Copy link
Copy Markdown
Author

You can see the effects more clearly with LSFG_DLL_PATH="/home/ram/.var/app/com.valvesoftware.Steam/.steam/debian-installation/steamapps/common/Lossless Scaling/Lossless.dll" ENABLE_LSFG=1 LSFG_MULTIPLIER=100 vkcube

@Internetperson-dev

Internetperson-dev commented Jul 15, 2025

Copy link
Copy Markdown
Author

Flatpak support (Title screens should break frame rate caps, artifacts may show on menu and input latency may increase to show it's working)

mkdir -p ~/.var/app/com.valvesoftware.Steam/lib
mkdir -p ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Lossless\ Scaling
mkdir -p ~/.var/app/com.valvesoftware.Steam/config/vulkan/implicit_layer.d

cp ~/.local/lib/liblsfg-vk.so ~/.var/app/com.valvesoftware.Steam/lib/
cp ~/.local/share/Steam/steamapps/common/Lossless\ Scaling/Lossless.dll ~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Lossless\ Scaling/
cp ~/.local/share/vulkan/explicit_layer.d/VkLayer_LS_frame_generation.json ~/.var/app/com.valvesoftware.Steam/config/vulkan/implicit_layer.d/

doas flatpak override --user com.valvesoftware.Steam --filesystem=~/.var/app/com.valvesoftware.Steam:ro

doas flatpak override com.valvesoftware.Steam --env=ENABLE_LSFG=1 --env=LSFG_MULTIPLIER=2 --env=LSFG_DLL_PATH="Z:\home\ram\.var\app\com.valvesoftware.Steam\data\Steam\steamapps\common\Lossless Scaling\Lossless.dll" --env=LSFG_LOG_FILE=log --filesystem=/.var/app/com.valvesoftware.Steam/lib --filesystem=/.var/app/com.valvesoftware.Steam/config/vulkan/implicit_layer.d

flatpak run --env=VK_LOADER_DEBUG=all com.valvesoftware.Steam

Use LSFG_DLL_PATH="/home/ram/.var/app/com.valvesoftware.Steam/.steam/debian-installation/steamapps/common/Lossless Scaling/Lossless.dll" ENABLE_LSFG=1 LSFG_MULTIPLIER=2 %command% in the launch options.

@Internetperson-dev

Internetperson-dev commented Jul 17, 2025

Copy link
Copy Markdown
Author

LSFG_DLL_PATH="/home/ram/.var/app/com.valvesoftware.Steam/.steam/debian-installation/steamapps/common/Lossless Scaling/Lossless.dll" ENABLE_LSFG=1 LSFG_PERF_MODE=1 LSFG_MULTIPLIER=1.5 %command% +com_skipIntroVideo 1

Fractional values also seem to work?

@Internetperson-dev

Copy link
Copy Markdown
Author
  1. No, it does not support fractional values
  2. This was for version 1.0, version 2.0 users should follow https://github.com/PancakeTAS/lsfg-vk/blob/develop/docs/Flatpak-Guide.md
  3. You can add the launch options into Flatseal to have them automatically apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment