Skip to content

feat: make Native trails and automatic 4K quality the single core default - #37

Merged
johnneerdael merged 18 commits into
mainfrom
feat/native-trails-production
Oct 5, 2026
Merged

johnneerdael merged 18 commits into
mainfrom
feat/native-trails-production

Conversation

@johnneerdael

@johnneerdael johnneerdael commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Make the Native renderer the only new core artifact, with automatic resolution up to native 4K and Standard/Medium/High trails. Retire fixed-resolution and RAM-limit controls; preserve music headroom through live memory budgeting and reviewed render allocations.

Changes

  • Instance-owned authored feedback canvas plus bounded native trail detail; Standard skips the additional native warp. Retain explicit-off controls and diffusion/resource fallback.
  • Auto-only quality uses the panel, target FPS, live memory reserve, estimated rendering allocations and pressure/recovery hysteresis. Fresh generation acknowledgements guard startup, resize, resume and allocation changes; stale FPS cannot authorize growth.
  • Canonical APK/core release names now publish one Native AAR. Reject new capped builds and preserve immutable historical release retries.
  • Update settings, diagnostics, integration guidance, release tooling, user guide and reproducible validation harnesses.

Release notes

  • Resolution now adjusts automatically to the selected frame rate and available memory, up to native 4K on a 4K screen. Previously saved fixed resolutions and RAM-limit toggles use Auto.
  • Native trails defaults to Standard. Medium and High add trail detail above 1330p and can cause Auto to choose a lower resolution. Diagnostics shows the active canvas or fallback.
  • Feedback brightness improves on the measured majority of presets. Some presets still change brightness, color or structure; documented Waltra and Hexcollie differences on Android and additional Mac cases have a post-merge research handover.
  • New core releases use the Native renderer under the canonical AAR filename; the separate 1330p capped build is retired. Historical releases are preserved.

projectM patches

  • Production changes are in tools/projectm-patches/0042-feedback-detail-layer.patch; no submodule commit changed. Patches 0001–0041 are retained.
  • Patch header and source provenance are recorded; all 42 patches apply to the pinned engine.
  • Fresh recursive checkout at c273b43a: ./gradlew :core:assembleDebug passed for both ARM ABIs. Build log.
  • core/src/test/native/run_native_tests.sh passed with ASan/UBSan, including real patched projectM regressions. macOS skips the EGL/GLES transition-overlay executable; the private ANGLE/GLES diagnostic and linked feedback programs ran separately.
  • All three feedback fragment programs link with the vertex program as GLSL ES 3.00 using glslangValidator -l; logs are in the evidence validation folder.
  • Paired brightness captures use host validation per the owner's instruction. Live TV checks covered actual FPS/Auto/memory/music behavior, without a matched physical-TV brightness comparison.

Validation

  • Integrated latest-main build: ./gradlew -PsetupScreenshotTest :app:assembleDebug :app:assembleDebugAndroidTest :app:assembleProfile :core:assembleRelease testReleaseUnitTest passed.
  • Native engine, policy and 15 real-engine regression groups passed with sanitizers (leak detection disabled for driver caches).
  • 84 app/core JVM tests passed on the final allocation-release fix, including marginal pre-release RAM, pressure persisting after release, growth/pending-budget checks, visibility resumes, pre-edit allocation accounting across height callbacks, and generation-owned FPS windows. ./gradlew :core:testDebugUnitTest :app:testDebugUnitTest :app:assembleDebug :core:assembleRelease passed.
  • python3 -m unittest discover -s .github/scripts/tests -v: 82 passed.
  • Native trails harness: 42 tests passed; diagnostics fake-ADB tests: 10 passed.
  • Auto-only settings/D-pad/persistence/generation instrumentation passed on owned API 34 emulator; screenshot updated.
  • Strict MkDocs builds passed after documentation updates.
  • Milkbeat companion compiles against the new full ARM AAR; GitHub/FOSS compilation, APK/test build, unit tests, lint and managed rendering/preset/pause/resume/rapid-gain emulator test passed. Companion publication waits for this released core.

On a TV

  • Rooted AM6, Android 9, armeabi-v7a, Mali-G52 GLES 3.2; measured RAM 3867 MiB. The TV was already awake.
  • Controlled Royal 191 Standard reached 3840×2160 around 29.2–30.3 FPS at a 30 FPS target. Medium and High probed 1440p around 18 FPS, then settled at 1260p near 30 FPS. This is real music input, not a before/after brightness benchmark.
  • Milkbeat kept playback state 3 and the same PID throughout. This observation does not guarantee protection against every vendor memory policy.
  • Test properties, profile preferences and previous foreground restored; notification-listener settings unchanged. Test profile remains installed and stopped.

