Skip to content

webOS 1-3: opt-in Interface resolution; native 1080p stays the default - #666

Merged
GLinnik21 merged 8 commits into
plxnative:mainfrom
selfhealer-png:pr/webos3-resolution
Oct 18, 2026
Merged

GLinnik21 merged 8 commits into
plxnative:mainfrom
selfhealer-png:pr/webos3-resolution

Conversation

@selfhealer-png

@selfhealer-png selfhealer-png commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

webOS 1-3: an opt-in Interface resolution; native 1080p stays the default

On webOS 3 sets, menus can drop frames at 1920x1080. On webOS 1-3 only, this adds Settings → System → Interface resolution (Automatic / 1600x900 / 1280x720 / 960x540), applied at the next launch. Automatic is the native 1920x1080 canvas, so nobody's text gets softer without choosing it. On webOS 4 and later the row is not shown and the window is always 1920x1080.

Measured (heartbeat framedrop A/B, not profile-tv counters, so no cause is claimed)

  • 55UH650V (webOS 3.4.3, Mali-T760), 1080p → 1280x720: average 46.9 → 54.5 fps; frames over 33 ms 7.1% → 0.5%.
  • OLED C7V (webOS 3.9.3, Mali-T820): frames over 16.7 ms 36% at 1080p, 16% at 1600x900, 2% at 1280x720. At 720p its owner found the text too soft, hence opt-in rather than automatic.

Design

  • Stored install-wide (the window is created before anyone is signed in) and kept through sign-out like the language. Unknown or old values read as Automatic.
  • The stored session is read before SDL_CreateWindow (a source-order test pins it). If a smaller window or its GL context is refused, the app retries once at 1920x1080, so a saved size can never stop it from starting.
  • The row opens a picker like the other multi-value settings.
  • The debug-only /tmp/plxnative-drawable=<W>x<H> trigger (640x360..=1920x1080) overrides the setting on any version and is documented.
  • Strings in every shipped language; be, es and fr are from @selfhealer-png's fork.

Side effects

  • Only 960x540 (exactly half) keeps texture pixels whole. 1280x720 and 1600x900 resample and may shimmer while scrolling.
  • The Home underlay field turns off at 1600 and 1280 wide and stays on at 960.

Verification

make check, the --no-default-features check, the ARM build, the firmware-load matrix, and simulator captures of the row and picker against a mock server. Not verified on a TV: whether each size is granted, and the sharpness trade.

Making 1080p itself fast on these GPUs is separate work, now in progress.

Co-authored-by: selfhealer-png
Thanks to @chriskoperdraad-tech for the second set's measurements.

🤖 Generated with Claude Code

Measured on a 2016 set (55UH650V, webOS 3.4.3, Mali-T760) with the
framedrop trigger: Home is fill-rate bound at 1080p. Frame prep is about
1.5 ms, yet half of all frames run over 16.7 ms; poster uploads barely
move it and turning the tab glass off (flattabs) does not move it at all.

At 1280x720 (2.25x fewer pixels) webOS grants the surface, the
compositor upscales it to the full panel, and surface::scale/viewport fit
the 1920x1080 canvas into it unchanged. Home on that set:

  seconds at 58-61 fps   9% -> 65%
  frames over 33 ms      7.1% -> 0.5%
  frame p95              34 ms -> 19 ms
  average                46.9 -> 54.5 fps

Text is softer below 1:1, which the set's owner judged fine. webOS 4+
keeps the 1:1 1920x1080 window. /tmp/plxnative-drawable=<W>x<H> (debug
builds, bounded to 640x360..=1920x1080) overrides either way for further
measurement. The surface log no longer asks webOS 1-3 owners to report
the scaled drawable, and the docs that said no set had used it are fixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: selfhealer-png <[email protected]>

