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.
Asked
Active
Viewed 79 times
0

user16217248
- 3,119
- 19
- 19
- 37

we_lokin
- 33
- 6
-
Have you looked at what the other threads are doing in such case? – olha Dec 07 '20 at 16:52
-
@Olha yes, other threads are fine, UI is still working smooth as nothing is wrong – we_lokin Dec 07 '20 at 16:59