Search Unity

MSCompatUnicodeTable takes a long time when entering Playmode

Discussion in 'Editor & General Support' started by steffen-itterheim, Jan 30, 2018.

  1. steffen-itterheim

    steffen-itterheim

    Joined:
    Nov 10, 2015
    Posts:
    24
    I followed the instructions from @lukaszunity posted here:
    https://forum.unity.com/threads/example-project-assembly-definition-files.482313/page-3#post-3292894

    ... in order to debug the >5s delay we experience after script compilation. It turns out that more often than not, the profiler shows up a single class MSCompatUnicodeTable taking an extraordinary amount of time (2.5s), and no other classes/methods. Functions were either HasSpecialWeight() and Category() and the Total % is over 22 million. :D

    Here's an example from the editor profiling:
    upload_2018-1-30_12-27-34.png

    My question: what should we make of this?
    Can we assume that this means the delay we're experiencing is due to Unity internally doing stuff rather than us wasting time with an InitializeOnLoad script?
     
    ValdecoTFG likes this.
  2. steffen-itterheim

    steffen-itterheim

    Joined:
    Nov 10, 2015
    Posts:
    24
    Actually the classes/methods that come up seem totally random:
    upload_2018-1-30_12-32-40.png

    upload_2018-1-30_12-33-38.png

    upload_2018-1-30_12-35-58.png
     
  3. steffen-itterheim

    steffen-itterheim

    Joined:
    Nov 10, 2015
    Posts:
    24
    I see ... it's probably related to this:

    Skipping profile frame. Receiver can not keep up with the amount of data sent