Skip to content

精灵文字增加,drawcall随之增加,导致卡顿. "@galacean/engine": "0.9.20" #102

Discussion options

You must be logged in to vote

检查了一下,现在文字图集的尺寸还只支持 256 * 256,而 demo 中文字的 fontsize 为 100,刚好导致了一句话在两张不同的纹理中,drawcall 就随着文字渲染器的数目翻倍了,导致性能下降。

可以通过适当缩小 FontSize 让文字打在一张图集中,这个插件可以检查文字图集是否打在一张贴图中,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cptbtptpbcptdtptp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Engine
Labels
None yet
2 participants