benimator icon indicating copy to clipboard operation
benimator copied to clipboard

feat: Compile-time "Animation" creation

Open sofianedjerbi opened this issue 6 months ago • 2 comments

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.

sofianedjerbi avatar Dec 29 '23 00:12 sofianedjerbi