@GLinnik21 GLinnik21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @selfhealer-png for the careful measurements. The A/B table and the honest list of side effects made this easy to review, and 54 fps instead of 47 on a 2016 set is a real gain worth chasing. We can't merge it as it stands, for these reasons:

  1. The gate is wider than the evidence. (1..=3).contains(&major) drops every webOS 1-3 set to 720p, but this was measured on one set (webOS 3.4.3, a 2016 4K panel). Our README says 2018 sets on firmware 3.9.3 also report release 3.x, and nobody knows whether those are fill-rate bound. Please narrow it to what you measured (for example webOS 3.4 and below, or keyed on the board), or show measurements on other sets.

  2. 2/3 is an awkward scale for our textures. The surface code treats 1/1, 1/2 and 1/3 as the safe scales because they keep texels whole. Glyphs and icons are rasterised at logical size and minified with linear filtering and no mipmaps, so at 2/3 we expect shimmer and lost hairlines while scrolling and animating, which a still screenshot hides. Could you attach a short capture of scrolling Home and a Detail page at 1280x720, ideally next to an exact 960x540 (a clean 1/2) if your set can run that?

  3. The cause is stated more strongly than measured. Heartbeat framedrop figures plus an A/B between drawables show that 720p is faster on your set, not that it is fill-rate bound. Our rule is that a frame-drop cause needs counter or trace evidence (the profile-tv skill: Mali HWCNT, the per-frame legs, the scheduler trace). If you can't run those, please soften the wording to what was measured, in the PR text and in the surface: ... (fill-rate bound below webOS 4) log line.

  4. Some prose is now false. boot.rs:14-16 ("the television is untouched... the canvas IS the surface"), docs/agent-reference.md around lines 1526-1528 ("1920x1080 on every device so far... nothing scales"), and the "every television seen so far" comments in gfx.rs, run.rs, events.rs and system.rs. The /tmp/plxnative-drawable override also needs a line wherever the other triggers are documented.

  5. Please rebase onto main, which has moved by about a dozen commits.

Still open on our side, and worth saying: the owner will want to see the softness and the underlay field switching off on a real screenshot before deciding that is an acceptable trade. And we can't verify the video window rectangle on webOS 3.x from code.

Happy to help if any of this is unclear.

@chriskoperdraad-tech

chriskoperdraad-tech commented Oct 18, 2026 •

Copy link
Copy Markdown

@selfhealer-png @GLinnik21, here is a second webOS 3 data point for #666, from a different chip: LG OLED C7V (2017, M16P, Mali-T820), webOS 3.9.3, rooted with Homebrew Channel.

Method.

Home, UI routes, seconds with ≥10 frames 1920x1080 debug 1920x1080 nightly 1600x900 debug 1280x720 debug (#666)
Active seconds 86 78 117 66
Average fps 53.4 57.3 73.1 88.0
Seconds at ≥58 fps 43% 56% 79% 80%
Seconds under 45 fps 29% 26% 15% 11%
Frames over 16.7 ms 36% – 16% 2%
Frames over 33 ms 2.3% – 0.1% 0.1%
Median frame p95 26 ms – 18 ms 12 ms
Median worstprep 0.3 ms – 0.1 ms 0.1 ms

I used ≥58 instead of 58–61 because this set presents well above 60 fps. At 720p, 39 of 66 active seconds were over 90 fps, so the panel or compositor seems to run at 120 Hz here.

Same conclusion as your UH650V. Prep is tiny, pixel count is the cost, and 1080p misses the 60 fps budget on about a third of frames on this set too.

The trade-off, as I judged it at TV distance:

  • 1280x720: scrolling is clearly smoother, but the text is disturbingly soft.
  • 1600x900: a bit sharper than 720p, and its smoothness is close to 720p on seconds at ≥58 fps. Once you know what to look for, though, the softness is still noticeable. Someone who doesn't know might notice it less.

So on this set a fixed 1280x720 for every webOS 1–3 TV is not a clear win for everyone: smoother menus versus text I find annoying.

An idea. If it's possible, I think making the lower resolution opt-in would work best. Native 1080p could stay the default, so nobody gets softer text after an update without choosing it, and 1600x900 and 1280x720 could be options, for example through the Settings → System → Interface resolution row from your fork. Then anyone who cares more about smooth menus can switch, and everyone else keeps sharp text.

These are heartbeat figures from one browse per run, not profile-tv counters.

GLinnik21 and others added 7 commits October 18, 2026 12:51
…are opt-in

Merges origin/main into the webOS 3 resolution PR and replaces its automatic
webOS 1-3 -> 1280x720 rule. A second webOS 3 set (OLED C7V, 3.9.3) found 720p
text disturbingly soft, so Automatic now means the native canvas everywhere and
a smaller window is a Settings > System > Interface resolution choice
(Automatic / 1920x1080 / 1600x900 / 1280x720 / 960x540), applied at the next
launch. 1024x576 is dropped: it is not a clean divisor of the canvas.

The choice is install-wide (Session prefs, Install scope, soft-parsed, omitted
at the default) because the window is created once, before anyone is seated.
construct now reads the stored session BEFORE SDL_CreateWindow (peek_settled
would only schedule a background read and answer "not yet"), with a source-order
test. The debug-only /tmp/plxnative-drawable=<W>x<H> trigger stays, outranks the
setting, and is documented. No cause is claimed for the frame drops; the log,
docs and README state what the heartbeat framedrop A/B measured. Prose that
said every television draws 1:1 now says "unless the owner picks a smaller
Interface resolution".

Strings added to every shipped locale (be/de/en/es/fr/it/pt); be/es/fr text
ported from the contributor's fork.

Co-authored-by: selfhealer-png <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…alls back

Review fixes on the Interface resolution setting.

- Launch never bricks on a persisted size: if SDL_CreateWindow or
  SDL_GL_CreateContext refuses a smaller window, the half-made window is
  destroyed and construct retries once at 1920x1080 (window_fallback).
- The resolution is carried through sign-out and the Cleared/Locked reads exactly
  like the language (Retained, both backends; the file backend's retained file
  holds both, soft about an unknown spelling). Delete-all resets the file
  backend's whole file; native keeps it, as it keeps every public preference.
- The root row opens a picker (PickerKind::UiResolution) instead of cycling; a
  refused write keeps the page and the stored checkmark.
- Full1080 is gone (Automatic is native 1920x1080); a stored "1080p" is Automatic.
- Prose: no cause claim for why a smaller window is smoother; the preference key
  list names ui_resolution; the detail strings follow the new shape (fr shortened
  to fit beside the chevron).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Strip the Interface resolution setting. What remains: the debug-only
/tmp/plxnative-drawable=<W>x<H> boot trigger (bounded 640x360..=1920x1080) choosing the
SDL window size, with a retry at the 1920x1080 canvas when the smaller window or its GL
context is refused. The default stays the canvas on every set. Prose now says so, and keeps the
measured webOS 3 heartbeat A/B without a cause claim.

Co-authored-by: selfhealer-png <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restores the setting (revert of f35fd21) and gates it on the firmware: the Settings row (and so
the picker) shows only when signed in on webOS 1-3, and the stored value is applied at boot only
there. On webOS 4+ or an unknown version the window is always the 1920x1080 canvas, whatever is
stored; the debug drawable trigger still outranks everything. One rule,
plx_platform::tv::device::offers_ui_resolution, feeds both through RootInputs and
drawable_for_setting(major, ..). The simulator takes PLXNATIVE_SIM_WEBOS_MAJOR to show the row.

Prose says the drawable is 1:1 unless a webOS 1-3 owner picks a smaller resolution (or the debug
trigger asks); the README webOS 3.x row points at the setting. No cause is claimed.

Co-authored-by: selfhealer-png <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 enabled auto-merge (squash) October 18, 2026 13:46
@GLinnik21 GLinnik21 changed the title webOS 1-3: draw at 1280x720, the compositor fills the panel webOS 1-3: opt-in Interface resolution; native 1080p stays the default Oct 18, 2026
@GLinnik21

Copy link
Copy Markdown
Collaborator

Thanks @selfhealer-png and @chriskoperdraad-tech, two sets with the same picture settled it.

I've pushed a rework to this branch and will merge it once CI is green. On webOS 1-3, Settings → System → Interface resolution (Automatic / 1600x900 / 1280x720 / 960x540) is opt-in and applies at the next launch. Automatic is native 1080p, and webOS 4+ doesn't show the row at all. It's ported from selfhealer's fork, with a few changes:

  • Automatic means native.
  • The setting is read before the window is created. On the fork it was still unread at that point, so launch came up at 1080p.
  • If a smaller size is refused, the app retries at 1080p.
  • The choice survives sign-out.

Separately, I'm working on making 1080p itself cheaper on the GPU, starting with the poster cards. When there's a build, a before/after on your sets at 1080p would be the most useful check.

@GLinnik21
GLinnik21 merged commit af3a670 into plxnative:main Oct 18, 2026
13 checks passed
@chriskoperdraad-tech

Copy link
Copy Markdown

Thanks, this is exactly what I hoped for. Keeping native 1080p as the default and making the lower resolution a choice feels like the right call, and good catch on the setting being read too late on the fork.

Once it's in a nightly I'll try the Interface resolution row on my C7V and let you know how it goes. I'm also happy to do a before/after at 1080p when the poster card work has a build.

danzig666 pushed a commit to danzig666/plx-native that referenced this pull request Oct 18, 2026
The upstream merge brought three new Settings strings with no Hungarian,
which fails the catalog build. Translated; the detail line is kept short
enough for the Settings detail column (561 px).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KBgjCe8KH6Nnp3K51Fybrv
RichiL10 added a commit to RichiL10/plx-native that referenced this pull request Oct 18, 2026
Brings in the upstream commits since 84759b9:
- plxnative#822 HEVC: strip HDR10+ wherever it sits in an SEI NAL
- plxnative#817 Direct play: recover a plain-http body that ends early, goes silent or cannot be crossed
- plxnative#825 Dolby Vision P7 -> 8.1 (the fork's own b0856d6, squashed upstream with the author's
  resolution against plxnative#822)
- plxnative#835 Hungarian UI language, plxnative#836 ARM binary size budget re-baseline, plxnative#666 webOS 1-3 opt-in
  interface resolution

Conflict in rust-modules/media/src/ff.rs only:
- the DV definitions and packet_to_annexb are taken from upstream, which is the author's own
  resolution of plxnative#825 against plxnative#822 (EL drop and RPU rewrite first, then strip_hdr10plus_sei);
  packet_to_annexb is now identical to upstream main
- the fork keeps its video-copy remux fallback that arms the P7 conversion from the route's
  frozen source facts when PMS's Matroska remux omits the DOVI configuration record (remux_dv)
@chriskoperdraad-tech

Copy link
Copy Markdown

A quick follow-up: I installed 0.9.0-nightly-20261020 on my C7V (webOS 3.9.3), and the Interface resolution row works well. I'm staying on Automatic myself, because sharp text at 1080p matters more to me than smoother menus, but it's nice to have the choice.

I'm still happy to do the before/after at 1080p once the poster card work has a build. Thanks again!

@chriskoperdraad-tech

Copy link
Copy Markdown

Here is the 1080p before/after I promised, on the same LG OLED C7V (webOS 3.9.3, Mali-T820), with Interface resolution on Automatic (the log says Interface resolution Auto -> None, drawable 1920x1080).

I did the same kind of Home browse as before, with the D-pad: rows down, along a couple, into a Detail page and back. Both are release nightlies, so there is no framedrop and only the per-second heartbeat fps can be compared.

Home, UI routes, seconds with ≥10 frames 0.9.0-nightly-20261018 0.10.0-nightly-20261031
Active seconds 78 101
Average fps 57.3 63.8
Seconds at ≥58 fps 56% 64%
Seconds under 45 fps 26% 25%

So at native 1080p the average went up by about 6 fps and a few more seconds reach 58+, which fits the poster work that landed in between. The slow seconds did not really move, though: about a quarter of the active seconds are still under 45 fps. I have not looked at which screens those are.

This is one browse per build, not profile-tv counters, so take the small differences with a grain of salt. Text stays sharp, and I'm happy to stay on 1080p now.

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.

3 participants