csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

Microfreezes as hell on hdd

Open hashelq opened this issue 11 months ago • 12 comments

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?

hashelq avatar Jan 04 '25 02:01 hashelq

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 avatar Jan 04 '25 14:01 DeformedSAS

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

DeformedSAS avatar Jan 04 '25 14:01 DeformedSAS

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

apo-egix avatar Jan 10 '25 13:01 apo-egix

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 avatar Jan 20 '25 21:01 j-stechmann

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.

j-stechmann avatar Jan 23 '25 20:01 j-stechmann

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

apo-egix avatar Jan 24 '25 07:01 apo-egix

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

koreanfan avatar Jan 24 '25 13:01 koreanfan

But now dota 2 on linux start lagging in every match after 24-25 minutes of playing

Oh yeah that reminds me old good times (probably 2 years ago), when dota would go 8 fps either since the game start or the mid game xd.

hashelq avatar Jan 28 '25 17:01 hashelq

classic shader compilation.... why doesn't steam just auto compile shaders on both linux and windows for cs2 and other valve games instead of waiting for the game to compile them....

DeformedSAS avatar Jan 30 '25 10:01 DeformedSAS

Also when cs2 start lagging like play at 15-30fps i got spamming message in cs2 console: "[InputSystem] Processing SDL events took 50.1ms"

koreanfan avatar Feb 03 '25 02:02 koreanfan

that's a indication of packet loss. very common because of how heavy cs2's netcode is. as soon as there is some packet losd the game will stutter so that it can send and receive data.


From: koreanfan @.> Sent: Monday, February 3, 2025 3:49:09 AM To: ValveSoftware/csgo-osx-linux @.> Cc: DeformedSAS @.>; Comment @.> Subject: Re: [ValveSoftware/csgo-osx-linux] Microfreezes as hell on hdd (Issue #3955)

Also when cs2 start lagging like play at 15-30fps i got spamming message in cs2 console: "[InputSystem] Processing SDL events took 50.1ms"

— Reply to this email directly, view it on GitHubhttps://github.com/ValveSoftware/csgo-osx-linux/issues/3955#issuecomment-2629777530, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BH6OHVUJ5JLV6TRVHYPJPYD2N3KKLAVCNFSM6AAAAABUSUUOJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZG43TONJTGA. You are receiving this because you commented.Message ID: @.***>

DeformedSAS avatar Feb 03 '25 09:02 DeformedSAS

But now dota 2 on linux start lagging in every match after 24-25 minutes of playing

Oh yeah that reminds me old good times (probably 2 years ago), when dota would go 8 fps either since the game start or the mid game xd.

issue went back, congratulations everyone!

hashelq avatar Jun 15 '25 07:06 hashelq