Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underwhelming performance in CS2 - resources not used #3338

Open
1337-tux opened this issue Sep 29, 2023 · 25 comments
Open

Underwhelming performance in CS2 - resources not used #3338

1337-tux opened this issue Sep 29, 2023 · 25 comments

Comments

@1337-tux
Copy link

Your system information

Please describe your issue in as much detail as possible:

CS2 gives me at the moment only between 10 and 15fps in 720p low detail. CS:Go was running 1080p max detail 120fps+. The interesting thing is, CS2 is not using the available resources. In the main menu mangohud shows 50% CPU and 70% GPU utilization. In game it's 30% CPU und 10% GPU utilization. First I thought this has to be a mistake and checked the power consumption. However it confirmed mangohud. In game the power draw is dropping from 40W to 30W. For example in Halo Infinite MP, which is playable (ok, with eye cancer), makes my low end system really cry, it's 100% CPU and 100% GPU utilization at 60W power draw, which is very close to the theoretical maximum for the used hardware components. So, the question is, why in CS2 my CPU is yawning and my GPU sleeping?

Steps for reproducing this issue:

  1. just start a bot match
@SniperAssault2011
Copy link

I'll have to agree with this. I tested this in both FX 8350 and i7 8700k both using AMD RX 5600 XT Radeon GPUs. CPU and GPU utilization have been underwhelming to say the least. In the AMD Radeon Overlay, CPU utilization has been around 30-50% utilized in both DX11 and Vulkan. GPU utilization even worse, around 20-30% utilization. Both machines running at max settings @1080p. I think the game isn't using all resources available. Is there a config file in CS2 that allows us to change how many cores the game can utilize? I think that can solve most problems here.

@SniperAssault2011
Copy link

I made a post in the CS2 discussion forum in Steam.

https://steamcommunity.com/app/730/discussions/0/3881596897256509095/?tscn=1695985931

The problems are clearly optimization and the game not utilizing all cores.

@SniperAssault2011
Copy link

@kisak-valve Also an issue in Windows 10. I'm using this OS when playing CS2, still the same problems. Seems to be an optimization issue.

@kisak-valve kisak-valve removed the Linux label Sep 29, 2023
@Keplyx
Copy link

Keplyx commented Sep 29, 2023

This #3350 seems to be kind of linked. Performance goes down without increasing GPU/CPU usage

@alexandrpaliy
Copy link

alexandrpaliy commented Oct 2, 2023

Can confirm.

Although my specs are obviously quite low in comparison to many others (I use ThinkPad P14s Gen2 AMD with Ryzen 7 Pro 5850U (8C 16T) and integrated graphics), I do have the same issue: while CS2 is struggling to show stable 60 fps, my GPU usage is around 75% and my general CPU usage is at 50% or even lower.

It feels like cs2 (or vulkan specifically) is too humble to ask for more resources :)

P.S. I use linux (ubuntu 22.04), but, according to one of the posts above (and to the feedback I read at reddit), this issue is cross-platform (but happens only/mostly when vulkan is used).
I can share any required details if needed.

@nstdio
Copy link

nstdio commented Oct 2, 2023

Same for me. Feel free to request System Information if needed.

@JohnDoe02
Copy link

I can also confirm this .. I am on a pretty high-end setup, 5800x3d + 7900xtx. On win11 I get something like 300-600 fps with the dx11 renderer in wqhd. On linux (arch, mesa 23.1.8) with the vulkan renderer, I am stuck 100 - 240, with the occasional drop below 100. mangohud shows the gpu at 100% but cpu hovering around 15%.

@alexandrpaliy
Copy link

alexandrpaliy commented Oct 4, 2023

Finally took my time to update my local "netdata" version, so here are some screenshots of me:

  1. Playing offline with bots
  2. Joining official DM

CPU usage:
image

GPU usage:
image

In-game fps_max was set to 120 during this test, and I definitely wasn't reaching that limit - average fps was around 75, I would say, sometimes dropping to 60 or lower during DM.

As you can see, CPU usage is far from being 100%, and GPU usage is something like 75% during offline map and 80-85% during online DM.

upd: just in case
steam system information
cs2 sys_info

