Open MacTavishAO opened 10 months ago
Your mesa driver version did support the vulkan gpl extension ? Maybe you're experiencing the wayland stutter issue https://github.com/ValveSoftware/csgo-osx-linux/issues/3271, I don't have any stutter issue on my RX6700 with mesa even without pre-compiling shaders.
Your mesa driver version did support the vulkan gpl extension ? Maybe you're experiencing the wayland stutter issue #3271, I don't have any stutter issue on my RX6700 with mesa even without pre-compiling shaders.
I didn't know about this issue, thanks for bringing it up. I am using 1:23.2.1 mesa from arch repo. Although I don't think it would be the same issue, as the only thing I changed was vulkan driver. I was running on Wayland with the same mesa version with all 3 tests. I did not install the full AMD PRO stack, only the vulkan drivers. AMDVLK drivers did stutter even worse than meson's vulkan-radeon. Only the proprietary vulkan drivers did help. Also, from your linked issue, it was not reproducible by everyone in the thread. Maybe there is also an issue with consistency across HW setups
Performance for me, using a 6700 xt and a Ryzen 5 2600, is feels like is half that on windows. An interesting thing is that this is only true for wayland sessions; playing on xorg is perfectly smooth. Is it the same for other people here?
No, it's also subpar on x11 using a Ryzen 5 3600 and a RX 5700. I get above 90 FPS on a 165 Hz display, but it feels like 30 FPS. I presume because of inconsistent and/or high frametimes.
Performance for me, using a 6700 xt and a Ryzen 5 2600, is feels like is half that on windows. An interesting thing is that this is only true for wayland sessions; playing on xorg is perfectly smooth. Is it the same for other people here?
I get more FPS than on Windows running Sway on my 6800XT and Ryzen 7 5800X
It's not the FPS but the frametimes that are the issues.
It's not the FPS but the frametimes that are the issues.
for me its both i get way more fps and the frame timing is way way smoother on windows, on Linux its spiking often to 40-50ms
It's not the FPS but the frametimes that are the issues.
This statement doesn't make sense. "FPS" (framerate) and "frametime" are inversely dependent on each other: you can easily calculate one knowing the value of another one.
Or if you meant something else, please clarify it.
It's not the FPS but the frametimes that are the issues.
This statement doesn't make sense. "FPS" (framerate) and "frametime" are inversely dependent on each other: you can easily calculate one knowing the value of another one.
Or if you meant something else, please clarify it.
This is true. However, assume we have an average fps of 60 (meaning average frametime is about 17 ms). This doesn't say much about how smooth the game "feels" since an average fps of 60 could be made up of continous 17ms frametimes or fluctuate wildly, but still averaging to the same 17ms over the measuring period. The latter case is what makes games "feel" weird, even if the average is 60 fps.
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1760192737
in my case i go from 250+ fps down to sub 100fps with a clear massive stutters, on windows the frame timing is smooth
I indeed have the same issue, where stuff says it's 90 - 110 fps but it feels like 30-60
The recent update has made things considerably better, but I still get sub 100 fps, so it's still not ideal.
Valve please consider shipping dxvk-native with linux builds. Some other Valve games already ship with it. CS2 is borderline unplayable at this stage.
I experience similar issues with Intel i7-12700KF + NVIDIA RTX 3060 Ti using proprietary drivers, , NVMe disk. GPU/CPU loads reported by MangoHUD: <60% GPU, <20%CPU; video settings medium-low. I suffer a lot of frame time spikes sometimes all the way to 30ms. FPS max around 200 but only occasionally. The game is "playable" but the performance is erratic in casual matches. I also enabled
cl_forcepreload
. CS:GO run very consistently with FPS 300-500 depending on the map.
After disabling my CPU ecores I get +50-100 fps increase and much better GPU usage (now around 75-90%). My CPU is Intel i7-12700KF this is the process I follow to disable them just for CS2 (you can also disable them in the BIOS at boot).
eCores are CPU id 16-19 (lowest value in max Mhz column). Then I use taskset
for the kernel scheduler to avoid using them to run CS2:
You need taskset tool. In fedora sudo dnf install kernel-tools
$ lscpu --all --extended
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ MINMHZ MHZ
0 0 0 0 0:0:0:0 yes 4900.0000 800.0000 1775.4730
1 0 0 0 0:0:0:0 yes 4900.0000 800.0000 4589.9282
2 0 0 1 4:4:1:0 yes 4900.0000 800.0000 4700.0000
3 0 0 1 4:4:1:0 yes 4900.0000 800.0000 4383.2520
4 0 0 2 8:8:2:0 yes 4900.0000 800.0000 799.2190
5 0 0 2 8:8:2:0 yes 4900.0000 800.0000 800.0000
6 0 0 3 12:12:3:0 yes 4900.0000 800.0000 3066.1809
7 0 0 3 12:12:3:0 yes 4900.0000 800.0000 4145.4058
8 0 0 4 16:16:4:0 yes 5000.0000 800.0000 798.2990
9 0 0 4 16:16:4:0 yes 5000.0000 800.0000 797.3420
10 0 0 5 20:20:5:0 yes 5000.0000 800.0000 800.0000
11 0 0 5 20:20:5:0 yes 5000.0000 800.0000 2136.3630
12 0 0 6 24:24:6:0 yes 4900.0000 800.0000 800.0000
13 0 0 6 24:24:6:0 yes 4900.0000 800.0000 3376.4951
14 0 0 7 28:28:7:0 yes 4900.0000 800.0000 799.0370
15 0 0 7 28:28:7:0 yes 4900.0000 800.0000 4465.6382
16 0 0 8 36:36:9:0 yes 3800.0000 800.0000 800.0000
17 0 0 9 37:37:9:0 yes 3800.0000 800.0000 800.0000
18 0 0 10 38:38:9:0 yes 3800.0000 800.0000 800.0000
19 0 0 11 39:39:9:0 yes 3800.0000 800.0000 800.0000
$ pgrep cs2 | xargs -n1 taskset -a -p -c 0-15
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1761460237
I have a similar setup to you: i9-13900HX, RTX 4090 Mobile, and Arch Linux. Disabling my E-cores worked for me as well. Now, is there any way to do this automatically through the launch options?
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1761460237
wow yes now my GPU is at 100% usage and fps increased a lot is this a issue with linux or the game? this fixes the low fps but i still have frame timing issues it still spikes causing stutters
For me it's just horrible. System:
OS: Ubuntu 22.04 jammy Kernel: x86_64 Linux 6.2.0-34-generic DE: KDE 5.92.0 / Plasma 5.24.7 WM: KWin GTK Theme: Breeze [GTK2/3] Icon Theme: Papirus-Dark CPU: AMD Ryzen 5 5600 6-Core @ 12x 3,5GHz GPU: AMD Radeon RX 6600 (navi23, LLVM 15.0.7, DRM 3.49, 6.2.0-34-generic) RAM: 7517MiB / 32007MiB
Using Mesa 23.2.1 - kisak-mesa PPA.
Under windows I get somewhere between 250 and 350fps and it's pretty smooth. Under linux, I only get 150-250fps, and it's micro-stuttering like crazy, the whole time. Sometimes fps even drop to sub 100.
I'm running 4:3 1280x960 with the following parameters:
xrandr --output DisplayPort-0 --primary --mode 1920x1080 --scale-from 1280x960 --rate 144 --pos 0x0; mangohud MANGOHUD_CONFIG=cpu_temp,gpu_temp,cpu_power,gpu_power,gpu_core_clock,gpu_mem_clock,cpu_mhz,vulkan_driver,gpu_name,font_size=20,position=bottom-right,ram,vram %command% -novid -nojoy -refresh 144 -high -fullscreen -vulkan; xrandr --output DisplayPort-0 --primary --mode 1920x1080 --transform none --rate 144 --pos 0x0
I already tried without the -vulkan param, but it's no difference for me. CS:GO was running perfectly smooth with 350-400fps.
I already tried without the -vulkan param, but it's no difference for me. CS:GO was running perfectly smooth with 350-400fps.
It doesn't matter whether you put that in launch args or not for CS2. Vulkan is the only renderer in linux client and it's going to use that one no matter what.
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1761460237
I have a similar setup to you: i9-13900HX, RTX 4090 Mobile, and Arch Linux. Disabling my E-cores worked for me as well. Now, is there any way to do this automatically through the launch options?
Hi @dylif, I have it integrated in my cs2 launch command in steam: taskset -a -c 0-15 %command% [cs2 params...]
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1761460237
wow yes now my GPU is at 100% usage and fps increased a lot is this a issue with linux or the game? this fixes the low fps but i still have frame timing issues it still spikes causing stutters
@emko Not sure if this will help you (or others). These are my full launch options (bear in mind taskset
parameters might be different in your case):
__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 SDL_AUDIO_DRIVER=pipewire mangohud gamemoderun taskset -a -c 0-15 %command% -nojoy -novid +exec autoexec -w 1920 -h 1080 -high +cl_forcepreload 1 -console +fps_max 0 -softparticlesdefaultoff -dxvk
I also set nvidia to full performance with a different script:
gamemoded -dl
nvidia-settings -a '[gpu:0]/GPUPowerMizerMode'=1
And disable kernel split lock to avoid some very annoying shutters that happen less frequently (2-3 times per match)
sudo sysctl kernel.split_lock_mitigate=0
Does anyone know if this is related to CPU or GPU? Because some people reported disabling the E-Cores would increase fps
Does anyone know if this is related to CPU or GPU? Because some people reported disabling the E-Cores would increase fps
E-cores can slow the game down if they are used instead of performance cores.
in my case (AMD CPU and GPU) the issue is that the GPU is always overloaded while only getting about 65% of the performance that it does on Win10 but with more severe frame pacing issues.
on Nvidia it's more like 80-100%+ performance vs windows while GPU-bound.
Maybe just a fluke or me misreading things but when running with mangohud it seems while the GPU load is mostly shown as close to 99% at least on my RX 6600 (R5600X, ubuntu 23.04, gnome wayland, steam from deb package, standard mesa from distribution) it's not managing to get to more than like 80W of the 100W power limit of the card (while if you run another GPU heavy game it easily will) so maybe that has some relation to what's causing problems.
Does anybody else have 99 % GPU usage in the start menu?
@dataprolet Yes. #3347 it's the worst while inspecting weapons on my machine; GPU limited to ~60fps lol
Does anybody else have 99 % GPU usage in the start menu?
Yes, I do as well. I also get FPS drops and random performance issues. It does better under X, but X gives me random crashes with KDE and has for years on three different computers with different hardware setups. Wayland is much better, but cs2 has absolutely horrendous performance under wayland.
I'm not even sure if Valve are working on Linux issues. There are 4 weeks old extremely serious bugs but we haven't seen a fix for even one of them, let alone all. They are quick to fix Windows bugs tho.
CS2 has gotten even worse now the frame pacing is spiking to 180+ms i noticed some warninings in console like
Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 41145 Warning: have oustanding per-frame memory stack with 512 allocations
not sure if its related to anything
The game seems to run similarly for me now, in dust2 with no bots. Linux and Windows both get around 200fps (though it still dips to 90-120 in games with others, presumably due to #3338 or #3350)
@Rosentti What hardware? on my zen2+ R9 390 desktop I still get about 55% better fps in Win10; dust 2 empty server, top corner of a-ramp looking over the site = 177fps vs 278fps minimum graphics no FSR
edit: GPU-bound in both cases, but less so on Win10.
I7-7800X, RX 7900XT, Arch Linux, all settings on lowest except fsr off, global shadow quality high. 3840x2160 resolution. Measured with Steam overlay's fps counter.
I've also retested today, and can report improved performance. Framedrops seem to be gone, and FPS has greatly improved overall. This is only from a Deathmatch and fooling around on Inferno when testing smoke lineups, though.
Tested on: Arch Linux, Kernel 6.60-tkg-eevdf-llvm KDE Wayland Session 5.27.9 AMD Ryzen 5900X AMD RX 6900 XT, using mesa-git 24.0.0_devel
EDIT: After additional testing, I've experienced occasional FPS drops, but I'm not sure if those aren't present on Windows, too.
just moving to mesa-git has yielded a meaningful improvement to exactly 190fps in my quick offline casual test scene but Win10 is still about 45% faster on my hardware
(cl_showfps 2; fps_max 999; bot_kick; mp_ignore_round_win_conditions 1)
just moving to mesa-git has yielded a meaningful improvement
Yes mesa's main branch seem to perform just a tad better.
Win10 is still about 45% faster on my hardware
But it shouldn't be. This issue is a month and half old now and many players voiced their concerns and confirmed it. In said timeframe, they could have simply compiled the game against dxvk-native to remedy.
Since release, linux port's issues started piling up but we are yet to see any fix whatsoever. I'm -and I'm sure many others are- starting lose patience. How the game in its current state serviceable in any meaningful way? It's 2 more serious bugs away from becoming a crime against humanity to play. I would even be okay with playing the game through Proton just to stop jumping through hoops but that's never going to happen.
Off-topic, but the issues here feel dead anyway, developers seem to be more concerned about bullshit Reddit posts rather than their official issue tracker. Most of them probably don't even know it exists, while kisak is just being tasked with a janitorial work (no offense dude, really, you do actually try and help resolve the issues, but there are limits to what a one guy can do).
The CS2 specific e-mail is also a big fuckig joke. I got invited in the first beta wave, yet the issues I reported there are still not fixed to this day and I reported like 50 of them. I even got an automated ban halfway through due to "spam"... only because I prepared my issue reports beforehand, then after a game update, retested them thoroughly, checked if the reproduction steps are still valid, optionally attached media, etc. Sorry for being so quick and sending 3 well prepared e-mails within an 1 hour, which I wasted multiple hours testing and preparing.
After receiving no response to my attempts on contacting Valve on other emails about the ban, I deluded myself thinking that it's Valve, they probably read it and unbanned me, but are not gonna respond... so I kept up with the bug reports.
However looking back at it: beta was only officially available on Windows for the whole duration, so I should've just given them tech-illiterate 10 word bug reports like a typical Windows user would.
Generally a big disappointed and a middle finger in my direction.
Continuing to the present day:
It's 2 more serious bugs away from becoming a crime against humanity to play
Is it though? Everything that could possibly be wrong on Linux is wrong:
I thought we're past the stage where Linux users are frowned and looked down upon. I do not want to be treated like a second class citizen for using Linux anymore, especially not by you Valve.
I think some issues that allowed you to see through smokes and minor rendering glitches got fixed, but that's about it.
Even if they fix these problems with the game, what about features? Here's the thing: feature requests here are a no-go. You're being sent off to Steam forums.
Recently Nvidia made it possible to implement their Reflex technology on Linux. Cool I though, and created a Steam discussion requesting for it to be added. Not even 5 minutes passed and my post got lost amongst people scamming each other with free knives, fake Steam pages and other bullshit.
Is anybody from Valve really gonna see that post? No, of course not. Another example of how playing CS2 on Linux is not all that viable, is it now? I wish that wouldn't be the case.
Linux gaming wouldn't be a thing without Valve, at least not this fast or this good. We all respect and fucking love you for it Valve, we really do.
But the release of CS2 and how things are going now does not bode well for the future.
Being a part of the Counter-Strike community and a Linux player is how I imagine being cucked feels like. This needs to change.
After another round of testing after today's patch, I'm getting 400FPS on Linux and 460FPS on Windows in the same spot as @henrym11106. About 15% difference for me, with all settings as low as possible.
Mesa-git did not help me at all. I'm still having the same issues I'm having in this bug: https://github.com/ValveSoftware/csgo-osx-linux/issues/3542
It's been closed and moved to that thread, but I believe that to be incorrect, and not the same issue.
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3325#issuecomment-1803151209
is your frame timing that stable all the time? mine is min 2~ max 40+ , this is the biggest issue for me the frame timing just makes the game unplayable vs how smooth windows is
anyone know if there is a any way to profile the game to see what causes the spikes in frame timing?
@emko my offline frame times while GPU-limited tend to be very stable, but online DM is more like 4-12ms with the odd 20-50ms+ spike and conspicuous input lag on most maps. most often smooth-ish but laggy.
Hello!
CS2 works well on Wayland with a Zen3+ (ThinkPad X13 Gen3, Ryzen 6800U/RDNA2 680M). This is nice! Thanks to TTimo and others 🙂
CS2 is slower than expected. I hope Valve, Mesa and Linux improve the performance. We shall give them time and remember that they likely also have other tasks. And that the port for Windows is months ahead.
I would even be okay with playing the game through Proton just to stop jumping through hoops but that's never going to happen.
This won’t help. It will actually throw back Linux in development and therefore worsen our situation. Games like Quake3, CS1, CSS, CSGO or Tomb Raider run well natively. Better we have a tough time and fix the issues than splitting resources and never progress.
Proton (and WINE) are a workaround not a solution. While being a necessity for games without native ports it also requires resources from Valve. And Proton is of course also a layer which requires resource in usage and with further issues.
The initial native port of L4D2 on Linux was running even faster on Linux than on Windows (they fixed the issues on the Windows port): https://web.archive.org/web/20120804092523/http://blogs.valvesoftware.com/linux/faster-zombies/
This shows the complexity involved. Ironically this means the port for Windows was worse than the port for Linux. Nobody complained because the users didn’t had something to compare.
I don’t care much that the current Linux port seems to be approximately 20% slower. I also buy hardware if it is 20% slower because reliability is more important than performance. Actually I hope they improve the general performance everywhere. While - of course - Linux is the most important thing for us ;)
PS: Eight years of traumatic experience with WINE before the native ports were released. I know that Proton is much better. I only play (buy) games with native ports. I prefer not to invest in compatibility if the other side doesn’t want it - due to bad long time experience.
Much of the performance difference is not specifically inherent it being on Linux as such but rather the fact that it's using the Vulkan renderer which is not well optimized. Using the Vulkan renderer on windows also gives reduced performance compared to the default DX11 renderer (not sure if it's more or less performance loss compared to windows dx11 vs linux with current build) but using DX11 is obviously not possible on Linux without running the windows version via proton. So even if Linux isn't a big priority there may be some incentive to improve the performance of the Vulkan renderer which would also benefit Windows on e.g intel ARC GPUs that struggle a bit with DX11 once the most pressing gameplay problems are sorted since .
The vulkan implementation is awful but I think part of the blame for the lower fps compared to windows with -vulkan might be recent performance regressions in mesa drivers. On debian, mesa 22.3.6-1 (bookworm) runs about 20 percent faster than mesa 23.2.1-1 (sid). It's possibly fixed now in whatever the latest bleeding edge mesa is, but any rolling release distro users here might want to downgrade to 22.3.6-1 and check if performance improves.
When smokes are down the game feels like it's running well below 60fps.
I don't really understand how this is happening. Are there people at Valve testing the game on Linux or are they just pushing updates and hoping they work? I've tested it on three pieces of hardware:
Steam Deck 5600X with a 6750XT and 32GB DDR4 RAM i7 14700K with a 4070 and 64GB DDR5 RAM
And it just feels awful
Is fps_max
also not doing anything for anyone else? I have it set to 1 and it runs Nuke on ~50 and Mirage on ~60 anyway. My GPU is Intel A770 16GB so I think I should be getting way more than that.
Is
fps_max
also not doing anything for anyone else? I have it set to 1 and it runs Nuke on ~50 and Mirage on ~60 anyway. My GPU is Intel A770 16GB so I think I should be getting way more than that.
64 is the minimum value.
The fps is still ~70 most of the time which is really bad compared to go.
gt 1030 has a consistent performance on windows devices, getting as 130fps , 75 fps 1% low: res 1280*720. But the same gpu performs poorly when playing on linux. :| Fix seems only for windows!!!
gt 1030 has a consistent performance on windows devices, getting as 130fps , 75 fps 1% low: res 1280*720. But the same gpu performs poorly when playing on linux. :| Fix seems only for windows!!!
I'm sorry to inform you that Pascal GPUs (gt/x 10 series) usually perform poorly on Linux at Vulkan workloads because of subpar Nvidia drivers that lack many Vulkan extensions. It may never perform well.
Game is quite playable but still low fps. Also if I tab out on my GNOME desktop environment it starts feeling laggy and shit. Another issue I just had is that the game suddenly becomes laggy and sound is delayed a lot -> unplayable without restarting the game.
Your system information
Steam
->Help
->System Information
) in a [gist](https://gist.github.com/):Please describe your issue in as much detail as possible:
Below are the screenshots from native linux client with vulkan and CS2 running through Wine + DXVK, respectively.
![20230929040743_1](https://github.com/ValveSoftware/csgo-osx-linux/assets/25158549/fd14f679-1e50-4ee4-b278-a5bb49ab55c7)
I've played the Limited Test on Windows and there seems to be performance loss of anywhere between 40 to 60% compared to Windows client.
Steps for reproducing this issue: