mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	GPU debugger: Don't keep track of debugging data if no debugger views are active.
This commit is contained in:
		
							parent
							
								
									97d47d55f3
								
							
						
					
					
						commit
						a4d89edd9b
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -78,6 +78,9 @@ public: | ||||||
| 
 | 
 | ||||||
|     void GXCommandProcessed(u8* command_data) |     void GXCommandProcessed(u8* command_data) | ||||||
|     { |     { | ||||||
|  |         if (observers.empty()) | ||||||
|  |             return; | ||||||
|  | 
 | ||||||
|         gx_command_history.push_back(GSP_GPU::GXCommand()); |         gx_command_history.push_back(GSP_GPU::GXCommand()); | ||||||
|         GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; |         GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1]; | ||||||
| 
 | 
 | ||||||
|  | @ -91,6 +94,9 @@ public: | ||||||
| 
 | 
 | ||||||
|     void CommandListCalled(u32 address, u32* command_list, u32 size_in_words) |     void CommandListCalled(u32 address, u32* command_list, u32 size_in_words) | ||||||
|     { |     { | ||||||
|  |         if (observers.empty()) | ||||||
|  |             return; | ||||||
|  | 
 | ||||||
|         PicaCommandList cmdlist; |         PicaCommandList cmdlist; | ||||||
|         for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;) |         for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;) | ||||||
|         { |         { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue