You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stumbled upon this while thinking about why we needed internal getter godotengine/godot#99201 , while it does looks like internal getter has its uses the engine itself had a similar issue godotengine/godot#80074 and merged pr that prevented copying, so I figure godot-cpp can also stop copying arguments it got by a pointer where it doesn't need to make copies.
Also the engine itself is using even newer PtrToArgDirect and PtrToArgByReference where it doesn't make copies for arguments that can be passed by reference.
Tbh, it's just an enhancement, as godot-cpp will work correctly even without this, but in marshalling less copies is always better
We should eventually sync with the engine's version of method_ptrcall.h and get the new PtrToArgDirect etc structs, but that'll take a little more effort to review
Activity
dsnopek commentedon Feb 23, 2026
Thanks!
I think we could merge a version of godotengine/godot#80075 to godot-cpp for now?
We should eventually sync with the engine's version of
method_ptrcall.hand get the newPtrToArgDirectetc structs, but that'll take a little more effort to review