SKLabelNode delays app start

后端 未结 3 1365
孤城傲影
孤城傲影 2021-01-12 16:33

at the moment I\'m coding a little app with SpriteKit, which works perfectly fine, but the only problem is an SKLabelNode, which I initialize with the following normal piece

3条回答
  •  心在旅途
    2021-01-12 17:11

    Be careful you aren't loading the entire font family. If I load "Chalkboard SE" it will take 4-6 seconds, and appear to work.

    But if I load ChalkboardSE-Regular , it's virtually instantaneous ~100ms or less.

    If you want to know more, I've got various links and timings on my humble blog. https://gilesey.wordpress.com/2015/01/14/ios-spritekit-font-loading-times-of-sklabelnodes/

提交回复
热议问题