-
Notifications
You must be signed in to change notification settings - Fork 190
Viewport resolution scale parameter 2 #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
13cefae
a485192
014daf7
12ccc2f
a568f6a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,6 +31,7 @@ This page will be updated with new features and commands as they become availabl | |||||
| | **Setting** | **Description** | | ||||||
| | --- | --- | | ||||||
| | **Match viewport resolution** | Resizes the Unreal Engine application resolution to match the browser's video element size.| | ||||||
| | **Viewport Resolution Scale** | Scale factor for viewport resolution when Match Viewport Resolution is enabled. Range: 0.1-10.0, Default: 1.0. Values above 1.0 (e.g., 1.5, 2.0) can improve visual quality on small screens by requesting higher resolution streams. | | ||||||
|
||||||
| | **Viewport Resolution Scale** | Scale factor for viewport resolution when Match Viewport Resolution is enabled. Range: 0.1-10.0, Default: 1.0. Values above 1.0 (e.g., 1.5, 2.0) can improve visual quality on small screens by requesting higher resolution streams. | | |
| | **Viewport Resolution Scale** | Scale factor for viewport resolution when Match Viewport Resolution is enabled. Range: 0.1-3.0, Default: 1.0 (no scaling). Values above 1.0 (e.g., 1.5, 2.0) can improve visual quality on small screens by requesting higher resolution streams. | |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -65,6 +65,7 @@ export class NumericParameters { | |||||
| static MaxReconnectAttempts = 'MaxReconnectAttempts' as const; | ||||||
| static StreamerAutoJoinInterval = 'StreamerAutoJoinInterval' as const; | ||||||
| static KeepaliveDelay = 'KeepaliveDelay' as const; | ||||||
| static ViewportResolutionScale = 'ViewportResScale' as const; | ||||||
| } | ||||||
|
|
||||||
| export type NumericParametersKeys = Exclude<keyof typeof NumericParameters, 'prototype'>; | ||||||
|
|
@@ -821,6 +822,22 @@ export class Config { | |||||
| useUrlParams | ||||||
| ) | ||||||
| ); | ||||||
|
|
||||||
| this.numericParameters.set( | ||||||
| NumericParameters.ViewportResolutionScale, | ||||||
| new SettingNumber( | ||||||
| NumericParameters.ViewportResolutionScale, | ||||||
| 'Viewport Resolution Scale', | ||||||
| 'Scale factor for viewport resolution when MatchViewportResolution is enabled. 1.0 = 100%, 0.5 = 50%, 2.0 = 200%.', | ||||||
| 0.1 /*min*/, | ||||||
| 10.0 /*max*/, | ||||||
|
||||||
| 10.0 /*max*/, | |
| 3.0 /*max*/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.