You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Pool temporary values by type on the stack
So the stack slots perform less type changes, which is useful for future optimizations.
This commit is contained in:
@@ -66,7 +66,7 @@ class GDScriptCompiler {
|
||||
}
|
||||
|
||||
GDScriptCodeGenerator::Address add_temporary(const GDScriptDataType &p_type = GDScriptDataType()) {
|
||||
uint32_t addr = generator->add_temporary();
|
||||
uint32_t addr = generator->add_temporary(p_type);
|
||||
return GDScriptCodeGenerator::Address(GDScriptCodeGenerator::Address::TEMPORARY, addr, p_type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user