-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent by-value and by-ref parameters for geometric types #749
Comments
This is a wider issue than So far, the idea was that In general, things could be more consistent. I compiled an overview of the parameter passing in our builtin types:
"mixed" means by-value is used if the return type is |
Impressive investigation, thanks. I believe we should do by value those that are up to 4 words, and also include Aabb (6 words) for symmetry reasons. All the others I propose to be by reference, for performance reasons(eg. with worst case being double builds, where a word is 8 bytes). |
Some more input on this, in terms of performance? I checked glam, and it seems:
So after consistency changes, we do the same for the above types, and additionally treat |
I am trying to make a physics server 2d and physics server 3d, and I want to use:
If I look at the docs, it says Aabb is the 3d counterpart of Rect2.
The method for merge of Aabb is:
The method for merge for Rect2 is:
Could the 2 change so either both have reference or neither have reference for the parameter b?
The text was updated successfully, but these errors were encountered: