SDL_PollEvent() stuttering while idle?
I've cobbled together a very basic game loop in C++ using SDL2, and I've noticed that every few seconds, SDL_PollEvent seems to be unusually slow, even when nothing is happening. I sent my deltaTime to console every loop, and its about 100ms difference on the cycles that SDL_PollEvent is lagging. I've already confirmed that it's something with this function by moving my timers around, but I'm not sure where to diagnose the issue further. My loop: while (!quit) { uint32_t startTime = SDL_GetTicks(); while (SDL_PollEvent(&e) != 0) { std::cout << "Event: "<< e.type << std::endl; // Added later,