Evidence

  • Actual-AAR Android matrix: 17 presets × 8 profiles, 136 verified jobs and 51 eight-frame identity control pairs. Standard lowers per-frame absolute luma error on 13/17 risk-selected witnesses; known GLES exceptions remain.
  • Broad Mac matrix: 160 risk-selected presets, 976 verified jobs, 176 eight-frame repeat/off control pairs. Standard lowers luma error on 129, equals it on 17, raises it on 14. Capture/source/PCM/preset/texture/worker identities, comparison CSV and reviewed contact sheets are retained.
  • The old 9606-preset corpus supplies selection only. A disk-full PNG interruption was preserved and recovered by verified-success reuse and targeted retries under the unchanged protocol; final matrix has zero failures.
  • Post-merge research handover: named reproductions, pass-boundary diagnostics, source identities and research plan. The owner explicitly accepted rare visual exceptions for this follow-up when the measured majority improves.

Docs and release

  • Evaluated README, architecture, profiling/diagnostics/releasing docs, user guide/Pages sources, contributor instructions and other affected Markdown. Updated behavior, controls, screenshot, integration/lifecycle, canonical AAR policy and measured limits. Preserved latest-main beta collection guidance. The final allocation-release fix updates core-host API guidance in README, architecture, spec and AGENTS; user-guide settings remain accurate because Auto still checks live memory and persistent pressure.
  • Release notes describe verified final behavior and known limitations; test results stay in Validation.
  • No manual version bump or release section. Release automation owns artifact links, checksums and Downloader details.

Not tested / known limitations

  • Not a whole-corpus certification or population estimate: selection is enriched for known risks. Brightness metrics alone do not prove structure or every temporal frame.
  • Mac uses Apple's OpenGL/Metal driver and float PCM; Android uses a different wrapper/uint8 feed. Host timing is not TV FPS. Instrumented worker bytes differ from shipping AARs.
  • Waltra/Hexcollie GLES fidelity and larger Mac color/pattern exceptions remain post-merge research, with no claimed physical-TV brightness outcome or proven root cause.
  • Native captures use frozen streamed receipts; reduced PNGs and pilot full native frame 300 are independently checked. Other native raw bytes are not retained for independent rehash.

Preserve the reviewed detail-layer prototype and clipping evidence for the production port. Add frozen actual-AAR builds and a resumable focused emulator runner, using v2.3.3 as the source baseline. The production engine and app setting are still in progress.
Port authored feedback and the centered headroom limiter into the shipping patch series. Add Standard/Medium/High, automatic full-panel FPS/memory quality, coherent allocation acknowledgement and lifecycle checks. Publish one Native core under canonical names and retire capped builds and manual resolution/RAM controls. Focused preset comparisons and live device evidence remain follow-up gates before review/merge.
…oduction

# Conflicts:
#	.github/workflows/preset-lab.yml
#	AGENTS.md
#	docs/user-guide/settings.md
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T19:59:24.016551Z 3763293 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5074d664ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Discard mixed windows when a same-size allocation change advances the generation, and label callbacks with the sampled window generation. Regression covers the 27 old frames leaking into a new budget, guarded frames, and unchanged legacy cadence.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5067560285

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/src/main/cpp/native-lib.cpp Resolved
Allow a plain StatsListener renderer to follow a released managed renderer without inheriting its dimensions or allocation settings. Clear the request during release and context cleanup, and advance its generation so delayed configuration callbacks cannot restore the old owner.

Cover different-size and same-size managed-to-legacy handoffs through JNI, including retained legacy settings and rejection of stale configuration callbacks.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90845df9df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/tv-diagnostics.sh Resolved
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1cec55cf92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Resolved
Review trails and blending together so opposite-field edits do not pay for an intermediate allocation. Renew managed configuration generations for reductions as well as growth, but require a full zero-resident review only for net growth or an allocation that is still pending.

Cover tight-headroom reductions, mixed-field net decreases, unrendered rapid edits and missing memory samples. Keep existing single-field QualityController setters compatible.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a8a75f4435

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/native-trails/run_validation.py Resolved
Freeze the numeric user in new protocols and use it for installation, instrumentation, run-as, capture pull and cleanup. Verify the scoped package lookup before rendering.

Require the checksum-pinned original validator source when inspecting historical schema1 user0 captures; preserve completed evidence unchanged.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8cf3406f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Keep confirmed allocation reductions at their current height until the new generation releases old textures. Continue full budget checks for growth or pending allocations, and preserve visibility-resume checks. Cover marginal headroom, persistent pressure and unknown pending memory.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8fc258a71e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Determine net growth in QualityController using the allocation captured before settings mutate or invoke a height listener. Remove duplicate host comparisons at the already-lowered size. Reproduce both trail and blend changes that fit after one height reduction without a second full-allocation downshift.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8bc322361c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/ARCHITECTURE.md Resolved
Remove the fixed Native/capped-core integration paragraph and obsolete controls. Label older cap measurements and the pinned 2.3.3 prediction backend as historical, and correct the current diagnostics report contents.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3763293f7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@johnneerdael
johnneerdael merged commit 910e837 into main Oct 5, 2026
2 of 8 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.

2 participants