TF2 Lags After a While of Playing
I've been trying to play TF2 on my linux setup, but after a bit of playing it ends up getting really laggy and borderline unplayable unless I restart the game. Very annoying.
I'm running:
- Kernel: Linux 6.12.10-arch1-1
- Wayland (wlroots) w/ Xwayland
- Pipewire - CPU: Intel Core i7-8700K
GPU: Radeon RX 7800 XT | Driver: AMD open-source driver, ver. 2.0.333
Steam from
pacman
(1.0.0.81-2)The only output from the console is:
info: Presenter: Actual swap chain properties: info: Format: VK_FORMAT_B8G8R8A8_UNORM info: Color space: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR (dynamic: yes) info: Buffer size: 1914x1056 info: Image count: 4 info: Exclusive FS: 0
EDIT: I didn't notice that I forgot to add a video showing the problem. The game basically ends up SAYING it's running at like 100+ fps 99% of the time, but it obviously isn't. Video of problem: https://youtu.be/IOvs7D7dhvM
EDIT 2: When I fullscreen the game, it seems to fix the issue temporarily, and then switching between windowed and fullscreen (maybe) is a way to reset it instead of just restarting tf2. I think it has something to do with how dwl/wlroots processes whether or not the game is like, focused or whatever(?) because when I tab into another application, it'll sometimes UNfullscreen and drop average fps.
I should also mention that even though the game in this bugged state runs at like, 100+ fps 99% of the time, I know that it's bugged and not an issue with my pc, for when I'm playing on Windows or before the bug occurs the fps is about 600+
Please feel free to ask any more questions / ask for more info.