ValveSoftware / csgo-osx-linux

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

Microphone is not kept initialized when not using voice chat #1440

Open kiroma opened 7 years ago

kiroma commented 7 years ago

Your system information

Please describe your issue in as much detail as possible:

If you start up the game, the microphone you're using is not initialized. Unlike on Windows, where it's kept alive all the time, on Linux the mic is only initialized the moment you push the bound key. This leads to a freeze, as the game waits for the mic to initialize before continuing. I have the mic in a webcam, which takes a while to initialize, and if I want to use voice chat in a comp, I need to run OBS in background to listen to the mic, so that I can use it without freezing up the game.

Steps for reproducing this issue:

  1. Start up the game,
  2. Go into any match,
  3. Observe if the microphone is initialized,
  4. Press bound key and experience the freeze.
Dyasik commented 7 years ago

I don't know how to detect whether my mic is initialized, but I'm having just the same problem on Mac. When I press a mic button, game freezes for ~0.5 sec. What is more, in-game sound becomes distorted for about 5 seconds after that. I use a built-in iMac micro.

Computer Information: Manufacturer: Apple Model: iMac18,2 Form Factor: Desktop No Touch Input Detected

Processor Information: CPU Vendor: GenuineIntel CPU Brand: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz CPU Family: 0x6 CPU Model: 0x9e CPU Stepping: 0x9 CPU Type: 0x0 Speed: 3000 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported

Operating System Version: MacOS 10.12.6 (64 bit)

Video Card: Driver: Radeon Pro 555 Driver Version: 1.2 Driver Date: 0 0 0 OpenGL Version: 2.1 Desktop Color Depth: 32 bits per pixel Monitor Refresh Rate: 0 Hz VendorID: 0x1002 DeviceID: 0x67ef Revision: 0xc7 Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 2048 x 1152 Desktop Resolution: 2048 x 1152 Primary Display Size: 18.86" x 10.59" (21.61" diag) 47.9cm x 26.9cm (54.9cm diag) Primary VRAM: 0 MB

Memory: RAM: 8192 Mb

amcgregor commented 7 years ago

It's hilariously detectable if using a bluetooth headset, such as AirPods. (As a note: I would never recommend using BT headsets for gaming, but it does make it very obvious that something is not right.) Bluetooth headsets reduce playback quality when the mic is activated, requiring reinitialization which introduces a playback stutter before mic activation. Releasing the PTT key then reinitializes the connection again, back to high quality playback mode. (If using voice at all, BT headsets make the game literally unplayable due to this constant reinitialization.)

Dyasik commented 7 years ago

@amcgregor You're right, the bug is reproducible on my Mac only when I use wireless Beats Solo 3 headset. No delays or distortions if I use wired headset or none at all.

williamwd commented 5 years ago

I used to play on Mac but never got this issue. Now on Linux (Fedora 29) it's very noticeable using the same gear. I have an USB Siberia V2 and whenever I press my PTT button the fps drops from ~250 to ~30 for 3-5 seconds. The only solution I have is using Discord to chat with my teammates when they agree to. Even when connected to a chat in Discord, the bug occurs on CSGO.