game_chat_thread_id
Defines the types of threads that Game Chat 2 uses for internal purposes.
Syntax
enum class game_chat_thread_id
{
audio,
networking,
}
Constants
Constant | Description |
---|---|
audio | Represents Game Chat 2 internal audio threads. Game Chat internal audio threads are high priority, frequently-running threads with real-time requirements. These threads interact directly with XAudio2 every 20 to 40 milliseconds. |
networking | Represents Game Chat 2 internal networking threads. Game Chat 2 internal networking threads are driven by polling mechanisms. These wake every 50 to 100 milliseconds. |
Remarks
This enumeration is used by chat_manager::get_thread_processor and chat_manager::set_thread_processor to identify the Game Chat 2 internal thread type for which processor affinity is configured.
When calling chat_manager::set_thread_processor
to configure the processor affinity for Game Chat 2 internal audio threads, XAudio2 instances for Game Chat 2 are initialized with a processor affinity that corresponds to the configured processor number. If no processor number is specified for this thread type, XAudio2 instances for Game Chat 2 are initialized with the processor affinity set to XAUDIO2_DEFAULT_PROCESSOR
.
Requirements
Header: GameChat2.h
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles