MTKTextureLoader freezes the thread

106 Views Asked by At

I noticed strange behaviour of sync newTexture(name: String, scaleFactor: CGFloat, bundle: Bundle?, options: [MTKTextureLoader.Option : Any]? = nil) throws -> MTLTexture method, sometimes (like 1 of 10 times) it just the freezes thread and does not return anything at all, not a structure value neither an error. I have no idea why it's happening and how to make a work around.

0

There are 0 best solutions below