From 76c41edfd68eb2c88e68d24673ee376ae5952855 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 3 Jan 2015 03:42:27 -0800 Subject: [PATCH] Thread names. --- src/xenia/apu/audio_system.cc | 4 ++-- src/xenia/gpu/xenos.h | 1 + src/xenia/ui/main_window.cc | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xenia/apu/audio_system.cc b/src/xenia/apu/audio_system.cc index 8a8e30fa7..f6e6c9ecf 100644 --- a/src/xenia/apu/audio_system.cc +++ b/src/xenia/apu/audio_system.cc @@ -62,8 +62,8 @@ X_STATUS AudioSystem::Setup() { } void AudioSystem::ThreadStart() { - poly::threading::set_name("AudioSystemThread"); - xe::Profiler::ThreadEnter("AudioSystemThread"); + poly::threading::set_name("Audio Worker"); + xe::Profiler::ThreadEnter("Audio Worker"); // Initialize driver and ringbuffer. Initialize(); diff --git a/src/xenia/gpu/xenos.h b/src/xenia/gpu/xenos.h index 0c3d75fca..77e9b766a 100644 --- a/src/xenia/gpu/xenos.h +++ b/src/xenia/gpu/xenos.h @@ -33,6 +33,7 @@ enum class PrimitiveType : uint32_t { kRectangleList = 0x08, kLineLoop = 0x0C, kQuadList = 0x0D, + kQuadStrip = 0x0E, }; enum class Dimension : uint32_t { diff --git a/src/xenia/ui/main_window.cc b/src/xenia/ui/main_window.cc index 381cdfd3d..059d5d9f7 100644 --- a/src/xenia/ui/main_window.cc +++ b/src/xenia/ui/main_window.cc @@ -25,6 +25,9 @@ void MainWindow::Start() { poly::threading::Fence fence; loop_.Post([&]() { + poly::threading::set_name("Win32 Loop"); + xe::Profiler::ThreadEnter("Win32 Loop"); + if (!Initialize()) { PFATAL("Failed to initialize main window"); exit(1);