mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-12 15:34:22 +00:00
svg_loader: allow deferred loading.
don't push thread to work hard unless it's necessary. that might occur performance drop. Change-Id: Ib71fa0ae46461b10b7ed7ef356512fbf2a7aa0a8
This commit is contained in:
parent
feb6aad641
commit
018f4919da
1 changed files with 1 additions and 1 deletions
|
@ -2295,7 +2295,7 @@ bool SvgLoader::read()
|
||||||
return loader->builder.build(loader->loaderData.doc);
|
return loader->builder.build(loader->loaderData.doc);
|
||||||
};
|
};
|
||||||
|
|
||||||
rootProgress = async(launch::async, asyncTask, this);
|
rootProgress = async((launch::async | launch::deferred), asyncTask, this);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue