我们在使用SDF字体时,发现光栅化消耗高,如果触发较多光栅化任务,会造成卡顿:
[Image Removed]
[Image Removed]
除了官方文档里提到的针对不同设备使用不同的SDF Mode和Level以外,以及在Loading时预热一些常用字以外,还能够有哪些方式进行优化。我们尝试了使用Offline的Font Cache Type,但发现其只能在TextRender上使用,无法在UMG蓝图里使用。
离线字体:
[Image Removed]
TextRender:
[Image Removed]
TextBlock:
[Image Removed]
看源码,确实Offline字体资产不支持Slate:
[Image Removed]