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

Panorama menu is so slow it makes it unusable

Open mcat95 opened this issue 8 years ago • 50 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/mcat95/74b38bfd029a1e454e169d8219473dec
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

What should happen: With my hardware, I expected the game to run a bit slower than without panorama, but it should be playable.

What did happen: The game gets stuck on the main screen and it re-renders very slowly, making navigating throught the menus virtually imposible.

When starting the game with the -panorama flag, the game starts after a few seconds, and when the main interface appears, nothing is clickable and my os keeps telling me that the game is not responding. When clicking a button or hovering on the right friends list, nothing happens until a few minutes later. It looks like everything re-renders every ~45 seconds, since that is when the fps meter updates. I have also noticed a high CPU usage (~200%), and a moderate and usual memory usage (53% of 8GB)

Steps for reproducing this issue:

  1. Add the -panorama flag to launch options
  2. Launch the game

Feel free to ask for any more information if that helps fixing the issue.

mcat95 avatar Jul 13 '18 23:07 mcat95

It even crashes for me.

xnjoorod avatar Jul 14 '18 11:07 xnjoorod

@mcat95 I trust you are running 1080p or more? I have a similar hardware setup and the Panorama main menu is almost unusable (0-7 FPS) at 1080p, but not too bad (50 to 240+ FPS) at lower res.

FPS is in the new main menu always very jittery on our old AMD cards, though. I tried a GTX-460 and it ran much better with the closed-source driver.

I also found that by setting "fps_max_menu" low enough -about 1/4 of unstable fps- the jitter stops.

henrym11106 avatar Jul 30 '18 13:07 henrym11106

A bit of experimentation shows that launching the game at 1080p (native) results in terrible menu frame rate and almost no GPU utilization (!?), while launching at a lower in-game res and than changing to 1080p results in a very jittery but usable frame rate and moderate GPU usage.

In both cases, a single CPU thread is always maxed out while my other 3 cores are around 40%, though CPU activity is more erratic in the 1080p launch.

henrym11106 avatar Jul 31 '18 04:07 henrym11106

Single maxed out thread sounds related to issue #1736

lionblaze55 avatar Jul 31 '18 15:07 lionblaze55

Not sure if this is relevant but during 100% CPU usage, I see a ton of system calls with strace: screenshot from 2018-08-16 20-51-33

travcunn avatar Aug 17 '18 00:08 travcunn

I just found that the default 1080p background video (nuke.webm) is the cause of the performance issue.

there are three video files in Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/videos -nuke540p.webm, nuke720p.webm and the 1080p version just called "nuke.webm"

the 1080p version causes the game to become unresponsive. Normally, the only way to load it is to launch the game at 1080p or higher. launching at 720p and then changing resolution in-game does not load a new video file, and does not result in a loss of responsiveness.

deleting all files in this folder results in a black background and a fast and virtually stutter-free menu frame rate. 75 FPS at 1080p, 145-150 FPS 720p, 220-ish at 800x600.

replacing the files with these ones from James Bardolph results in a low 30-40 FPS, but it is usable at 1080p.

replacing "nuke.webm" with a 640x360, 30FPS, 66MB .webm I have lying around results in that video playing at seemingly 25FPS and menu FPS running at a jittery 100-150 FPS at 1080p. reducing resolution after launching increases FPS but it remains jittery when not limited.

one CPU core is always maxed regardless, even without any webm files loaded.

henrym11106 avatar Aug 23 '18 09:08 henrym11106

After more experimentation, I'd say that video format could be an issue in this case. VP8 & VP9 do not appear to have have proper hardware decoding support under Radeon / Mesa right now.

using a 1080p webm video as a source, I rendered it in a few resolutions and bit rates. lower resolution video works (albeit with jitter) in the VP9 codec, 1080p always grinds to a halt.

Edit: interestingly, h264 coded .mkv files work about the same as the VP9 .webm files.

henrym11106 avatar Aug 24 '18 03:08 henrym11106

@henrym11106 This is what I initially suspected a few days ago when I saw this thread. Using the same Distribution as the original poster, however, I can't reproduce the issue. Quite the opposite actually.

I saw surprised how smooth the Panorama experience was after switching, considering I'm playing on a Laptop (Dell XPS 13 9350) without a dedicated GPU. https://ark.intel.com/products/91163/

This might also be the reason why I don't experience this issue, due to excellent hardware decoding. Maybe VALVE will make a test run with a h264 video for Linux users, since it has excellent support on almost all systems.

ml- avatar Aug 24 '18 07:08 ml-

I just tested with my integrated HD4600 (Haswell) graphics. it runs at a choppy, jittery 30-ish fps at 1080p with the default video and with the custom ones. no background video results in 25 FPS, with cyclic surges/spikes.

Haswell might be the last iGPU without the right decode support. it does at least run, though. I also observed issue #1741 in-game on the hd4600 iGPU, though it is less pronounced. weird to me that it's 2D elements that are proving so problematic on linux.

henrym11106 avatar Aug 26 '18 16:08 henrym11106

I upgraded my graphics card to a RX570 (Running with the amdgpu driver) and can no longer reproduce the issue, so I won't be able to provide more information about the issue. However, since I was not the only one having this problem, I will leave the issue open.

mcat95 avatar Aug 26 '18 20:08 mcat95

@mcat95 It seems that this issue has a workaround as of the latest update. the game now loads a lower resolution background video on low-end hardware. menu now runs at 100-200+ at 1080p on an AMD HD 5770. still jittery, but it's fast at least. I have a newer GPU on the way, will be interesting to see it the jitter goes away.

henrym11106 avatar Aug 30 '18 23:08 henrym11106

Is anyone seeing crippling slow main menu performance since the 2018-08-29 CS:GO update?

kisak-valve avatar Aug 30 '18 23:08 kisak-valve

The change mostly works, launching the game in 1080p and all medium graphics settings or lower results in a responsive interface. BUT I'm pretty sure the settings are all highest by default. launching in 1080p and max graphics settings still causes the slowdown on my AMD HD5770 under Linux, and the game could therefore launch in an unresponsive state for some first-time players.

henrym11106 avatar Aug 31 '18 08:08 henrym11106

Using medium settings at 1080p seems to work ok, but as @henrym11106 pointed out the game defaults to the highest settings, which still causes terrible menu performance. I am running on a 5870.

matte3560 avatar Aug 31 '18 19:08 matte3560

I now have a GCN-3 based AMD R9 380, and the panorama performance issues do not appear to be present with this GPU.

More evidence that it's limited to Terascale based hardware + open Linux drivers.

henrym11106 avatar Sep 04 '18 19:09 henrym11106

Just want to confirm that the game currently fails to launch under Linux and Terascale 2 GPU (Ubuntu 18.04 and AMD HD5750) due to high default graphics settings when launching for the first time.

game only launched after manually changing video config file to set a lower resolution.

henrym11106 avatar Oct 15 '18 06:10 henrym11106

@henrym11106 changing the video files doesn't work for me. i have a 7640g terascale 3 gpu and the game runs smoothly on windows but the menu is extremely slow on linux

xCuri0 avatar Oct 22 '18 05:10 xCuri0

I'm also using a Radeon HD 5700-series GPU and I'm getting the same issue, although I don't recall having the issue before the background got updated to cbble, and I'm also getting the same issue with the acknowledge.webm. Replacing the video files with the ones henrym11106 sent fixed it for me.

Rynoxx avatar Nov 02 '18 22:11 Rynoxx

@Rynoxx yes it video player (decoder) problem, need just replace panorama videos.

blogdron avatar Nov 02 '18 23:11 blogdron

After the last update, the problem with the lagging interface disappeared, the panorama works fine.

blogdron avatar Nov 06 '18 05:11 blogdron