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

Severe framerate drop randomly during gameplay. Must restart or change resolution to correct.

Open StephenTurley opened this issue 12 years ago • 47 comments

Game runs at about 200 fps with everything maxed out and the resolution at 1080p. After about 45 minutes of playing the framerate will drop to 12 -15 fps. Restarting the game fixes the issue. At first I thought I might be over heating but I check the temp of my GPU and CPU but they are both <60 degrees C. Alt tabbing, and I also notice lag in Ubuntu when this happens. Normally Ubuntu runs smooth as butter with CS:GO running.

Processor Information: Vendor: GenuineIntel CPU Family: 0x6 CPU Model: 0x3c CPU Stepping: 0x3 CPU Type: 0x0 Speed: 4001 Mhz 8 logical processors 4 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: Ubuntu 14.04.1 LTS (64 bit) Kernel Name: Linux Kernel Version: 3.13.0-36-generic X Server Vendor: The X.Org Foundation X Server Release: 11501000 X Window Manager: Compiz Steam Runtime Version: steam-runtime-release_2014-08-20

Video Card: Driver: NVIDIA Corporation GeForce GTX 770/PCIe/SSE2

Driver Version:  4.4.0 NVIDIA 343.22
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0x1184
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 20.51" x 11.54"  (23.50" diag)
                                        52.1cm x 29.3cm  (59.7cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 2048 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: Realtek ALC1150

Memory: RAM: 15990 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 3755454 Mb Largest Free Hard Disk Block: 3263169 Mb

Installed software:

Recent Failure Reports: Wed Sep 24 19:19:20 2014 GMT: file ''/tmp/dumps/crash_20140924151820_2.dmp'', upload yes: ''CrashID=bp-cca75e24-9345-41d5-9f36-4248e2140924'' Fri Sep 26 01:47:09 2014 GMT: file ''/tmp/dumps/crash_20140925214659_5.dmp'', upload yes: ''CrashID=bp-dfd5b98f-6dc9-4b99-929c-ce7182140925'' Sat Sep 27 17:33:56 2014 GMT: file ''/tmp/dumps/crash_20140927133345_5.dmp'', upload yes: ''CrashID=bp-99926832-a45c-437f-bb53-5fa3f2140927'' Sat Sep 27 17:35:33 2014 GMT: file ''/tmp/dumps/assert_20140927133513_1.dmp'', upload yes: ''CrashID=bp-a6adca3c-0609-48f3-b402-49ced2140927'' Sat Sep 27 17:36:32 2014 GMT: file ''/tmp/dumps/crash_20140927132734_2.dmp'', upload no: ''Couldn't connect to server''

StephenTurley avatar Sep 27 '14 23:09 StephenTurley

I've been having a similar problem as well. After playing for a decent amount of time, the game slows the a crawl, dropping from ~200 fps to ~10, making it unplayable. Closing and relaunching the game resolves the issue.

Processor Information: Vendor: AuthenticAMD CPU Family: 0x15 CPU Model: 0x2 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 4000 Mhz 8 logical processors 8 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: "Fedora release 20 (Heisenbug)" (64 bit) Kernel Name: Linux Kernel Version: 3.16.3-200.fc20.x86_64 X Server Vendor: Fedora Project X Server Release: 11404000 X Window Manager: GNOME Shell Steam Runtime Version: steam-runtime-release_2014-08-20

Video Card: Driver: NVIDIA Corporation GeForce GTX 770/PCIe/SSE2

Driver Version:  4.4.0 NVIDIA 343.22
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0x1184
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 18.90" x 10.63"  (21.65" diag)
                                        48.0cm x 27.0cm  (55.0cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 2048 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: Realtek ALC892

Memory: RAM: 16025 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 187112 Mb Largest Free Hard Disk Block: 16119 Mb

Installed software:

Recent Failure Reports:

JamesFigler avatar Sep 28 '14 00:09 JamesFigler

I had a similar issue, what I did was I downloaded the Nvidia driver from their website, rebooted Ubuntu & went into recovery mode, then I would go into root & then do the following command to mount the system: "mount -o remount,rw /; mount/dev/sda2 /home", the "sda2" might differ. Type in "df -h" into terminal (Alt + Ctrl + T), then at the top will be the one you need. In my case sda2. When you've mounted it, you need to go into your dir where you have your nvidia driver downloader, so probably /home/$USER/Downloads/nvidia......run

Execute it by doing this: ./NVI* After this is done, reboot your computer by typing in "reboot", or just hard reboot it. Then everything will be smoother!

Gasur avatar Sep 29 '14 16:09 Gasur

Both reports above are running the latest Nvidia driver.

StephenTurley avatar Sep 29 '14 16:09 StephenTurley

@ZeroDivided714 Woops, sorry - my mistake. Thank you for not bashing me though.

Gasur avatar Sep 30 '14 11:09 Gasur

This seems to be fixed for me. jrfig626, if it is working for you I think we can close this.

StephenTurley avatar Oct 03 '14 01:10 StephenTurley

I have a similar problem. The game goes from 200-300 fps to 50, but it feels like 10 fps, after a totally random amount of time.

A temporary workaround is to change resolution (set another resolution and then return to the original).

Could someone confirm if the change resolution workaround works for someone else besides me?

My system information

leinardi avatar Oct 03 '14 12:10 leinardi

Looks like we are all using the same driver. Is there a way to produce a dump of GPU memory when the problem happens? It could offer a clue.

StephenTurley avatar Oct 03 '14 13:10 StephenTurley

For Nvidia users, you can type in: "nvidia-smi" - then it'll give a full dump of memory, usage etc. Example: http://i.imgur.com/YpKT6Jv.png Edit: Running: "nvidia-smi -l 30" - refreshes it automatically every 30 seconds. If anyone prefer this, over having to do it manually at the time of happening.

Gasur avatar Oct 03 '14 15:10 Gasur

I too have this problem but my driver is 331.38.

I noticed the frame drops happen almost only when the scoreboard is open during the round change, but not always.

Processor Information:
    Vendor:  GenuineIntel
    CPU Family:  0x6
    CPU Model:  0x3a
    CPU Stepping:  0x9
    CPU Type:  0x0
    Speed:  3501 Mhz
    8 logical processors
    4 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Ubuntu 14.04.1 LTS (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.13.0-36-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11501000
    X Window Manager:  Compiz
    Steam Runtime Version:  steam-runtime-release_2014-08-20

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 680/PCIe/SSE2

    Driver Version:  4.4.0 NVIDIA 331.38
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1180
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 20.91" x 11.77"  (23.98" diag)
                                            53.1cm x 29.9cm  (60.9cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC892

Memory:
    RAM:  32127 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  34323 Mb
    Largest Free Hard Disk Block:  3589 Mb

Installed software:

Recent Failure Reports:

gxtaillon avatar Oct 06 '14 00:10 gxtaillon

@gxtaillon Update your drives. I had the same driver as you & it caused me to only have 30-50 fps. I have described it (very roughly) here.

Gasur avatar Oct 06 '14 12:10 Gasur

I tried both nvidia-340 and nvidia-343 from ppa:xorg-edgers/ppa and I still get the frame drops, from about 160 to 15. Resetting the resolution still works. I noticed that my frame drops only happen after respawn.

Strangely enough, now the game ~~sometimes~~ often crashes at map change (deathmatch).

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 680/PCIe/SSE2

    Driver Version:  4.4.0 NVIDIA 343.22
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1180
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 20.91" x 11.77"  (23.98" diag)
                                            53.1cm x 29.9cm  (60.9cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

edit: I think there is some kind of pattern here. With the newest drivers (see above), the game regularly glitches out and frames start being rendered at a much lower rate. When this happens, switching resolution seems to correct the problem however, after this "reset", the game is very likely to crash at map change (after voting, before the loading screen).

edit2: Issues happen a lot less since I put a lower fps_max and cleaned my fans. Much lower temperatures too, my GPU was probably overheating. Check your temps with psensor it does a very good job.

edit3: Frame drops almost never happen now but the game crashes once every 3 or 4 games. No message, no particular event, just out of the blue, the process stops.

edit4: [November 4th] This is a screen shot of my psensor after the game glitched out. We can see that during the first 7 minutes, when the game is running normally, both CPUs and GPU are running at acceptable levels. After the 7th minute, the glitch happens. At this point CPU usage jumps by about 10-15% and both CPU & GPU temperatures start rising at an alarming speed (not pictured here but eventually the GPU will stabilize at 70 celsius, from ~50 at the start) indicating heavy usage. This was not provoked by another process, at 7:30 and 9:00 I minimized CSGO, temperatures start going down and CPU usage drops instantly both times.

gxtaillon avatar Oct 12 '14 22:10 gxtaillon

I experience the same problem. I am running gtx 285 with nvidia-340 drivers. For a few matches, the game runs smoothly with 60-100fps and suddenly it drops to 10fps. If i restart the game or change the resolution, the game again runs perfectly. In windows, i don't encounter any problem.

bharath1097 avatar Nov 05 '14 08:11 bharath1097

@bharath1097 Could you please give us the result from the Terminal commands: "nvidia-smi", "top" & "free -m" when the lag occurs please.

Gasur avatar Nov 05 '14 16:11 Gasur

@Gasur These are the outputs of the three commands when i encounter lag. http://pastebin.com/vf9mtTJY http://pastebin.com/KNAWvxf6 http://pastebin.com/rgNYZSJw

These are the outputs after i change the resolution down to 1600x900 and back up to 1920x1080. http://pastebin.com/TXAmScva http://pastebin.com/9h3GJbad http://pastebin.com/x9t96p8K

Seems like there is high cpu usage in the first case which got fixed by playing around with the resolutions.

bharath1097 avatar Nov 06 '14 05:11 bharath1097

Could you please type in "sudo lshw", this shows the full hardware of your computer. I suspect that the CPU is getting overloaded. What exactly are you doing when you play? Match making, DM etc? If MM, for example - check CPU usage whenever the environment is similar, such as in spawn in freeze time.

I can also see the GPU Memory is getting quite high. There's barely 100MB to spare. Was that "nvidia-smi" made right after the lag? If so, was the lag persistent after you took the picture as well (without restarting the game)?

I can also see by the second stack of your pictures, is that the GPU memory is even higher than before. This could be the culprit, but everything points towards the CPU.

Gasur avatar Nov 06 '14 14:11 Gasur

I am not doing anything during gaming. Immediately after i change resolutions the cpu usage is coming down.

I attached nvidia-smi both during the lag and immediately after the lag is fixed. There's no change in gpu memory usage when the lag gets fixed. The lag was not persistent after i change resolutions. It comes back again after i play a few matches and then i play with the resolution again and the lag goes away.

bharath1097 avatar Nov 06 '14 15:11 bharath1097

My hardware info http://pastebin.com/x6HkBkKe

bharath1097 avatar Nov 06 '14 15:11 bharath1097

CS:GO is a very CPU intensive program. Many here on GitHub has pointed out that there's some leaks somewhere (I, myself experience crashes if I play for more than an hour at a time). I'm afraid that you're out of luck, seems like all you can do is either restart, or change resolution. Until Valve fixes this (which will probably take many many months).

Gasur avatar Nov 06 '14 15:11 Gasur

I have had this too, drops to 25 fps making game unplayable and you're forced to restart the game. It's only happened a couple of times in gameplay but seems to happen much more frequently when watching GOTV for some reason.

ghost avatar Dec 14 '14 23:12 ghost

I used to often have the same problem, but it hasn't happened even once since I disabled multicore rendering (which I did months ago). Some time later I played Portal 2 and had the same problem. I also disabled multicore rendering and it never occured again. It may only solve the symptoms in my case, but it is worth trying.

simonbru avatar Jan 02 '15 15:01 simonbru