Compare commits

...

1 Commits

Author SHA1 Message Date
Fernando Sahmkow
43df0c983a Name the Main and GPU thread to make debugging easier. 2019-04-07 07:53:46 -04:00
2 changed files with 5 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#include "common/assert.h"
#include "common/microprofile.h"
#include "common/thread.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/core_timing_util.h"
@@ -22,6 +23,7 @@ static void RunThread(VideoCore::RendererBase& renderer, Tegra::DmaPusher& dma_p
// Wait for first GPU command before acquiring the window context
state.WaitForCommands();
Common::SetCurrentThreadName("yuzu GPU");
// If emulation was stopped during disk shader loading, abort before trying to acquire context
if (!state.is_running) {

View File

@@ -6,6 +6,7 @@
#include <fmt/format.h>
#include "common/microprofile.h"
#include "common/scm_rev.h"
#include "common/thread.h"
#include "core/core.h"
#include "core/frontend/framebuffer_layout.h"
#include "core/settings.h"
@@ -24,6 +25,8 @@ void EmuThread::run() {
MicroProfileOnThreadCreate("EmuThread");
Common::SetCurrentThreadName("yuzu Main");
emit LoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0);
Core::System::GetInstance().Renderer().Rasterizer().LoadDiskResources(