mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint.
This commit is contained in:
		
							parent
							
								
									ef7eb8bc4c
								
							
						
					
					
						commit
						d1b9383d86
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -25,6 +25,8 @@ | ||||||
| #include "common/math_util.h" | #include "common/math_util.h" | ||||||
| #include "common/vector_math.h" | #include "common/vector_math.h" | ||||||
| 
 | 
 | ||||||
|  | #include "core/settings.h" | ||||||
|  | 
 | ||||||
| #include "video_core/pica.h" | #include "video_core/pica.h" | ||||||
| #include "video_core/renderer_base.h" | #include "video_core/renderer_base.h" | ||||||
| #include "video_core/utils.h" | #include "video_core/utils.h" | ||||||
|  | @ -45,8 +47,10 @@ void DebugContext::OnEvent(Event event, void* data) { | ||||||
|     { |     { | ||||||
|         std::unique_lock<std::mutex> lock(breakpoint_mutex); |         std::unique_lock<std::mutex> lock(breakpoint_mutex); | ||||||
| 
 | 
 | ||||||
|         // Commit the hardware renderer's framebuffer so it will show on debug widgets
 |         if (Settings::values.use_hw_renderer) { | ||||||
|         VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer(); |             // Commit the hardware renderer's framebuffer so it will show on debug widgets
 | ||||||
|  |             VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer(); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         // TODO: Should stop the CPU thread here once we multithread emulation.
 |         // TODO: Should stop the CPU thread here once we multithread emulation.
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue