Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: 文本渲染的改进 #2

Open
Demonese opened this issue Jul 24, 2022 · 0 comments
Open

TODO: 文本渲染的改进 #2

Demonese opened this issue Jul 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Demonese
Copy link
Contributor

Demonese commented Jul 24, 2022

  • 有些字体只用到ASCII部分,也分配1024x1024的大纹理缓存可能太浪费了,应该考虑弄一个公共字形缓存
    • 新问题:如果用了公共字形缓存,那么当一个字体被卸载掉,那些占用了的空间应该如何回收?
  • 字形缓存有多张纹理的时候应该合批渲染
  • 应该新增 Label 对象?避免每次绘制都重新计算一次布局
    • 也许可以不新增对象,而是通过缓存字符串来映射
@Demonese Demonese added the enhancement New feature or request label Jul 26, 2022
@Demonese Demonese changed the title TODO: 字形缓存纹理相关 TODO: 文本渲染的改进 Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant