High draw call in scrollview

Hi,
am getting high draw call for scrollview even with optimization tricks
how tabs look like :
image
Annotation 2020-02-24 132738

what i used for optimization:


also i used
cc.macro.CLEANUP_IMAGE_CACHE = false;
cc.dynamicAtlasManager.enabled = true;
and auto atlas and bitmap for labels

Draw called still 90-80 for only 5 items viewed also sometimes increase if i keep scroll down and up too fast

i noticed that the problem happen also in the optimization topic draw call first was 17 but when scroll down to fast draw call increase to 65
cocos creator version 2.2.2

is there is any solution for instantiated tabs in scroll view !

Because the label and mask components will interrupt batch rendering, you can use system fonts and use BITMAP in cacheMode.It can add the label’s rendered texture to dynamicAtlas and reduce DC.

1 Like

@zzf_Cocos i disabled mask also am using bitmap and dynamicAtlas
it seems cocos creator don’t batch the tabs because they are in separate parents nodes i did a small test where is duplicate every thing in same parent i got good draw call (4 only )… is there is any solution for that please help

1 Like