Skip to content

Discord rich presence + Low latency mode#17

Merged
zortos293 merged 4 commits intomainfrom
dev
Dec 25, 2025
Merged

Discord rich presence + Low latency mode#17
zortos293 merged 4 commits intomainfrom
dev

Conversation

@zortos293
Copy link
Collaborator

This pull request introduces several new features and enhancements focused on improving the user experience for Windows users, Discord integration, and streaming controls. The most notable changes are the addition of native mouse capture and Escape key blocking for Windows, enhanced Discord Rich Presence with optional streaming stats, and various UI and configuration improvements.

Windows-native streaming enhancements:

  • Added src-tauri/src/keyboard_hook.rs: Implements an OS-level keyboard hook to block the Escape key during streaming on Windows, preventing accidental exit from pointer lock. Includes Tauri commands for toggling and querying the block state.
  • Added src-tauri/src/mouse_capture.rs: Implements native mouse capture on Windows using raw input APIs, bypassing browser pointer lock and its "press Esc" message. Provides Tauri commands for capturing/releasing the mouse and querying movement deltas.

Discord Rich Presence improvements:

  • Updated Discord integration to support displaying streaming stats (resolution, FPS, latency) in the presence, controlled by a new "Show Stats in Discord" setting. Added a new Tauri command for updating stats during gameplay, and replaced branding from "GeForce NOW" to "OpenNOW" with a GitHub button in the presence. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

Settings and UI changes:

  • Added a new checkbox in the settings UI for enabling Discord stats display, and updated the settings handling in both backend (Settings struct) and frontend (Settings interface and state management). [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated the streaming UI state to track region, last Discord update time, and game start time for improved presence updates.

Feature completion:

  • Marked "Multi-region ping display" as completed in the project README.

- Discord presence shows "GeForce NOW via OpenNOW" with GitHub button
- Add optional stats display (resolution, fps, latency) toggle
- Stats update every 15 seconds with preserved play time
- Enable Discord RPC by default
- Update README TODO: mark multi-region ping as done
@zortos293 zortos293 merged commit 7ea351d into main Dec 25, 2025
zortos293 added a commit that referenced this pull request Feb 21, 2026
Discord rich presence + Low latency mode
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