Skip to content
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

Small memory optimizations #7

Closed
wants to merge 1 commit into from
Closed

Conversation

GloopShlugger
Copy link

@GloopShlugger GloopShlugger commented Dec 4, 2024

This PR consists of 3 changes

  • using file local quaternions for blending animation data to relieve gc pressure, it created 90KiB+ garbage per frame in the default example

  • changing node:set_rotation to to use rotation:set q instead of rotation = q to make it work like the set_position and set_scale siblings

  • storing skinning imagebuffers on the model and using ImageData directly instead of converting it from byte data
    this solves hitches and recreating large amounts of data, which improved framerates a lot on my system,
    i fear that the non-ffi path might penalize web with the 4 function calls but this version is also compatible with 11, might be an ok tradeoff

@GloopShlugger GloopShlugger closed this by deleting the head repository Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant