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

Microfreezes as hell on hdd #3955

Open
hashelq opened this issue Jan 4, 2025 · 7 comments
Open

Microfreezes as hell on hdd #3955

hashelq opened this issue Jan 4, 2025 · 7 comments

Comments

@hashelq
Copy link

hashelq commented Jan 4, 2025

When running on hdd the game is indeindeindeindefinetly is loading a plie of trash like skins, shooting whatever.
The microfreezes are here almost every n seconds indefinitely.
Can you finally do something about it, not just for cs2, but for the engine? run a separate thread for resource loading? preload the stuff just before the game?

@DeformedSAS
Copy link

the game is already preloading a bunch of assets. that's why it takes a long time to load, on the first build of cs2 that is public the game loads the core ui and most of the assets before loading the background maps and sounds. instead of putting the game on a hard drive please put it on a ssd if possible. same goes for the unsupported csgo, both games take a while to load off of hard drives because of skins, high quality models and textures etc.

@DeformedSAS
Copy link

for me the game runs like dogshit even with a ssd on a midrange system, the game is just not optimised at all

@apo-egix
Copy link

apo-egix commented Jan 10, 2025

can confirm, run the game on 6.6.69-lts and 6.12.8 with nvidia opendkms 565.77.
I have constant frame drops, 85% of the time the game runs at 144fps (g-sync on) and then it drops to 30-50 for 1-2 seconds. It is not really playable, since aiming with those changing frame rates is impossible

running on i5 9600k, rtx 2070 (non-super), 32gb ram and all ssd's and nvme's

@j-stechmann
Copy link

j-stechmann commented Jan 20, 2025

I'm also seeing this behaviour, despite having a somewhat high-end rig.

Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: X870 AORUS ELITE WIFI7
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 9800X3D 8-Core Processor
CPU Family: 0x1a
CPU Model: 0x44
CPU Stepping: 0x0
CPU Type: 0x0
Speed: 5269 MHz
16 logical processors
8 physical processors
Hyper-threading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Supported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
AVX2: Supported
AVX512F: Supported
AVX512PF: Unsupported
AVX512ER: Unsupported
AVX512CD: Supported
AVX512VNNI: Supported
SHA: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
BMI1: Supported
BMI2: Supported
F16C: Supported
FMA: Supported
Operating System Version:
"Nobara Linux 41 (KDE Plasma)" (64 bit)
Kernel Name: Linux
Kernel Version: 6.12.10-200.nobara.fc41.x86_64
X Server Vendor: The X.Org Foundation
X Server Release: 12401004
X Window Manager: KWin
Steam Runtime Version: steam-runtime_0.20241024.105847
Client Information:
Version: 1733265492
Browser GPU Acceleration Status: Enabled
Browser Canvas: Enabled
Browser Canvas out-of-process rasterization: Enabled
Browser Direct Rendering Display Compositor: Disabled
Browser Compositing: Enabled
Browser Multiple Raster Threads: Enabled
Browser OpenGL: Enabled
Browser Rasterization: Enabled
Browser Raw Draw: Disabled
Browser Skia Graphite: Disabled
Browser Video Decode: Enabled
Browser Video Encode: Disabled
Browser Vulkan: Disabled
Browser WebGL: Enabled
Browser WebGL2: Enabled
Browser WebGPU: Disabled
Browser WebNN: Disabled
Video Card:
Driver: NVIDIA Corporation NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2
Driver Version: 4.6.0 NVIDIA 565.77
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 169 Hz
VendorID: 0x1002
DeviceID: 0x13c0
Revision Not Detected
Number of Monitors: 3
Number of Logical Video Cards: 2
Primary Display Resolution: 2560 x 1440
Desktop Resolution: 5840 x 1440
Primary Display Size: 23.50" x 13.23" (26.97" diag), 59.7cm x 33.6cm (68.5cm diag)
Primary VRAM: 8192 MB
Sound card:
Audio device: USB Mixer
Memory:
RAM: 31194 Mb
VR Hardware:
VR Headset: None detected
Miscellaneous:
UI Language: English
LANG: en_US.utf8
Total Hard Disk Space Available: 1871783 MB
Largest Free Hard Disk Block: 1356036 MB
Storage:
Number of SSDs: 1
SSD sizes: 0B
Number of HDDs: 0
Number of removable drives: 0

@j-stechmann
Copy link

Since my last comment I've switched to Fedora Workstation KDE and this time did not encrypt my drive, and while it's not completely gone, it has become much better than on Nobara.
My theory behind losing the encryption was that, because I was using software encryption and a very fast SSD, the decryption was a bottleneck.
I don't know if that is the problem because many many other variables have changed in my switch to Fedora, but it has helped.

All of that said, the game does not run anywhere near the DirectX version on my five year old windows machine, and optimization is direly needed.

@apo-egix
Copy link

I installed xfce with x11 as a 2nd DE and cs2 works flawlessly. Granted I got to disable the other two monitors because of different refresh rates, but it works nonetheless.
I'm certain it doesn't have to do with cs directly, but the circumstances it runs in. That is just an opinion though

@koreanfan
Copy link

I installed xfce with x11 as a 2nd DE and cs2 works flawlessly. Granted I got to disable the other two monitors because of different refresh rates, but it works nonetheless. I'm certain it doesn't have to do with cs directly, but the circumstances it runs in. That is just an opinion though

cs2 lagging very often on debian xfce, manjaro xfce and on other linux distributions. Sometimes fps drops to 30-40 and its totally unplayable. Sometimes even if you got 100-150 avg fps then game lagging like if it was 30 fps. To fix this you must change resolution to another and revert back, or change from windowed mode to fullscreen windowed or use another combination or pkill -9 cs and pkill -9 steam and execute "sudo sync && sudo sysctl -w vm.drop_caches=2" cuz you got memory leak also. I got those issues since valve introduce cs2 on steam platform for linux. Also avg fps(i used cl_showfps 4 for monitoring) on linux is lower then avg fps on windows(directx) by 100-120fps. Also when you play online with other players then fps on linux became even more lower and lower and you got huge lags. While on windows(directx) i dont have those problem with online multiplayer. Also cs2 on windows got issue with fullscreen windowed mode. When your desktop 1920x1080 and cs2 launched in 1920x1080 then you cant activate fullscreen windowed mode for other resolutions. Also when desktop 1920x1080 and cs2 launched in 1920x1080 fullscreen windowed mode then after reopening video cs2 settings you saw that game working in windowed mode instead of fullscreen windowed. This problem with broken fullscreen windowed mode on linux and on windows start since valve applied their patch and in annotation for this patch they said smthing about "fixed problem with windowed mode/fullscreen mode ...". I got rx560 with ryzen 5 5600, 32GB ram, ssd and even tested cs2 on hdd. I dont see any major difference in game when game installed on ssd or hdd, just maps load little faster on ssd. Also dota 2 on linux and dota 2 on windows(directx, vulkan) got the same fps. But now dota 2 on linux start lagging in every match after 24-25 minutes of playing

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

5 participants