Repository navigation
webOS 1-3: opt-in Interface resolution; native 1080p stays the default - #666
Conversation
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
left a comment
There was a problem hiding this comment.
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:
-
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/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?
-
The cause is stated more strongly than measured. Heartbeat
framedropfigures 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 (theprofile-tvskill: 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 thesurface: ... (fill-rate bound below webOS 4)log line. -
Some prose is now false.
boot.rs:14-16("the television is untouched... the canvas IS the surface"),docs/agent-reference.mdaround lines 1526-1528 ("1920x1080 on every device so far... nothing scales"), and the "every television seen so far" comments ingfx.rs,run.rs,events.rsandsystem.rs. The/tmp/plxnative-drawableoverride also needs a line wherever the other triggers are documented. -
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.
|
@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.
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:
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 |
…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]>
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]>
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]>
… no setting" This reverts commit f35fd21.
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]>
|
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:
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. |
|
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. |
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
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)
|
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! |
|
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 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
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 |
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
framedropA/B, notprofile-tvcounters, so no cause is claimed)Design
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./tmp/plxnative-drawable=<W>x<H>trigger (640x360..=1920x1080) overrides the setting on any version and is documented.Side effects
Verification
make check, the--no-default-featurescheck, 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