Performance is very poor when installed shortcut with Thai text in Unity

I have a button on the canvas, and when I set the text button with English text, it works correctly, but when it is set by Thai text, it delays up to 6 seconds (poor performance).

At first I thought it was because I upload a lot of sounds and images, but after deleting all of them it is still slow, and if I change my Thai text, it works fast.

Does anyone know how to fix this problem?

public Text text; void Start () { text.text = "เพลงจิ้งจก"; } 

I tried changing the font (Thonburi font), but did not affect it. So, my solution is to change the text to an image, which is a bad solution, but cannot find any useful ways.

+7
performance c # unity3d unity5
source share
2 answers

The latest version of Unity has some performance issues in Asian font due to frequent calls to iphone::GetFontPath() in RequestCharactersInTexture

A possible solution is to track all the characters used in the application (I have a script that do this) and set the special font as a custom set with all the characters used.

It is very difficult to maintain, but increase productivity.

+1
source share

This is a hacker method, but if you have only a few lines of text that you need and can be determined in advance, you can simply load them all at startup with a transparent color or the screen off, and then change the color or move it when you need it necessary.

0
source share

All Articles