-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementImprove featuresImprove features
Description
Native application could leverage threading feature.
Currently, thorvg.flutter initializes with 0
config, which means this won't thread.
We might need to check to use thread.
explicit TvgLottieAnimation()
{
errorMsg = NoError;
// No threading
if (Initializer::init(CanvasEngine::Sw, 0) != Result::Success)
{
errorMsg = "init() fail";
return;
}
canvas = SwCanvas::gen();
if (!canvas) errorMsg = "Invalid canvas";
animation = Animation::gen();
if (!animation) errorMsg = "Invalid animation";
}
We can drive Widget parameters for user so they can decided how many thread they want to enable.
Something like this:
Lottie.network(
'https://lottie.host/6d7dd6e2-ab92-4e98-826a-2f8430768886/NGnHQ6brWA.json',
renderConfig: RenderConfig(
threads: 4
)
),
hermet
Metadata
Metadata
Assignees
Labels
enhancementImprove featuresImprove features
Type
Projects
Status
Todo