[SOLVED] CS2 bad performance
I am using hyprland with arch i resently downloaded steam to play cs2 i am not geting good performance only about 55 to 60 fps even though my cpu and gpu are getting about 40 to 50% utilize i tried disabling vsinc in game but didnt help and on high and low setting i am getting same performence i think i am vsic lock how can i dissable it ?

144 Replies
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
how do i disable v sync i have dissable it in game but still only getting 60 fps at max
like-goldβ’2y ago
you are in wayland, so.. you are locked at 60.. i dont use wayland so cant really tell you what to do, but google has lots of hits about disabling vsync in wayland, but seems thats not without its own set of issues
optimistic-goldOPβ’2y ago
Can you connect me to some one who might have idea
deep-jadeβ’2y ago
No, i use wayland and get 1000 fps if i want. Problem what you heard about is ( what you think as is ) there was no tearing protocol until recently so you would get your frames but since each prame was perfect ( hence no tearing ) it would come with latency penalty
Using Kde Wayland here btw, i get 300-250 fps on Arch with 7900 xtx
1440p maxed out- no fsr
like-goldβ’2y ago
right so some setting in wayland to disable/alter its vsync behavior
deep-jadeβ’2y ago
Nope, no setting needed. Setting is needed for allowing tearing but no setting needed for high fps
inxi -SMGxx
Give me this outputoptimistic-goldOPβ’2y ago
Give me 10min
like-goldβ’2y ago
sure does sound like something is locking at 60 π vsync is a good go to.. could be enabled on driver as well and be indepentent of wayland
deep-jadeβ’2y ago
Yep, that is why i ask for that output
inb4 Nvidia memes again
like-goldβ’2y ago
my guess would be nvidia too π
optimistic-goldOPβ’2y ago

like-goldβ’2y ago
so install it
optimistic-goldOPβ’2y ago
ok doki
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
wait lol my gpu was off
let me enable and resend the thing
deep-jadeβ’2y ago
Yes, llvmpipe says you were doing rendering on cpu πΈ
optimistic-goldOPβ’2y ago

deep-jadeβ’2y ago
Now that's better
Any changes in game perf?
optimistic-goldOPβ’2y ago
no
i did test both way beffor even openning a support request
if you want i can just re run the game
deep-jadeβ’2y ago
Tikit, i like it.
vulkan_driver
add this to your mangohud cfg and also run this when game is on:
watch -n 0.5 nvidia-smi
optimistic-goldOPβ’2y ago
π€―you lost me here
deep-jadeβ’2y ago
In which part, ain't complicated πΈ
optimistic-goldOPβ’2y ago
where can i find mangohud config
i download it with pacman
deep-jadeβ’2y ago
https://github.com/flightlessmango/MangoHud?tab=readme-ov-file#hud-configuration
But that thing is not crucial
Just do nvidia-smi thing
And post screenshot of it
optimistic-goldOPβ’2y ago
when game is running in background ?
deep-jadeβ’2y ago
Yes
Background or foreground
optimistic-goldOPβ’2y ago
when i am in main manu

deep-jadeβ’2y ago
Somehow something keeps you at P5 perf level, normally it should be P8 or something for full perf iirc
optimistic-goldOPβ’2y ago
when i am in practice match

deep-jadeβ’2y ago
Yep
Your power management is borked, gpu doesn"t clock as much it should be
optimistic-goldOPβ’2y ago
ya i guess i am using a software to improve my bettry performance
but i did set it to performance
optimistic-goldOPβ’2y ago

deep-jadeβ’2y ago
π€·ββοΈCheck other games to see if same thing happens
Governor override is related to cpu btw
Not gpu
optimistic-goldOPβ’2y ago
i dont have fast internet π’ so it take time to download games
ooh
could it be my gpu drivers
deep-jadeβ’2y ago
To rule it out, better use this script to install the driver you want.
https://github.com/Frogging-Family/nvidia-all?tab=readme-ov-file#how-to-run-the-installer
GitHub
GitHub - Frogging-Family/nvidia-all: Nvidia driver latest to 396 se...
Nvidia driver latest to 396 series AIO installer. Contribute to Frogging-Family/nvidia-all development by creating an account on GitHub.
deep-jadeβ’2y ago
Go with dkms and closed kernel options
Usage is very easy
optimistic-goldOPβ’2y ago
ok
optimistic-goldOPβ’2y ago
which one should i pik ?

deep-jadeβ’2y ago
Try 2 first
As 535 is older
And yes, that is same as one you got from arch repos
optimistic-goldOPβ’2y ago
ok
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
i did y
is their a way to make process fast ? of compiling
deep-jadeβ’2y ago
You should have done N imo but that would still work
optimistic-goldOPβ’2y ago
now its P8

deep-jadeβ’2y ago
And perf
?
optimistic-goldOPβ’2y ago
lol i am human give some time to test things
deep-jadeβ’2y ago
:sunglase:
optimistic-goldOPβ’2y ago
should i restart
deep-jadeβ’2y ago
Didn't you already? Yes
optimistic-goldOPβ’2y ago
you are the most effert help supporter i even met XD
deep-jadeβ’2y ago
:CatYeah:
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
:< no improvement still same
deep-jadeβ’2y ago
Hmm, set game to windowed mode or borderless window
optimistic-goldOPβ’2y ago
but game got smoother XD
ok
performence go down
deep-jadeβ’2y ago
Ha, so windowing options affects perf somehow.
optimistic-goldOPβ’2y ago
yup
deep-jadeβ’2y ago
https://www.reddit.com/r/linux_gaming/comments/17byrbv/comment/k5nmf0i/
Found this, someone says hyprland perf sucks with that game πΈ
While kde is normal
It should be easy enough to test, you can install kde, test with it, see how it goes
https://wiki.archlinux.org/title/KDE
1.1 tells how to do it
After that you can start with whichever you want via your session manager
optimistic-goldOPβ’2y ago
i did talk to the one devloper and he said his games work fine
deep-jadeβ’2y ago

deep-jadeβ’2y ago
They can say that
But your machine is yours
So your experience might differ
optimistic-goldOPβ’2y ago
hmmm
i did played this game on endeavour os ones on my system and it was putting 90 to 100 fps on high settings :>
deep-jadeβ’2y ago
I use Endeavour too :Pandaexcited:
optimistic-goldOPβ’2y ago
i used it in past
deep-jadeβ’2y ago
Anyways, try with kde
like-goldβ’2y ago
i just stick to my arch xorg and bspwm and pretty much everything works without issue .. sounds like a lot of futzing for hyperland ..
deep-jadeβ’2y ago
If it works there , go to hyprland devs and say "i want to speak with your manager"
like-goldβ’2y ago
iirc wasnt there a hyperland nvidia patch or something
deep-jadeβ’2y ago
π€·ββοΈ
like-goldβ’2y ago
i think i've seen folks talk about it, might be worth a look
optimistic-goldOPβ’2y ago
well hyprland is still new
like-goldβ’2y ago
yep, so you are paying the cost
anyway pretty sure there's a nvidia patch that may address some weirdness
not sure if it fixes this, but most folks seem to suggest it for nvidia
optimistic-goldOPβ’2y ago
yoo i just downloaded plasma-meta and it is not showing in my mannager
i heard resently hyrland is now supported on nvidea and not need any work around
deep-jadeβ’2y ago
Did it install bunch of other packages as well or no?
optimistic-goldOPβ’2y ago
yes it did something
deep-jadeβ’2y ago
To enable support for Wayland in Plasma, also install the plasma-wayland-session package. If you are an NVIDIA user with the proprietary nvidia driver, also enable the DRM kernel mode setting. If that does not work, too, check the instructions on the KDE wiki.
optimistic-goldOPβ’2y ago

deep-jadeβ’2y ago
So whatever mirror you're getting it from is busted i guess
optimistic-goldOPβ’2y ago
i am usingh pacman
same on yay
deep-jadeβ’2y ago
pacman is package manager, not a mirror.
https://wiki.archlinux.org/title/mirrors
Force pacman to refresh the package listsMirrors can be out of sync and the package list from the old mirror may not correspond to the package list of the new mirror, even though the dates of the lists may suggest that they do.
optimistic-goldOPβ’2y ago
fixed π
just sync the pakage
game is not lounching
tested one more small game also didnt work
deep-jadeβ’2y ago
With kde wayland?
optimistic-goldOPβ’2y ago
kde
deep-jadeβ’2y ago
Is it kde wayland tho
So that is not a valid answer
optimistic-goldOPβ’2y ago
plasma
deep-jadeβ’2y ago
Check inxi -SMGxx output again
Because your answers are completelt unrelated to what i ask πΈ
optimistic-goldOPβ’2y ago
..[$] <( (git)-[master]-)> inxi -SMGxx
System:
Host: archlinux Kernel: 6.6.4-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 13.2.1 Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: kwin_x11
dm: SDDM Distro: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82K2 v: IdeaPad Gaming 3 15ACH6
serial: <superuser required> Chassis: type: 10 v: IdeaPad Gaming 3 15ACH6
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T76486 WIN
serial: <superuser required> UEFI: LENOVO v: H3CN32WW(V2.02)
date: 02/23/2022
Graphics:
Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo
driver: nvidia v: 545.29.06 arch: Turing pcie: speed: 2.5 GT/s lanes: 8
bus-ID: 01:00.0 chip-ID: 10de:1f9d
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 pcie: speed: 8 GT/s
lanes: 16 ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 05:00.0
chip-ID: 1002:1638 temp: 49.0 C
Device-3: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 1-3:3 chip-ID: 04f2:b6c2
Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
compositor: kwin_x11 driver: X: loaded: modesetting dri: radeonsi
gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96
Monitor-1: eDP-1 model: BOE Display 0x0a81 res: 1920x1080 dpi: 142
diag: 395mm (15.5")
API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: radeonsi
device: 2 drv: swrast gbm: drv: kms_swrast surfaceless: drv: nvidia x11:
drv: radeonsi inactive: wayland
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (renoir LLVM
16.0.6 DRM 3.54 6.6.4-arch1-1) device-ID: 1002:1638
API: Vulkan v: 1.3.269 surfaces: xcb,xlib device: 0 type: discrete-gpu
driver: nvidia device-ID: 10de:1f9d
deep-jadeβ’2y ago
Launch game with this
optimistic-goldOPβ’2y ago
ok sir
didnt work
deep-jadeβ’2y ago
That is weird and unexpected.
Launch steam itself via terminal and launch game from UI and see what steam complains about
optimistic-goldOPβ’2y ago
nothing diferent steam starts fine i go and click on game it shows running then dies
deep-jadeβ’2y ago
Output in the terminal matters
Otherwise why would i tell you to check what steam complains about
optimistic-goldOPβ’2y ago
okok
optimistic-goldOPβ’2y ago
deep-jadeβ’2y ago
Meh, not that helpful. It dies right at launch after doing some shader cache operations.
Show me the screenshot of your game launch options
optimistic-goldOPβ’2y ago
ok
stupid question how to take ss in plasma ?
kde
deep-jadeβ’2y ago
Just hit printscreen key
optimistic-goldOPβ’2y ago
big bran but not working
deep-jadeβ’2y ago
https://archlinux.org/packages/extra/x86_64/spectacle/
Install this
It seems this meta package contains it
https://archlinux.org/packages/extra/any/kde-graphics-meta/
So you won't have it if plasma meta package doesn't install that
optimistic-goldOPβ’2y ago

deep-jadeβ’2y ago
You don't have an additional %command% too that is a left over from your mangohud right?
optimistic-goldOPβ’2y ago
no i removed
deep-jadeβ’2y ago
Odd.
sudo pacman -Syu vulkan-tools
nvidia-smi
when cube is spinningoptimistic-goldOPβ’2y ago
NV_PRIME_RENDER_OFFLOAD=1 VK_LAYER_NV_optimus=NVIDIA_only vkcube this in new lounch option ?
deep-jadeβ’2y ago
No, you should use terminal for that
Not steam or game related
optimistic-goldOPβ’2y ago
ok
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
still game not running
i did tested it in hyprland it works fine there with low fps
deep-jadeβ’2y ago
I said when cube is spinning, cube didn't work with those env vars?
optimistic-goldOPβ’2y ago
there is no cube
deep-jadeβ’2y ago
Just do
vkcube
only
Does it work?optimistic-goldOPβ’2y ago
..[$] <( (git)-[master]-)> vkcube
Selected GPU 0: NVIDIA GeForce GTX 1650, type: DiscreteGpu
[1] 96114 segmentation fault (core dumped) vkcube
it opens window then closes/crashes
deep-jadeβ’2y ago
sudo pacman -S vulkan-icd-loader lib32-vulkan-icd-loader
sudo pacman -R amdvlk lib32-amdvlk
just as a safety measure
Then cube againoptimistic-goldOPβ’2y ago
ok
same
deep-jadeβ’2y ago
Rip, for some reason on Kde your dgpu goes kaput
optimistic-goldOPβ’2y ago
XD
deep-jadeβ’2y ago
Do you have a X conf file you created manually somewhere?
optimistic-goldOPβ’2y ago
no
deep-jadeβ’2y ago
Not a globally passed env var either i assume?
optimistic-goldOPβ’2y ago
i am not sure
deep-jadeβ’2y ago
If you didn't put stuff in there, then you are not passing anything on your own.
https://wiki.archlinux.org/title/environment_variables#Globally
deep-jadeβ’2y ago
Which at this point, i have no idea why kde would be like that πΈ
optimistic-goldOPβ’2y ago
hmmm
aren't we going to out
form our main problem
deep-jadeβ’2y ago
Go back to hyprland and try to solve perf there
But i don't know what else can be done
optimistic-goldOPβ’2y ago
its not about setting new enviroment just for game
deep-jadeβ’2y ago
Especially if that is the only game that does it
optimistic-goldOPβ’2y ago
yaa i guess i will skip on cs2 then
i dont game that often and if this problem still stays i will just reinstall arch with an envirment
thx for your time though
and thx for easy script that install nvidia gpu drivers
deep-jadeβ’2y ago
Yw :CatYeah:
optimistic-goldOPβ’2y ago
@"Leopard" yo sorry to tag let talk a bit
deep-jadeβ’2y ago
Start :sunglase:
Lol, i already replied it seems
optimistic-goldOPβ’2y ago
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json %command%
after adding this command game didnt started only render the shaders
ya this on is prity old XD
deep-jadeβ’2y ago
inxi -SMGxx
Gimme this outputoptimistic-goldOPβ’2y ago
inxi didnt found XD
deep-jadeβ’2y ago
sudo apt install inxi
optimistic-goldOPβ’2y ago
\

optimistic-goldOPβ’2y ago
hold you horsis
deep-jadeβ’2y ago
Why on earth or how on earth did you install Snap Heroic then on Arch?
Or that screenshot is just old
optimistic-goldOPβ’2y ago
new XD
deep-jadeβ’2y ago
But cannot be as 6.6.9 kernel
Ye
optimistic-goldOPβ’2y ago
i found a guid
and just follow
deep-jadeβ’2y ago
https://discord.com/channels/812703221789097985/1183352787032080384/1183416546010349638
Again
Nothing better i can do here
It should just work
optimistic-goldOPβ’2y ago

optimistic-goldOPβ’2y ago
i recently did fresh install of arch π
@"Leopard" it finaly worked you manage to crack it , i guess the firsh comand with vkcube make it work