CADisplayLink will let you trigger your work when the display refreshes; that's probably the best thing to use for this.
Is there a better way to make a game loop than 'scheduledTimerWithTimeInterval'
-
04-10-2022 - |
Pergunta
I wanted to know if there's a smoother and lighter way to make animations with a loop.
[NSTimer scheduledTimerWithTimeInterval:[NSTimeInterval] target:[target] selector:@selector() userInfo:[UInfo] repeats:[BOOL]];
Is there a better way than that makes the animation smoother or is it that I'm testing on the iOS simulator on the Mac?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow