Conversation
Use requestPointerLock with unadjustedMovement option to bypass OS-level mouse acceleration and smoothing for true 1:1 raw mouse input in both click and fullscreen modes.
Pass user's selected resolution to nvstSdp viewport dimensions instead of using screen dimensions. This ensures the stream matches the requested resolution (e.g., 1440p) even if the physical screen is 1080p.
Raw mouse input
Fix resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for custom streaming resolution and frame rate, and improves input capture behavior for a better user experience. The main changes include allowing users to specify their desired streaming resolution and FPS, passing these options through the streaming initialization pipeline, and enhancing pointer lock handling to provide raw mouse input and dynamic UI visibility during gameplay.
Streaming configuration and pipeline updates:
StreamingOptionsinterface to allow specifyingresolutionandfpsfor streaming sessions, and updated all relevant function signatures to accept and propagate these options (src/main.ts,src/streaming.ts). [1] [2] [3]src/streaming.ts). [1] [2] [3] [4]Input capture and UI improvements:
unadjustedMovementfor raw mouse input, falling back gracefully if not supported (src/streaming.ts). [1] [2]src/streaming.ts).