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
to ensure performance consistency and feature parity among dotlottie-web wrappers, two performance optimizations were introduced in the dotlottie-web component wrappers only:
Freezing and unfreezing the animation when it's offscreen and not visible to the user: This saves resources by pausing the animation when it's not in view.
Rendering only the visible areas of the animations using the setViewport API: This optimization also saves resources by limiting rendering to the areas that are actually visible.
These two optimizations should be integrated into the dotlottie-web codebase to ensure consistency across implementations.
Changes:
Since these optimizations are performance and rendering related, they can be integrated into the RenderConfig of the DotLottie instance:
exportinterfaceRenderConfig{useRenderVisibleAreaOnly?: boolean;// default to trueuseFreezeWhenInvisible?: boolean;// default to truedevicePixelRatio?: number;}
These optimizations should be enabled by default, allowing users to disable them if needed through the setRenderConfig API.
The text was updated successfully, but these errors were encountered:
theashraf
changed the title
web: move offscreen & partial rendering optimizations from the wrappers to dotlottie-web
per(web): move offscreen & partial rendering optimizations from the wrappers to dotlottie-web
Aug 20, 2024
to ensure performance consistency and feature parity among dotlottie-web wrappers, two performance optimizations were introduced in the dotlottie-web component wrappers only:
setViewport
API: This optimization also saves resources by limiting rendering to the areas that are actually visible.These two optimizations should be integrated into the dotlottie-web codebase to ensure consistency across implementations.
Changes:
Since these optimizations are performance and rendering related, they can be integrated into the
RenderConfig
of theDotLottie
instance:These optimizations should be enabled by default, allowing users to disable them if needed through the
setRenderConfig
API.The text was updated successfully, but these errors were encountered: