Author Topic: Freeze (low framerate) when TMP object appears  (Read 77 times)

geckounity

  • Newbie
  • *
  • Posts: 2
Freeze (low framerate) when TMP object appears
« on: May 17, 2018, 11:04:44 AM »
I have the scene where TMP objects are created ("Text Mesh Pro - Text" script) but they aren't visible in the camera view. When I move the camera and the TMP object appears there is a freeze. It occurs on the mobile devices (especially on iPhones). What is interesting the issue seems to occur randomly. It is always reproducible if I install the game on device and run it the first time. Then application works fine but sometimes the framerate becomes very low when another TMP object appears.

I'm attaching the screenshot contains my Profiler investigation (this one is for Android device but for iOS the "Time ms" value is even higher). It looks like the freeze is caused by the "Distance Field" shader but I've tried all shaders and there was the same problem. Also I've tried to use another TMP versions (1.0.55, 1.0.56, 1.2.2), tested on Unity 2017.1.1f3 and Unity 2017.4.1f1. I switched off "auto-size" option, even tried a different font. All my ideas didn't give me a positive result...

Could somebody please share an idea why it may occur? Thank you in advance!

[ Guests cannot view attachments ]