mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	General: Setup yuzu threads' microprofile, naming and registry.
This commit is contained in:
		@@ -4,6 +4,7 @@
 | 
			
		||||
 | 
			
		||||
#include "common/assert.h"
 | 
			
		||||
#include "common/microprofile.h"
 | 
			
		||||
#include "common/thread.h"
 | 
			
		||||
#include "core/core.h"
 | 
			
		||||
#include "core/frontend/emu_window.h"
 | 
			
		||||
#include "core/settings.h"
 | 
			
		||||
@@ -18,7 +19,10 @@ namespace VideoCommon::GPUThread {
 | 
			
		||||
static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
 | 
			
		||||
                      Core::Frontend::GraphicsContext& context, Tegra::DmaPusher& dma_pusher,
 | 
			
		||||
                      SynchState& state) {
 | 
			
		||||
    MicroProfileOnThreadCreate("GpuThread");
 | 
			
		||||
    std::string name = "yuzu:GPU";
 | 
			
		||||
    MicroProfileOnThreadCreate(name.c_str());
 | 
			
		||||
    Common::SetCurrentThreadName(name.c_str());
 | 
			
		||||
    system.RegisterHostThread();
 | 
			
		||||
 | 
			
		||||
    // Wait for first GPU command before acquiring the window context
 | 
			
		||||
    while (state.queue.Empty())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user