mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Replace std::map with std::array for graphics event breakpoints, and allow the compiler to inline. Saves 1%+ in vertex heavy situations.
This commit is contained in:
		
							parent
							
								
									0964a3ff53
								
							
						
					
					
						commit
						01a1555b5d
					
				
					 3 changed files with 16 additions and 9 deletions
				
			
		|  | @ -75,7 +75,7 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
|     case Role_IsEnabled: | ||||
|     { | ||||
|         auto context = context_weak.lock(); | ||||
|         return context && context->breakpoints[event].enabled; | ||||
|         return context && context->breakpoints[(int)event].enabled; | ||||
|     } | ||||
| 
 | ||||
|     default: | ||||
|  | @ -110,7 +110,7 @@ bool BreakPointModel::setData(const QModelIndex& index, const QVariant& value, i | |||
|         if (!context) | ||||
|             return false; | ||||
| 
 | ||||
|         context->breakpoints[event].enabled = value == Qt::Checked; | ||||
|         context->breakpoints[(int)event].enabled = value == Qt::Checked; | ||||
|         QModelIndex changed_index = createIndex(index.row(), 0); | ||||
|         emit dataChanged(changed_index, changed_index); | ||||
|         return true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue