[]为何我加载spine的动画drawcall会那么高,shader的指标也很高

资源都在一张图集上,照理说只需要一个drawcall就完成,请问要怎么设置?用的是骨骼动画模板Templet,0,1,2的模式都试过了,都是一样的
drawCall.png
已邀请:

cuixueying

赞同来自:

确实有点多,可以提供下你的例子吗?

yzhkof

赞同来自:

public getSpineAni(url:string,completeCaller:any,completeFun:Function):void
        {
            this.m_spineCopmleteFun = completeFun;
            this.m_completeCaller = completeCaller;
            this.m_curLoadingUrl = url;

            if(this.isLoaded(url) == false)
            {
                this.mFactory.loadAni(url);
            }
            else
            {
                this.buildAmature();
            }
        }

        private onError():void
        {
            console.log("load spine error");
        }

        private parseComplete():void
        {
            this.m_loadedUrlArr.push(this.m_curLoadingUrl);
            this.buildAmature();
        }

        private buildAmature():void
        {
            if(this.m_spineCopmleteFun != null)
            {
                var sk:Skeleton = this.mFactory.buildArmature(0);
                return this.m_spineCopmleteFun.apply(this.m_completeCaller,[sk]);
            }
        }

cuixueying

赞同来自:

麻烦给个可以运行的例子,上传附件即可!

吕归尘233

赞同来自:

怎么解决的啊,大佬们

要回复问题请先

商务合作
商务合作