-
-
Notifications
You must be signed in to change notification settings - Fork 178
Implement fast quaternion operations #163
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
Comments
I'd go one further and suggest: I started to port it but hit a wall. If there's interest...? |
There is interest, sure. I can try to help. What problem do you have? |
I'll clean up the repo and make it public and then perhaps we can discuss it further :) It might take a few weeks or more for me to find the time! |
It may also be quicker to create a C interface instead of reimplementing it fully - but I was unsure about how that would affect memory allocation and lifetimes (new to systems stuff especially FFI). Can you use a custom allocator in zig when the library calls a C++ class constructor for example? |
Unfortunately, if you're linking to a compiled C library and that library uses traditional Just my 2c but I think the tradeoff would probably be worth it to get a working layer over the C library into |
Often C libs expose a way to override their allocator. We use do this in zstbi for example, see https://github.com/zig-gamedev/zig-gamedev/blob/main/libs/zstbi/libs/stbi/stb_image.c If a C library doesn't expose a way to override malloc/free it's worth considering making this change upstream or just hacking it using the preprocessor. |
Don't have time to write a proper issue but this seemed interesting :)
https://twitter.com/FreyaHolmer/status/1596157832688279552
https://twitter.com/FreyaHolmer/status/1596286428920836096
Cool stuff by Freya!
The text was updated successfully, but these errors were encountered: