I have to do some complex calculations which lasts about 30 seconds (decoding some keys). I added and run simple animation (in lottie but I think it doesn't matter) so that the user don't need to get impatient. Because of calculations and processor usage my animation falters.
I tried put [animation play] method into main queue but it doesn't help. Can I guarantee in any way 10% of processor resource for my animation? Or slow down other operations (so that not using all available resources)?
Project example: https://github.com/Redysz/Lottie-Pi-Issue
After start on my iPhone SE "clock" animation can stop for a while somewhere in few first circuits.