mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	GDScript: Add faster call instructions for builtin methods
Methods from builtin types can be called by using the function pointer when the argument and base types are known at compile time.
This commit is contained in:
		
							parent
							
								
									d8b22097f2
								
							
						
					
					
						commit
						52ab64db69
					
				
					 7 changed files with 125 additions and 0 deletions
				
			
		|  | @ -522,6 +522,8 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code | |||
| 								} else { | ||||
| 									gen->write_call(result, base, call->function_name, arguments); | ||||
| 								} | ||||
| 							} else if (base.type.has_type && base.type.kind == GDScriptDataType::BUILTIN) { | ||||
| 								gen->write_call_builtin_type(result, base, base.type.builtin_type, call->function_name, arguments); | ||||
| 							} else { | ||||
| 								gen->write_call(result, base, call->function_name, arguments); | ||||
| 							} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 George Marques
						George Marques