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
Currently, the Animation structures are constructed at runtime, which works well for dynamic and interactive applications.
Desired Feature
I propose adding the capability to build Animation structures at compile time. This feature would allow developers to define animations that are static and unchanging throughout the application's life, ensuring these animations are constructed and optimized during compilation, reducing runtime overhead and potentially improving the application's overall performance. (The main reason is for design purposes)
Possible Implementation
I believe this feature could be implemented by providing a macro or a set of const functions that allow for the construction of Animation structures with fixed parameters. This way, developers can opt-in to compile time construction where it makes sense for their application.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, and sorry for the delayed response.
It's an interesting Idea. However, it is unclear to me if the value would be worth the added complexity. Even animations that never need to change can be created at startup without noticeable performance cost.
If someone proposes a concrete implementation (via a pull request), I may consider merging it. But even in that case, I may reject the PR if I feel it's adding too much complexity.
If you would like to try creating a PR, make sure to:
gate that functionality behind a new feature flag named unstable-comptime
Current Behavior
Currently, the Animation structures are constructed at runtime, which works well for dynamic and interactive applications.
Desired Feature
I propose adding the capability to build Animation structures at compile time. This feature would allow developers to define animations that are static and unchanging throughout the application's life, ensuring these animations are constructed and optimized during compilation, reducing runtime overhead and potentially improving the application's overall performance. (The main reason is for design purposes)
Possible Implementation
I believe this feature could be implemented by providing a macro or a set of const functions that allow for the construction of Animation structures with fixed parameters. This way, developers can opt-in to compile time construction where it makes sense for their application.
The text was updated successfully, but these errors were encountered: