ValveSoftware / csgo-osx-linux

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

[Linux] Large FPS drops when opening scoreboard in game, operation journals and cases in main menu #195

Closed martinfischer closed 8 years ago

martinfischer commented 9 years ago

Like the title says: I get large FPS drops when opening scoreboard in game, operation journals and cases in main menu:

In game FPS is usually 150-300, when hitting TAB it goes down to ~10-20 FPS.

Main Menu FPS is ~350, then goes down to ~10-20 FPS when opening a operation journal and to ~10-20 FPS when in the "open case" view.

(I have FPS capped at 350.)

My system information: https://gist.github.com/martinfischer/ee8e2be931da11e7d9cc#file-gistfile1-txt

Penaqua commented 9 years ago

Hello, i found a solution that helped me with scoreboard chops (might be related to operation journal drops aswell)

Explained in another ticket; https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/292

Won't promise anything, but doesn't hurt to try!

ragnos commented 9 years ago

It worked on a first map of Deathmatch, still fps drops on scoreboard but it worked. On the second map though it went crazy again, dropping the permanent framerate from ~250 to ~50....

sandikata commented 9 years ago

so some workground..

main problems in linux steam is 2

1 input lag 2 sound lag

if sound lag is possible to be reduced game will come a bit smooth. input lag..

now i have better expiriance and a little bit smooth with vsync tripple buffer enabled, that increase a little bit input lag but decrease frame drops and game is a bit smooth...

ramma commented 9 years ago

The operation journal issue is still present in Operation Bloodhound, potentially even worse with audio clips now. It can take up to a minute well over a minute (just had to wait 4+ minutes) for the "Play Mission" button to appear for me, and audio+video while waiting is extremely choppy.

Keylost commented 8 years ago

same problem. driver: nvidia 352 ubuntu: 15.04 64 bit AMD FX(tm)-8320 Eight-Core Processor × 8 GeForce GTX 750 Ti

SoftwareSchlosser commented 8 years ago

I'm pretty sure this is somehow I/O related. See: [https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/292#issuecomment-135445732] For me it also lags when the final scoreboard is shown after a match (around ~5 fps with an i7 Haswell and GTX 960!). Also the sound gets choppy. Please Valve fix that!

sandikata commented 8 years ago

but how ? why should be I/O when i use same storage on Winshit ?

tgbugs commented 8 years ago

@sandikata possibly because NTFS runs through FUSE (file system in user space) instead of directly in the kernel. Would be interesting if someone could test another FUSE file system to see whether they could repro the issue.

SoftwareSchlosser commented 8 years ago

OK its definitely IO related and tgbugs hint about the FUSE FS seems to be correct. I moved CS:GO from my NTFS to an ext4 partition and now the game runs perfectly smooth with scoreboard opened and at the end of a match. Also The menu is smoother - the cursor used to be a bit laggy before. Thanks to all contributors!

spychodelics commented 8 years ago

No NTFS Partition here, everything on an EXT4 drive. Still the same fps drops at the end of the game.

SoftwareSchlosser commented 8 years ago

What does your fstab (mount options) look like?

sandikata commented 8 years ago

@SoftwareSchlosser if you are right then why i have massive framedrop and input lag on ext4 ?

UUID=d2a04f5a-186c-4f7f-b7c9-f6aa499e29da /home ext4 noatime,nodiratime,nobarrier,data=writeback,nodelalloc 0 0

with tunned fs for maximum speed..

SoftwareSchlosser commented 8 years ago

You're right, there seems to be another detail I've missed. In my fstab the mount options are just set to "defaults". Maybe it has something to do with that?

sandikata commented 8 years ago

so i try a lot of thinks with filesystem. but thats not the real issue..

sandikata commented 8 years ago

@tgbugs so i mean i using one and same HDD on both operating systems but seperate partitions.. Western Digital Red 1TB... its terrible HDD but..

tgbugs commented 8 years ago

@sandikata based on the experience of a couple people in this thread if you are running the game off an ext4 file system using the kernel driver then the problem (lag when scoreboard is up) usually goes away. Why this is not the case for you I'm not sure. Is the NTFS partition mounted on the same drive while playing? You might try unmounting the NTFS partition and then playing, though I doubt that will fix the problem. Otherwise it seems that you may have a different problem.

ghost commented 8 years ago

Well like I've said earlier, I'm also running CS GO from an ext4 partition and have the same issues. The game has not been moved from an NTFS partition or similar, I installed it directly to the ext4 partition.

The scoreboard is starting to behave a bit better for me I think, but my FPS still drops to around 8 when the post-match scoreboard opens.

sandikata commented 8 years ago

@tgbugs as i told you i using ext4 on linux as /home partition not NTFS. And problem isn't gone.. I have high fps but with hard framedrops...

sandikata commented 8 years ago

and everything is installed over ext4 partition.

tgbugs commented 8 years ago

I'll give my cs:go install a whirl again to see if I can repro the issue you all are experiencing. If not, I'm at the end of my usefulness here. One other thought that comes to mind. People who were able to fix the issue by moving from ntfs -> ext4 probably had steam installed on a different drive or partition than cs:go. I don't know whether this is related but I'm just brainstorming here. Might be worth running iotop or something like that to see if something obvious happens when you open the scoreboard.

sandikata commented 8 years ago

so i dont migrate i just make fresh install and download any games, they arent migrated from ntfs installation..

sandikata commented 8 years ago

with iotop i cannot see anything. showing just 0% because i have to minimize game. And since yesterday i don't know what was changed but... Now game is unplayable.. In main menu i have massive frame drop and after 2 minutes fps is 15 and cannot move on menus.. Mouse is freeze . I test on 2 systems Gentoo and Ubuntu

sandikata commented 8 years ago

and result in scoreboard is unchanged

http://images.akamai.steamusercontent.com/ugc/394426147780479626/9902C2C83C9A22ED7F4A6C8E8D5D664A6CF3C860/

sandikata commented 8 years ago

@tgbugs when you move from ntfs partition did you install again game? Because in my case i cannot start it because from ntfs partition i didnt have linux binaries and now downloading 5.5GB of game... If this is not right can you tell me what i miss?

sandikata commented 8 years ago

so new PS framedrop is gone when copy installation from NTFS. But any ideas for input lag ? @tgbugs you are with AMD GPU.. do you know any tweaks ?

tgbugs commented 8 years ago

@sandikata unfortunately on nvidia here and nothing beyond the standard make sure mouse accel is off and raw input is off and try windowed vs fullscreen (all of which I assume you have already messed with extensively). A review of 'csgo linux input lag' threads suggests that the issue might be with vsync.

In case I missed something, I had the linux binaries on an ntfs partition and then copied the files to an ext4 partition and pointed steam to the new location, but it sounds like that is what you did.

theGeekPirate commented 8 years ago

The scoreboard issue seems to be resolved as of today's update, for myself at least.

ghost commented 8 years ago

Confirming. Today's patch fixed this issue for me.

JoshuaMurphynz commented 8 years ago

Awesome! Feel free to close this On 9 Jan 2016 08:41, "gycklarn" notifications@github.com wrote:

Confirming. Today's patch fixed this issue for me.

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/195#issuecomment-170103622 .

Tele42 commented 8 years ago

Closing as this appears to have been resolved. If anybody is still experiencing this issue, please open a new issue report.

sandikata commented 5 years ago

Still not fixed.

ml- commented 5 years ago

@sandikata You might wanna open a new issue about this.

This Issue was about the Flash that was used a long time ago, which caused the fps drop. Your problem seems to be recent and not related.

sandikata commented 5 years ago

I don't think so, its the same issue, it may work for somebody, and not to work for couples.

ml- commented 5 years ago

@sandikata This is clearly NOT the same issue.

https://github.com/ValveSoftware/csgo-osx-linux/issues/195#issuecomment-63761953

This is about the Flash that is long gone.

sandikata commented 5 years ago

How you're sure that this is fixed and its not the same? When open scoreboard i have framedrops. Its absolutely same.

ml- commented 5 years ago

@sandikata Maybe it's a similar problem. But in this case it was caused by a Flash file that was used in a very old version. This issue is from 2014.

If you are experiencing fps drops when opening the Scoreboard (TAB), then this is caused by something different and you should open a new issue about this.

When doing so, please provide enough information about your system so people can help solving your problem.

You can find information on how to properly report an issue here: https://github.com/ValveSoftware/csgo-osx-linux#reporting-issues

sandikata commented 5 years ago

yeah its releated to flash, and we still have flash in csgo folder, so its releated. PS: If you can't help, please don't mess with me.

ml- commented 5 years ago

@sandikata If you really insist, that this is the very same issue, then at least provide the required informations about your system.

sandikata commented 5 years ago

take a look it my comments from 3 - 4 years ago, i've already provided it. But i'll do it again.

System: Host: GA-990-FXA-UD3-FX8320 Kernel: 4.18.4-1-xanmod3 x86_64 bits: 64 compiler: gcc v: 8.2.0 Desktop: Cinnamon 3.8.8 wm: muffin dm: lightdm 1.26.0 Distro: Arch Linux Machine: Type: Desktop Mobo: Gigabyte model: 990FXA-UD3 serial: N/A UEFI: American Megatrends v: F4x date: 04/01/2016 Memory: Array-1: capacity: 32 GiB note: check slots: 4 EC: None max module size: 4 GiB note: est. Device-1: Node0_Dimm0 size: 4 GiB info: single-bank speed: 800 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) bus width: 64 bits total: 64 bits manufacturer: A-DATA part-no: N/A serial: N/A Device-2: Node0_Dimm1 size: 4 GiB info: single-bank speed: 800 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) bus width: 64 bits total: 64 bits manufacturer: A-DATA part-no: N/A serial: N/A Device-3: Node0_Dimm2 size: 4 GiB info: single-bank speed: 800 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) bus width: 64 bits total: 64 bits manufacturer: A-DATA part-no: AM2U16BC4P2-B serial: 54D50100 Device-4: Node0_Dimm3 size: 4 GiB info: single-bank speed: 800 MT/s type: DDR3 detail: synchronous unbuffered (unregistered) bus width: 64 bits total: 64 bits manufacturer: A-DATA part-no: N/A serial: N/A CPU: Topology: 8-Core model: AMD FX-8320 bits: 64 type: MCP arch: Bulldozer L2 cache: 2048 KiB bogomips: 67499 Speed: 4216 MHz min/max: 1400/4200 MHz boost: enabled Core speeds (MHz): 1: 4217 2: 4209 3: 4216 4: 4210 5: 4218 6: 4209 7: 4217 8: 4202 Flags: 3dnowprefetch abm aes aperfmperf apic arat avx bmi1 clflush cmov cmp_legacy constant_tsc cpb cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fma4 fpu fxsr fxsr_opt ht hw_pstate ibs lahf_lm lbrv lm lwp mca mce misalignsse mmx mmxext monitor msr mtrr nodeid_msr nonstop_tsc nopl npt nrip_save nx osvw pae pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_nb pfthreshold pge pni popcnt pse pse36 rdtscp rep_good sep skinit ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 svm svm_lock syscall tbm tce topoext tsc tsc_scale vmcb_clean vme vmmcall wdt xop xsave Graphics: Card-1: Advanced Micro Devices [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Edition] vendor: Hightech Information System driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:6818 Display: server: X.Org 1.20.1 driver: amdgpu resolution: 1680x1050~60Hz OpenGL: renderer: AMD Radeon HD 7800 Series (PITCAIRN DRM 3.26.0 4.18.4-1-xanmod3 LLVM 8.0.0) v: 4.5 Mesa 18.3.0-devel (git-1281608849) compat-v: 4.4 direct render: Yes Audio: Card-1: AMD Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] vendor: Hightech Information System driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 1002:aab0 Card-2: C-Media CMI8788 [Oxygen HD Audio] vendor: ASUSTeK Virtuoso 66 driver: snd_virtuoso v: kernel bus ID: 04:06.0 chip ID: 13f6:8788 Card-3: C-Media USB Audio Device type: USB driver: snd-usb-audio bus ID: 4:2 chip ID: 0d8c:0012 Sound Server: ALSA v: k4.18.4-1-xanmod3 Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 v: 2.3LK-NAPI port: b000 bus ID: 05:00 chip ID: 10ec:8168 IF: enp5s0 state: up speed: 100 Mbps duplex: full mac:
IP v4: 192.168.1.100/24 type: dynamic scope: global broadcast: 192.168.1.255 IP v6: fdc3:714f:7192:0:76d4:35ff:fe04:7f00/64 type: mngtmpaddr noprefixroute scope: global IP v6: fdc3:714f:7192::125/128 type: noprefixroute scope: global IP v6: fdc3:714f:7192:0:f69e:f9aa:5583:dda8/64 type: noprefixroute scope: global IP v6: fe80::76d4:35ff:fe04:7f00/64 type: noprefixroute scope: link IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac:
IP v4: 172.16.1.1/24 type: dynamic scope: global broadcast: 172.16.1.255 IP v6: fe80::250:56ff:fec0:1/64 scope: link IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac:
IP v4: 192.168.198.1/24 type: dynamic scope: global broadcast: 192.168.198.255 IP v6: fe80::250:56ff:fec0:8/64 scope: link WAN IP: No WAN IP data found. Connected to the web? SSL issues? Drives: Local Storage: total: 1.47 TiB used: 694.61 GiB (46.0%) ID-1: /dev/sda model: Radeon R7 size: 111.79 GiB speed: 6.0 Gb/s serial: A22MD061518000158 rev: 1.01 scheme: GPT ID-2: /dev/sdb vendor: Western Digital model: WD10EFRX-68PJCN0 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm serial: WD-WCC4JFAAN4L3 rev: 0A82 temp: 41 C scheme: GPT ID-3: /dev/sdc vendor: Seagate model: ST3500418AS size: 465.76 GiB speed: 3.0 Gb/s rotation: 7200 rpm serial: 9VMS8B2E rev: CC49 temp: 43 C scheme: GPT Message: No Optical or Floppy data was found. RAID: Message: No RAID data was found. Partition: ID-1: / size: 23.99 GiB used: 14.93 GiB (62.2%) fs: btrfs dev: /dev/sda3 label: N/A uuid: 4a1085ad-006b-49ec-97c3-a12d4a560f6c ID-2: /boot/efi size: 98.4 MiB used: 455 KiB (0.5%) fs: vfat dev: /dev/sda1 label: EFI uuid: 0BF6-523D ID-3: /home size: 759.28 GiB used: 679.67 GiB (89.5%) fs: ext4 dev: /dev/sdb1 label: HOME uuid: d2a04f5a-186c-4f7f-b7c9-f6aa499e29da Unmounted: ID-1: /dev/sda2 size: 200.0 MiB fs: ext4 label: N/A uuid: 6dec1471-0546-4905-a80e-6ba3ab9ad078 ID-2: /dev/sda4 size: 23.99 GiB fs: btrfs label: SolydX 9 64-bit uuid: bfbfc6e7-95b9-4766-b57a-f72ffc3c0876 ID-3: /dev/sda5 size: 63.51 GiB fs: ntfs label: N/A uuid: 5A4B1AAF4919E67C ID-4: /dev/sdb2 size: 120.00 GiB fs: ntfs label: N/A uuid: 42AF3A2E03B8AFCC ID-5: /dev/sdb3 size: 40.00 GiB fs: btrfs label: N/A uuid: 0d61c30c-efa3-448a-b9ac-3ddf58f24b2f ID-6: /dev/sdc1 size: 465.64 GiB fs: ntfs label: NTFS uuid: C2EF59DA14E4FC83 USB: Hub: 1:1 usb: 2.0 type: Full speed (or root) hub chip ID: 1d6b:0002 Hub: 2:1 usb: 2.0 type: Full speed (or root) hub chip ID: 1d6b:0002 Device-1: Logitech bus ID: 2:3 usb: 2.0 type: Video chip ID: 046d:0817 Hub: 3:1 usb: 2.0 type: Full speed (or root) hub chip ID: 1d6b:0002 Hub: 4:1 usb: 1.1 type: Full speed (or root) hub chip ID: 1d6b:0001 Device-2: C-Media bus ID: 4:2 usb: 1.1 type: Audio chip ID: 0d8c:0012 Device-3: Sunplus Innovation Optical Mouse bus ID: 4:3 usb: 2.0 type: Mouse chip ID: 1bcf:0005 Device-4: MosArt bus ID: 4:4 usb: 1.1 type: Keyboard chip ID: 062a:5918 Hub: 5:1 usb: 1.1 type: Full speed (or root) hub chip ID: 1d6b:0001 Device-5: SiGma Micro bus ID: 5:2 usb: 1.1 type: Keyboard chip ID: 1c4f:0040 Hub: 6:1 usb: 1.1 type: Full speed (or root) hub chip ID: 1d6b:0001 Hub: 7:1 usb: 1.1 type: Full speed (or root) hub chip ID: 1d6b:0001 Hub: 8:1 usb: 2.0 type: Full speed (or root) hub chip ID: 1d6b:0002 Hub: 8:2 usb: 2.1 type: VIA Labs Hub chip ID: 2109:3431 Hub: 9:1 usb: 3.0 type: Full speed (or root) hub chip ID: 1d6b:0003 Sensors: System Temperatures: cpu: 45.0 C mobo: 41.0 C gpu: amdgpu temp: 55 C Fan Speeds (RPM): cpu: 960 fan-1: 1234 fan-3: 0 fan-4: 0 fan-5: 0 gpu: amdgpu fan: 0 Voltages: 12v: N/A 5v: N/A 3.3v: N/A vbat: 3.10 Info: Processes: 304 Uptime: 17h 41m Memory: 15.64 GiB used: 5.01 GiB (32.0%) Init: systemd v: 239 target: graphical.target Compilers: gcc: 8.2.0 clang: 8.0.0 Shell: zsh (sudo) v: 5.5.1 running in: guake inxi: 3.0.20

tgbugs commented 5 years ago

These are likely two issues that manifest in the same way. The flash issue may be fixed, but I'm betting that the NTFS one is not fixed. I don't have CS:GO installed at the moment, so I can't verify, but there was definitely a major framerate drop that occurred reproducibly when opening the scoreboard if CS:GO was installed on an NTFS partition. It might be fuse related, but since very few other file systems are run via fuse, it would be tough to tell the difference unless someone did explicit testing.

RobinJ1995 commented 5 years ago

@sandikata Just stop. The original issue was caused by Scaleform/Flash. If you still have a problem then it's a different one. It's solved for the rest of us. The developers have correctly identified and fixed the cause of the problem in most cases. The issue is now closed, meaning that the developers are no longer looking at this. As @Tele42 said, if you still have a problem, then open a new ticket as you are not experiencing the same problem (with the same root cause) as the rest of us were. By insisting that people "do not mess with you" you're only making a fool out of yourself and making it less likely that people will want to help you.

RobinJ1995 commented 5 years ago

@tgbugs NTFS on Linux is really more of a convenience thing do that you can properly access your files from a Windows installation. It's not really supposed to be used for storing applications/games that you wish to run on Linux I believe. Using NTFS on Linux is much slower than EXT4. Its lack of proper UNIX filesystem permissions and attributes causes all kinds of problems there as well. So I'd consider moving your games onto a properly supported partition type to be honest. If the read speeds from a certain filesystem are slow then I don't think there's much the developers can (or will care to) do about that :)

sandikata commented 5 years ago

Why you've decided its installed on ntfs ?! Learn how to read mount paths at begining. / is on BTRFS /home on ext4 and /home is used for steam.

sandikata commented 5 years ago

Yeah my HDD is probably the worst choice i ever made. Western Digital Red.. Maybe i could try something different moving game to SSD or else.