upd2: Obviously, I'm not pretending "my FPS would be so much better..." - my hardware is pretty limited, so it's not about "underwhelming performance" for me.
But everytime you lose a fight during some FPS drops, you start thinking "wait, but if GPU actually reached 100%, maybe I woudn't have that FPS drop...", and it makes you sad :) So, for me it's just a matter of reaching 100% utilization.

@alexandrpaliy
Copy link

A couple of screenshots with MangoHud.

Offline (with bots):
Screenshot_20231004_210328
Screenshot_20231004_210414
Screenshot_20231004_210522

Online (DM):
Screenshot_20231004_211800
Screenshot_20231004_211630
Screenshot_20231004_211543

Funny enough, the only place where I can notice constant 99% GPU load is... the main menu :D
Screenshot_20231004_211407

@alexandrpaliy
Copy link

alexandrpaliy commented Oct 4, 2023

Wow. I had steam installed via flatpak, because according to general feedback there shouldn't be noticeable difference in performance. Turns out there is, at least in my configuration.

Screenshot_20231004_220121
Screenshot_20231004_215847
Screenshot_20231004_215730

Screenshot_20231004_220549

On average, I'd say I got 20-25 fps boost after switching to native (deb) installation. Difference is also noticeable in online DM, but I didn't bother trying to replicate the same screenshots.

But, going back to the topic - GPU usage is still not 100%.

@ex1tium
Copy link

ex1tium commented Oct 11, 2023

Wow. I had steam installed via flatpak, because according to general feedback there shouldn't be noticeable difference in performance. Turns out there is, at least in my configuration.

On average, I'd say I got 20-25 fps boost after switching to native (deb) installation. Difference is also noticeable in online DM, but I didn't bother trying to replicate the same screenshots.

But, going back to the topic - GPU usage is still not 100%.

Can somewhat confirm that flatpak version of steam causes microstuttering on my system and inconsistent frames.

I had to uninstall steam from dnf few days ago due to having some package conflicts. I installed steam from flatpak and started having issues. Happened upon your post and uninstalled flatpak steam and reinstalled binary from dnf.

I did some package/kernel cleaning today and looks like the package conflict previously was resolved. It all seems OK after going back to dnf binary.

@ppedro1
Copy link

ppedro1 commented Oct 16, 2023

I switched from RX 5700 XT (oldGPU) to RX 7800 XT (newGPU) yesterday and the game seems to run smoother, but the FPS gain from this switch was less than 50, still well under 200 FPS. With oldGPU the GPU utilization was always 99% and fps was 90-150, with newGPU the utilization is lower, 80-99% (except in the menu its always 99%). FPS on newGPU is around 120-180.

I had to switch to fedora (from ubuntu) to get CS2 to even launch with newGPU (I think it needs newer linux-firmware than was available in ubuntu package manager), so it might also contribute to differences in performance.

I will provide system info and better statistics later.

@GreatBigWhiteWorld
Copy link

GPU and CPU are both below 50% usage in game.

@skywasa
Copy link

skywasa commented Nov 25, 2023

I have the same reported low performance problem and the worst of all is I use an amd FX 83XX (GTX750ti), that is, the performance is no longer the best... and using only 30-40% CPU/GPU playing against bots only I can play at 15-30fps. When I disable the bots' AI, everything is fluid and stable (GTX handles graphics well)

Even after many, many updates, it is a problem that persists until now and ruins my experience in CS2. I think it's an optimization problem in the source 2 engine.
20231125085004_1
20231125091417_1
20231125091428_1
20231125091437_1
20231125091443_1

@madhavpcm
Copy link

madhavpcm commented Dec 9, 2023

I have the same issue (in Windows and Linux).
Both CPU and GPU are underutilized however in main menu, GPU utilization is proper (clock at 1500Mhz) and in game it is only 800Mhz. I have tried -threads launch command but the game doesnt seem to use more than 4 threads. -high launch options seems to help a bit with smoothness.

Ryzen 4600H
Radeon RX 5600M

@skywasa
Copy link

skywasa commented Dec 9, 2023

