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:

I suspect it being related to a bug that was fixed in Modifies WaitEvent and WaitEventTimeout to actually wait by franko · Pull Request #4419 · libsdl-org/SDL · GitHub