layabox / LayaAir

LayaAir is a fully platform rendering engine with rich 2D/3D rendering capabilities and a mature integrated development platform

Home Page:https://www.layaair.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shader中无效的#define来回切换shader导致性能下降

wardenfeng opened this issue · comments

commented

使用laya2.12.0与laya3.1.0运行示例PerformanceTest_Cartoon2

laya2.12.0运行32fps
image
laya3.1.0运行26fps
image
laya3.1.0渲染过程来回切换shader
image
两个shader的差异只有无效的 #define GAMMATEXTURE
image