Hacker News new | ask | show | jobs
by cl3misch 17 days ago
This hits a very soft spot for me. My beloved Spelunky 2 has huge input lag "on Linux", which makes it unplayable for me. It's pretty much the reason I keep my Windows 10 install around. I could not come up with a configuration on Linux that avoids the lag.

It's extra infuriating that online sources report the game running flawlessly but seem to ignore input lag.

1 comments

Inspired by my own comment I looked into it again and came up with this combination in the game's "launch options", which feels much better:

    DXVK_CONFIG="dxgi.syncInterval = 0; dxgi.maxFrameLatency = 1; dxgi.maxFrameRate = 60" gamescope -f --immediate-flips -- %command%
I didn't know about `DXVK_CONFIG` before. It's the DirectX-Vulkan translation layer with its own framebuffer and latency.

I also manually disabled vsync in the game's `local.cfg` XML file.

I love where "gaming on Linux" is going. But I have the feeling the hype on Youtube etc. is in part created by content creators, and doesn't faithfully represent the actual situation (surprise!).