I emailed them begging for help and they basically responded: "We're sorry but your PC is garbage, it's not our fault. Please call a technician and upgrade."

I would even agree if my PC was unable to run the game reaching 100% CPU/GPU consumption, but the game clearly runs well on my system. As I said, it's a game optimization problem, but apparently they don't care. (note: CSGO runs stable at 60fps even with all settings high)

Valve has been playing dirty by forcing players to migrate from CSGO to CS2, we are forced to download 2 to play GO in legacy mode, making the game a parasite on its predecessor (usurping positive reviews and playtime from CSGO). The problem is precisely this, I paid for the GO and I want to have the right to download only the GO, if I want. Downloading a poorly optimized and buggy beta game takes up precious space on my hard drive.

I don't doubt that the bad optimization is intentional, but anyway...*

In a world where everyone wants CS2 to run at 400fps, I'm just asking for a measly 60fps to play casually
I'm very disappointed with Valve, I don't intend to spend any more money on Steam.

Captura de tela 2023-12-09 090912
Captura de tela 2023-12-09 090808

[EDIT]

  • What reinforces my theory that Valve is trying to encourage people to play CS2 is that CS1.6 recently had launch problems with visual c++ errors. The solution was to change the game to "beta" (due to an "update" of 25th anniversary Half Life). It seems like Valve pulled some strings on the server, coincidence or conspiracy theory?

https://steamcommunity.com/discussions/forum/1/5540051992990975285/

Captura de tela 2023-12-13 011901

@ppedro1
Copy link

ppedro1 commented Dec 9, 2023

How exactly do you suppose they could "optimize" a game running on a newer engine with MUCH improved physics, shaders, etc. to run at 60FPS, when your hardware could only produce "stable 60FPS" on the old game/old engine?

