You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
@@ -818,7 +818,7 @@ Variant Object::callv(const StringName &p_method, const Array &p_args) {
|
||||
}
|
||||
|
||||
Variant::CallError ce;
|
||||
return call(p_method, argptrs.ptr(), p_args.size(), ce);
|
||||
return call(p_method, (const Variant **)argptrs.ptr(), p_args.size(), ce);
|
||||
}
|
||||
|
||||
Variant Object::call(const StringName &p_name, VARIANT_ARG_DECLARE) {
|
||||
@@ -1183,7 +1183,7 @@ Error Object::emit_signal(const StringName &p_name, const Variant **p_args, int
|
||||
bind_mem[p_argcount + j] = &c.binds[j];
|
||||
}
|
||||
|
||||
args = bind_mem.ptr();
|
||||
args = (const Variant **)bind_mem.ptr();
|
||||
argc = bind_mem.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user