Quick answer: Pygame on mobile (via Kivy or SDL2-pythond) buffering large input event queues during pause? Event queue grows; drain isn't called - cap via event.set_allowed.

Player pauses for 5 minutes; events flood when game resumes; freezes for 2 seconds.

Drain queue on resume

OnResume: pygame.event.clear(). Discard buffered events; fresh start.

Or limit event types

set_allowed only the events you handle. Less buffered.

Or process during pause

Background thread drains; safer than letting it accumulate.

“Event queues unbounded grow.”

Pause is a class of state change that needs cleanup at both ends. Resume cleanup is often skipped; the bug surfaces there.

Related reading