You complain that you have to download CS2 in order to play CSGO (don't know why you care about CS2 FPS or optimization if you just want to play CSGO), which admittedly sucks ass for your use case, but sadly it is the majority whom valve (or any developer) aims the changes at. And from my experiences so far, the majority wants to play CS2.

All this talk of valve making you/us do this and that and the conspiracy theories just because you have clearly outdated* hardware is just ridiculous.

*CPU from 2012 and GPU from 2014, and I happen to have quite horrible experiences on both of the CPU and GPU

@skywasa
Copy link

skywasa commented Dec 9, 2023

Replying to #3338 (comment)

Sorry if I offended you, Pedro1.

CS2 doesn't even work as it should with current hardware, that's a fact (prints and reports prove this).

Captura de tela 2023-12-09 201842

Captura de tela 2023-12-09 202952

Captura de tela 2023-12-09 205342

The issue is not whether the hardware is old, it's optimization. The FX has terrible single core performance, I know, but if the 4/8 cores are used well, it has good performance. And let's face it, CS2 shouldn't be a heavy game, even on modest hardware. Note: CS2 requires at least a 2009 processor to work "well".

Captura de tela 2023-12-12 103312

My processor:
Captura de tela 2023-12-12 104430

Furthermore, for me, if I can play Call of Duty: Modern Warfare Remastered smoothly on my PC, the hardware is definitely not a problem. Forza Horizon 5, Resident Evil Remake, etc. They all work well. (of course, except some that require DX12, due to the video card)

Call of Duty®_ Modern Warfare® 2 Campaign Remastered 10_12_2023 00_37_51
Call of Duty®_ Modern Warfare® 2 Campaign Remastered 10_12_2023 00_38_50

What I mean by CSGO running at 60fps is because my monitor is 60Hz. I don't need anything more than that.

Whether it's theory or not, strange things have been happening since the release of CS2. What causes this strangeness is they have a lot of experience in fps and they shouldn't have made the same mistake as GO at the beginning.

CS2 is a buggy game, poorly optimized and released prematurely, fact. You need to download the parasite (and usurper) CS2 to play CSGO, fact. People reported problems playing CS 1.6 (caused after convenient updates) just in times when CS2 has seen a breaks negative record for the number of players, check..

Captura de tela 2023-12-12 110621

The only theory in this is that Valve maintains this low performance on purpose (or rather,
manipulates performance strategically and discreetly) or don't really care about optimizing, even with almost daily updates. In other words, you need a very good PC to run CS2 acceptably.

Captura de tela 2023-12-14 095139

The owner of the most played FPS in the world say: "You have the minimum requirements but you need an upgrade"
What I think about this:
acordo
Captura de tela 2023-12-14 094159

Planned Obsolescence Sucks!

@ppedro1
Copy link

ppedro1 commented Dec 9, 2023

No offense taken or intended, my friend.

I didn't mean to imply that CS2 was perfect and I am too eagerly waiting for many things to improve. It is just a cold fact that there is no way you're getting the same performance with CS2 quality graphics than with CSGO quality graphics, no matter how much one thinks there's room for optimization.

There's no need to continue this off topic conversation.

@skywasa
Copy link

skywasa commented Dec 9, 2023

Alright, I posted it here in hopes that someone at Valve will read this one day. I don't mean to say that I hate CS2, quite the opposite. I hope I don't offend any fans, I just want to play.

@xiao-mantou
Copy link

xiao-mantou commented Jan 27, 2024

I found that simply lower your resolution will give you better experience (Frame rate, smoothness) than FSR on. I hope they give resolution scale option in further update.
And I still think this game is not well optimized, because I got the same performance with or without intel turbo boost in office.

Update:
Found the resolution scale "setting.mat_viewportscale" in cs2_video.txt.

@JohnDoe02
Copy link

Ever since the last updates (arms race+), this has become a serious issue for me .. I am on a high-end system, 7900XTX + 5800X3d and am experiencing framedrops into the 50-60s in some occasions while GPU utilization tends to sit around 50%.
I am on arch linux, mesa 23.3.5.

The issue seems to be worsen after playing for a while, especially when playing deathmatch. Also it seems to be connected to the firing animations, as if I am something like 20-30 minutes in, I will have very laggy gameplay especially while spraying.

However, also normal matchmaking lags sometimes, most obviously on ancient, T-spawn, where my fps sometimes drop below 100 (300+ before arms race) and the game feels completely sluggish.

@schnetzerich
Copy link

schnetzerich commented Mar 3, 2024

I am experiencing the exact same issue as JohnDoe02 since the Arms Race update. When starting the game, performance is fine, 250+ FPS, Ancient T-spawn or Overpass B Short dips to 150, still easily playable.
After one full Deathmatch, those same spots dip to 30 or below, best case scenario now being 150FPS when hugging a wall.
After a second full Deathmatch, it gets even worse.
In normal matchmaking i am at this point forced to restart the game after one half, because otherwise the second half will not be playable.
The maps with the more noticable dips (Ancient, Overpass) will lead to unplayability earlier (about 10 rounds into a Competitive Match), while maps with less noticeable dips (like Inferno) will lead to unplayability later (about 15 rounds into a Competitive match)
So DM is the fastest way to reproduce.
One more thing to note is that during those dips my GPU will not do a whole lot, as others have mentioned. When i am in the main menu with unlocked FPS, the GPU is working at 100%, as soon as i am in a game this gets less and less, basically doing nothing when im down to <30 FPS.

Specs are: gist of the latest test
Ryzen 3700X
5700XT
16GB RAM

using Debian 12, tried 3 different Kernels (6.1, 6.5, 6.6) and two different Mesa versions (22.3.6-1 on 6.1 and 23.3.5-1 on the other two)
also not on Wayland, but X11.
One more thing i tried is changing the CPU governor to performance, which also didnt help.

@StupydHors
Copy link

Funnily enough, I got here searching for the same symptoms and trying the same solutions but on Dota 2 (same engine so I guess its not very surprising). GPU util in menu is 100% at 200W but in game it gets down to like 90W 45% while the CPU is not at 100% on any core.

@mcnuggetsx20
Copy link

The same issue here, CS2 on windows 11 runs at 150-200 fps and barely exceeds 100 on Linux with the same settings. And expectedly my resources are barely used. CPU at 50% and GPU at maybe 30-40. I run an NVIDIA GeForce 1660Ti with proprietary drivers.

Also, are there any developers actually tracking this issue? It seems like we as the players have been updating on this without anyone paying attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests