Skip to content

feat(stream): ask for the output's exact rate under Native - #30

Merged
enricobuehler merged 1 commit into
mainfrom
feat/native-exact-refresh
Nov 26, 2026
Merged

enricobuehler merged 1 commit into
mainfrom
feat/native-exact-refresh

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

The display seam reports the scan-out in millihertz (Refresh(59_940), Refresh(119_880)), and a Native pick rounded it to whole hertz. The host then produced 120 pictures a second for an output that shows 119.88.

A Native pick now states the exact rate, as the shared clients do (Settings::stream_mode in pf-client-core): native_mode builds Mode::exact, and stream_mode keeps the exact rate only where the document says Native. A picked rate stays whole hertz. A host that cannot honour the exact rate answers with the whole one, as before.

The stage keeps its stream_hz as it is: it is a cushion ceiling and a budget conversion there, not a clock, so 0.1 % makes no difference.

Checks

cargo fmt --all --check, cargo test -p pf-ps5-app (83 passed, including the new a_native_rate_is_the_outputs_exact_one), cargo clippy --workspace --all-targets -- -D warnings.

Not run on a console. It wants one stream on a 119.88 Hz output in the next tester round: the host log should name the mode at 119.88, and the picture should hold with no periodic repeat.

The display seam reports the scan-out in millihertz, 59 940 or 119 880,
and a Native pick rounded it to whole hertz. The host then produced 120
pictures a second for an output that shows 119.88.

A Native pick now states the exact rate, as the shared clients do. A
picked rate stays whole hertz, and a host that cannot honour the exact
one answers with the whole rate as before.
@enricobuehler
enricobuehler merged commit 6489091 into main Nov 26, 2026
3 of 4 checks passed
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.

1 participant