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

100% CPU load on 1 core with HRTF enabled

Open hitcher404 opened this issue 9 years ago • 23 comments

I'm getting 100% load on a single core even in menus with HRTF Headphone option enabled. Can be seen in the options menu while monitoring load and switching from HRTF to 2 speakers, 100% load back down to minimal.

Is this normal? I would assume the extra audio processing involved would create higher CPU usage, but maxing out a core all the time the game is running seems like an issue.

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:  Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
    CPU Family:  0x6
    CPU Model:  0x1e
    CPU Stepping:  0x5
    CPU Type:  0x0
    Speed:  2527 Mhz
    4 logical processors
    4 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Unsupported
    AVX:  Unsupported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported
    
Network Information:
    Network Speed:  
    
Operating System Version:
    "Fedora release 24 (Twenty Four)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.8.10-200.fc24.x86_64
    X Server Vendor:  Fedora Project
    X Server Release:  11804000
    X Window Manager:  GNOME Shell
    Steam Runtime Version:  steam-runtime-beta-release_2016-09-02
    
Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 780/PCIe/SSE2

    Driver Version:  4.5.0 NVIDIA 367.57
    OpenGL Version: 4.5
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 144 Hz
    VendorID:  0x10de
    DeviceID:  0x1004
    Revision Not Detected
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3286 x 1080
    Primary Display Size: 20.91" x 11.73"  (23.94" diag)
                                            53.1cm x 29.8cm  (60.8cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 3072 MB
    Supported MSAA Modes:  2x 4x 8x 16x 
    
Sound card:
    Audio device: Realtek ALC889
    
Memory:
    RAM:  7943 Mb
    
Miscellaneous:
    UI Language:  English
    LANG:  en_GB.UTF-8
    Microphone:  Not set
    Steam Controller Cable and Base:  Not set
    Total Hard Disk Space Available:  23463 Mb
    Largest Free Hard Disk Block:  4768 Mb
    VR Headset: None detected
    
Recent Failure Reports:

hitcher404 avatar Dec 08 '16 06:12 hitcher404

Can confirm the issue.

Steam system info: https://gist.github.com/OlliC/4cfd76dfa291bb19f55f

OlliC avatar Dec 08 '16 15:12 OlliC

Can confirm too. Unplayable with HRTF enabled.

mbarszcz avatar Dec 08 '16 18:12 mbarszcz

For me its not unplayable. Did not make any difference FPS wise. But i have 4 cores (8 virtual).

Another thing i have noticed is it does not go back to normal if you change the setting from Headphone with HRTF to Headphone directly. Only when you first change to 2 Speakers and then to Headphone the 100% load on 1 core is gone.

OlliC avatar Dec 09 '16 14:12 OlliC

Sounds like that old bug when selecting "headphone" didn't do anything and after restart it was "speakers" again. Don't remember if it got fixed but I thought it did (it reseted after setting it in console as well IIRC).

By the way people on reddit suggested not using "-threads 4" or disabling multicore rendering. No idea if any of these fix anything, I would imagine that it's running busy loop in separate HRTF thread.

tpruzina avatar Dec 12 '16 03:12 tpruzina

Is the 100% usage on 1 core related to this error message that spams in console when HRTF is enabled?: "HRTF: Not enough data, wanted X, got Y"

lowlyocean avatar Dec 16 '16 12:12 lowlyocean

@radical-equanimity No, I don't think so. I get 100% CPU usage on one core with HTRF in the menus and none of those messages in the console.

mlandalv avatar Dec 22 '16 17:12 mlandalv

Is there anything that can help me debug why I'm getting those messages if it's not related to 100% cpu usage? Did you check for those messages while you were in a game? Are there any snd_ commands that might cause those messages to appear for some users?

Edit: I had developer command enabled which causes the messages I've described above. Otherwise, they don't flood console

lowlyocean avatar Dec 23 '16 12:12 lowlyocean

Same issue here with i7-4770k + GTX 970, tested with nvidia drivers 367.57 and 370.28. I also tested with and without intel's HDA proprietary drivers (in additional drivers), made no difference. Game seems to run fine (likely due to having 4 (8 virtual) cores), but my computer fans go mad and CPU temps skyrocket.

Here's a graph of CPU usage enabling HRTF Enabling HRTF

Here's a graph showing 100% CPU usage swapping cores CPU usage swapping cores I didn't do anything in CS:GO, just does it every now and then. Interestingly the usage seems to add up to 100% at all times and is perfectly symmetrical - note the bump is mirrored as red nears 100% itself.

Hopefully this will help you fix the bug, please ask if you want me to test other configurations or provide more info.

domdomegg avatar Jan 10 '17 18:01 domdomegg

I can confirm this problem. It really doesn't make sense to use 100% all the time, no matter how cool HRTF is. Disabling helped with FPS, but it made the game so smooth and less input laggy again.

Blodoffer avatar Feb 02 '17 15:02 Blodoffer

Argh come on Valve - HRTF is so good to have and puts you at a competitive disadvantage if others are able to use it but SteamOS players aren't :(

domdomegg avatar Feb 02 '17 17:02 domdomegg

Interestingly enough, I seem to have this issue as well. I just haven't noticed the performance hit as much as other people.

i7 6700 so 4 cores with 8 virtual -- same as @OlliC.

Toqozz avatar Feb 04 '17 02:02 Toqozz

While it doesn't affect fps that much - or at all, HRTF does make mouse feel like it has a ton of input latency and that's a huge issue if you're sensitive to those things.

Blodoffer avatar Feb 04 '17 06:02 Blodoffer

I have the same issue as here fresh install ubuntu I selected headphones and restarted this issue was gone

ghost avatar Feb 07 '17 19:02 ghost

Is there anything we can do to help resolve this? Or is there any update on this issue? @Tele42 ?

mlandalv avatar Feb 08 '17 10:02 mlandalv

This is fixed in the 3/15 update.

davidw-valve avatar Mar 16 '17 00:03 davidw-valve

I have a very similar issue. A lot of micro stutter when I enable HRTF on Linux. Should I create a separate issue for that? The difference is that I do not see any of the cores spike when I enable it.

jvik avatar Mar 20 '17 22:03 jvik

Hello @jvik, yes, please open a new issue report.

kisak-valve avatar Mar 20 '17 22:03 kisak-valve

This appears to still be an issue in the Windows version. Support ticket submitted.

naisanza avatar Jan 14 '18 18:01 naisanza

@naisanza This is exclusively mac/linux issue tracker, no idea where you should report this but it isn't here.

tpruzina avatar Jan 19 '18 23:01 tpruzina

@tpruzina via their support portal

naisanza avatar Jan 20 '18 21:01 naisanza