SDL2 - iOS performance and SDL_WaitEventTimeout

Hello everyone,

Iā€™m currently testing performance of a program that only contains a single rotating cube on iOS. And according to xcode, this simple program takes 15% of my CPU, that seems huge O_o

So I launch the xcode profiler to watch which part of the code cause this performance issue and I found that the function SDL_WaitEventTimeout eats almost 19% (UIKit_PumpEvents to be more specific).

Is it normal ? Do you know a way to optimize that ?

Thanks in advance :slight_smile: