vector cache: skip animation update as possible.

Since the vector file data is shareable among the multiple vg instances,
vfd could keep the requested frame data already by the other instance.

This case vector cache quickly return the vector data withouth any further progress.
This commit is contained in:
Hermet Park 2019-11-29 11:18:15 +09:00
parent 153b5cffd8
commit d05c2169a8
1 changed files with 11 additions and 2 deletions

View File

@ -432,8 +432,17 @@ evas_cache_vg_tree_get(Vg_Cache_Entry *vg_entry, unsigned int frame_num)
if (!vfd) return NULL;
//No need to update.
if (!vfd->anim_data && vg_entry->root)
return vg_entry->root;
if (vfd->anim_data)
{
if (vg_entry->root &&
vfd->anim_data->frame_num == frame_num)
return vg_entry->root;
}
else
{
if (vg_entry->root)
return vg_entry->root;
}
if (!vfd->static_viewbox)
{