Skip to content

unix_sdl: fix input polling overhead#7086

Merged
Cacodemon345 merged 1 commit into
86Box:masterfrom
ChrisDeadman:sdl-fix-input-polling-overhead
Apr 22, 2026
Merged

unix_sdl: fix input polling overhead#7086
Cacodemon345 merged 1 commit into
86Box:masterfrom
ChrisDeadman:sdl-fix-input-polling-overhead

Conversation

@ChrisDeadman
Copy link
Copy Markdown
Contributor

Summary

Fix SDL input polling overhead by using SDL_WaitEventTimeout instead of pure SDL_PollEvent loop.
This removes a hot path in SDL backend.

Checklist

  • Closes N/A
  • I have tested my changes locally and validated that the functionality works as intended
  • I have discussed this with core contributors already
  • This pull request doesn't require changes to the ROM set
  • This pull request doesn't require changes to the asset set

@Cacodemon345 Cacodemon345 merged commit 0d932e6 into 86Box:master Apr 22, 2026
37 of 44 checks passed
@ChrisDeadman ChrisDeadman deleted the sdl-fix-input-polling-overhead branch April 22, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants