Skip to content

[UE5.5] Viewport resolution scale parameter 2 (#759)#810

Merged
mcottontensor merged 2 commits intoEpicGamesExt:UE5.5from
mcottontensor:backport/UE5.5/pr-759
Apr 23, 2026
Merged

[UE5.5] Viewport resolution scale parameter 2 (#759)#810
mcottontensor merged 2 commits intoEpicGamesExt:UE5.5from
mcottontensor:backport/UE5.5/pr-759

Conversation

@mcottontensor
Copy link
Copy Markdown
Collaborator

Backport

This will backport the following commits from master to UE5.5:

Questions ?

Please refer to the Backport tool documentation

* Add ViewportResolutionScale configuration parameter

* Add Docs for Viewport Resolution Scale in Frontend/Docs/Settings Panel.md

* Address PR feedback: improve ViewportResolutionScale configuration

* Harden ViewportResScale: round output, warn past encoder limit, rename constant

- Round scaled dimensions to integers before sending Resolution.Width /
  Height commands to UE (non-integers were being JSON-stringified and
  handed to cvar parsing).
- Warn via Logger when a scaled dimension exceeds the H.264 4096 limit so
  large viewports with high scales surface a clear encoding-failure hint.
- Rename NumericParameters.ViewportResolutionScale -> ViewportResScale so
  the TS constant matches the URL-param / persisted key ('ViewportResScale').
- Add Config.hasNumericSetting and fall back to 1.0 in VideoPlayer when
  the setting is absent, so custom Config subclasses do not throw on
  every resize.
- Add VideoPlayer Jest coverage for default, scaled, rounded, >4096-warn,
  within-limit, missing-setting-fallback, and flag-disabled paths.

---------

Co-authored-by: Matthew.Cotton <matt@tensorworks.com.au>
(cherry picked from commit 60da95c)

# Conflicts:
#	Frontend/library/src/VideoPlayer/VideoPlayer.ts
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

🦋 Changeset detected

Latest commit: 0811be0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mcottontensor mcottontensor merged commit c3779a5 into EpicGamesExt:UE5.5 Apr 23, 2026
3 checks passed
@mcottontensor mcottontensor deleted the backport/UE5.5/pr-759 branch April 23, 2026 03:05
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