mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	video_core: improve efficiency of CachedSurface::IsSurfaceFullyInvalid
This commit is contained in:
		
							parent
							
								
									f620c862f3
								
							
						
					
					
						commit
						d90f733330
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -344,7 +344,8 @@ struct CachedSurface : SurfaceParams, std::enable_shared_from_this<CachedSurface | |||
|     } | ||||
| 
 | ||||
|     bool IsSurfaceFullyInvalid() const { | ||||
|         return (invalid_regions & GetInterval()) == SurfaceRegions(GetInterval()); | ||||
|         auto interval = GetInterval(); | ||||
|         return *invalid_regions.equal_range(interval).first == interval; | ||||
|     } | ||||
| 
 | ||||
|     bool registered = false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue