ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
784 stars 69 forks source link

Game takes over 1.5 minute to start on opensource drivers #528

Open maciekmm opened 8 years ago

maciekmm commented 8 years ago
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Edition]
           Display Server: X.Org 1.17.4 driver: radeon
           Resolution: 1280x1024@75.02hz, 1280x1024@75.02hz
           GLX Renderer: Gallium 0.4 on AMD PITCAIRN (DRM 2.42.0, LLVM 3.7.0)
           GLX Version: 3.0 Mesa 11.0.5

video-ati            2015.11.08

Logs from steam startup: http://pastebin.com/umYP0Yym <- Notice lines 249+

The issue does not occur on proprietary drivers.

Game installed on HDD.

Tele42 commented 8 years ago

Mesa currently does not have an on-disk shader cache, these delays are most likely from the shader compiler working from the main thread and is directly proportional to your processor's single threaded performance.

tpruzina commented 8 years ago

Hm, I think that shader cache only really helps during map load (cl_forcepreload 1) etc, not quite sure it affects game startup times. You mind capturing game load with tool such as "sysprof" and posting output here? That should actually give us much better idea where the hang is (since there is no crash dump I doubt valve can do much about this).

mightyiam commented 8 years ago

I'm experiencing very long start up time, as well. Open source Radeon, as well.

I'd be happy to debug using sysprof or anything that may help.

Could you please give some pointers?

mightyiam commented 8 years ago

Oh, and, during game startup, it seems that it occurs mostly if not entirely on a single thread.

mightyiam commented 8 years ago

I tried Google and didn't find it.

Is there a single upstream issue where I can see the progress of this?

Assuming that this is an exclusively upstream issue.

Perhaps an upstream issue for each driver?

Tele42 commented 8 years ago

While this is not a bug, rather it is a missing feature, I am tagging it this way for consistency.

InFerYes commented 7 years ago

I'm experiencing the same issues on the Intel graphics driver. The game launches and seems to hang, but if you wait it out it will eventually show the menu screen. When joining a server it's the same again and it will appear to hang. After waiting for what feels like forever it finally loads up and I'm able to play.

CPU: Intel Core i3-4010U CPU @ 1.7GHz (w/ Intel® HD Graphics 4400)
RAM: 7896MiB Disk: ST500LM000-SSHD-8GB (LVD4)

nightsky30 commented 6 years ago

@mightyiam @InFerYes It appears the shader cache is now available for the Mesa RadeonSI Gallium3D drivers (Not sure if enabled by default), and was recently added in Mesa 17.4-dev Git for Intel folks using i965 (definitely not enabled by default). Hopefully this will be enabled in Mesa 18.0.

Reference: https://www.phoronix.com/scan.php?page=article&item=intel-glsl-cache&num=1

kisak-valve commented 6 years ago

Enabling the on-disk shader cache for mesa/intel is currently in review: https://lists.freedesktop.org/archives/mesa-dev/2017-November/176052.html

tpruzina commented 6 years ago

Phoronix did benchmark few days ago (https://www.phoronix.com/scan.php?page=article&item=intel-glsl-cache&num=2), although there is no cs:go judging by dota2 improvements I wouldn't be holding my breathe for amazing improvements.