Skip to content

feat(windows): add active monitor refresh rate detection#130

Open
ivanmestre wants to merge 2 commits into
nesdev-org:masterfrom
ivanmestre:feat-windows-monitor-refresh-rate-detection
Open

feat(windows): add active monitor refresh rate detection#130
ivanmestre wants to merge 2 commits into
nesdev-org:masterfrom
ivanmestre:feat-windows-monitor-refresh-rate-detection

Conversation

@ivanmestre
Copy link
Copy Markdown

  • Add DisplayHelper to query supported monitor refresh rates via Win32 APIs.
  • Fetch the exact monitor hosting the Avalonia main window using MonitorFromWindow and EnumDisplaySettings.
  • Implement GetCompatibleRefreshRate to automatically select optimal refresh rates (exact matches or multiples) for NTSC/PAL targets.
  • Add safe fallbacks to the highest available refresh rate to prevent crashes on non-standard displays.

- Add DisplayHelper to query supported monitor refresh rates via Win32 APIs.
- Fetch the exact monitor hosting the Avalonia main window using MonitorFromWindow and EnumDisplaySettings.
- Implement GetCompatibleRefreshRate to automatically select optimal refresh rates (exact matches or multiples) for NTSC/PAL targets.
- Add safe fallbacks to the highest available refresh rate to prevent crashes on non-standard displays.
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.

1 participant