mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	gpu_thread: Don't spin wait if there are no GPU commands.
This commit is contained in:
		
							parent
							
								
									6a3fc5d2ff
								
							
						
					
					
						commit
						9ec84fc592
					
				| @ -31,8 +31,7 @@ static void RunThread(VideoCore::RendererBase& renderer, Tegra::DmaPusher& dma_p | ||||
| 
 | ||||
|     CommandDataContainer next; | ||||
|     while (state.is_running) { | ||||
|         while (!state.queue.Empty()) { | ||||
|             state.queue.Pop(next); | ||||
|         next = state.queue.PopWait(); | ||||
|         if (const auto submit_list = std::get_if<SubmitListCommand>(&next.data)) { | ||||
|             dma_pusher.Push(std::move(submit_list->entries)); | ||||
|             dma_pusher.DispatchCalls(); | ||||
| @ -50,7 +49,6 @@ static void RunThread(VideoCore::RendererBase& renderer, Tegra::DmaPusher& dma_p | ||||
|         state.signaled_fence.store(next.fence); | ||||
|     } | ||||
| } | ||||
| } | ||||
| 
 | ||||
| ThreadManager::ThreadManager(Core::System& system) : system{system} {} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 bunnei
						bunnei