Skip to content

feat(visualizer): adopt automatic Native core quality and trails - #36

Merged
johnneerdael merged 7 commits into
mainfrom
feat/native-core-integration
Oct 5, 2026
Merged

johnneerdael merged 7 commits into
mainfrom
feat/native-core-integration

Conversation

@johnneerdael

@johnneerdael johnneerdael commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Integrate ProjectM-TV's single Native core with automatic resolution and live memory budgeting. Remove obsolete fixed-resolution/RAM controls and add Standard, Medium and High native trails. This companion depends on johnneerdael/ProjectM-Android#37 publishing its core before it can merge; local validation uses its staged AAR.

Release notes

  • Visualization resolution now adapts to the target frame rate and available memory, up to native 4K. Previously saved fixed resolutions and RAM toggles use Auto.
  • Native trails defaults to Standard. Medium and High add detail above 1330p and may cause Auto to choose a lower resolution.
  • Preset moods follow the current core's All, Chill, Normal and Intense beta collections. Retired music categories use All.
  • Rendering configuration is rechecked against live memory before resume and allocation growth. Reducing trails or switching transitions to Instant waits for freed textures before reassessing pressure; old frame-rate samples cannot authorize new growth.

Docs

Evaluated README, the Pages guide in docs/user-guide, contributor instructions and affected Markdown. Updated README, settings/playback guidance and AGENTS.md for automatic quality, trails, preference compatibility and managed-generation ownership. Replaced obsolete quality/mood screenshots with reviewed captures of the isolated TV component. The latest allocation fix updates the contributor API guidance; README and settings/playback guide remain accurate because resolution remains Auto with live memory checks. Strict MkDocs build passes. The isolated screenshot uses the app's existing TV theme/components; Android emulator system chrome is visible.

Related issue

Companion to johnneerdael/ProjectM-Android#37. Publication of that new core is a merge prerequisite; no version bump is included here.

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Documentation

Validation

  • Staged full ARM core AAR: d6c3220f8286ca197879af0a18cf5e9746c08b355ea4f7cd8bb7d90871ddcbc9 (producer head 8bc32236).
  • ./gradlew ktlintCheck :app:assembleGithubDebug :app:assembleGithubDebugAndroidTest :app:compileFossDebugKotlin :app:testGithubDebugUnitTest passed with -PprojectmCoreRepo pointing to the local Ivy layout and -PprojectmCoreVersion=2.3.4-local-v5.
  • Unit suite: 1,399 tests, zero failures/errors, 25 existing skips. Retired-preference/gain tests and current-mood normalization regression pass. Mood regression was reproduced before the correction.
  • Emulator core test confirms managed generation completion, rapid combined settings, High request, preset changes and pause/resume. Settings test confirms D-pad Standard-to-High selection, persisted preference and focus return. Both pass together against the staged current core.
  • mkdocs build --strict and AST-only graphify update . pass.
  • Public released-core build validation will be added once producer publication finishes.

Test device and Android version: Owned emulator-5594, API 34, arm64, 3840×2160, Apple M4 Pro host GPU. This is not a physical-TV performance or brightness benchmark.

Screenshots or recordings

Automatic quality component
Native trails picker

Risk and compatibility

TvVisualizerHost acknowledges context/configuration generations, drops stale dimensions/generations, reviews trails/transition atomically against the allocation captured before the edit or height callback, defers confirmed reductions’ pressure check until the new generation releases old textures, reviews full allocation before net growth or unconfirmed allocations, and publishes size/trails/duration coherently. DataStore keys for retired fixed-height/RAM controls are ignored; other settings remain. Invalid trail gains use Standard. Audio tap/player/service ownership and Room schema are unchanged. Native trails can still differ on some presets/drivers; the producer has a post-merge research handover. Memory budgeting reduces pressure and does not guarantee every vendor process policy.

  • No new secrets, private data or telemetry.
  • New user text uses default English resources; other locales untouched.
  • No dependency/lockfile or app version bump; existing latest-core dependency remains.
  • No Room schema change.
  • Upgrade behavior and limits documented.
  • Release notes match the final diff and keep tests separate.

Wire managed render budgets and retire fixed resolution and RAM toggles. Add Standard, Medium and High trails with preference coverage and rapid allocation checks. Builds, units, lint and core lifecycle device test pass against the staged core. Remote settings focus test and current screenshots remain in progress before PR completion.
…ttings

Normalize retired mood IDs to All, offer the current Chill/Normal/Intense collections, and replace stale quality screenshots. Staged latest-core lint, unit and both-flavor builds pass; managed lifecycle and D-pad/persistence/focus device journeys pass.
@github-actions github-actions Bot added documentation Improvements or additions to documentation player ui labels Oct 5, 2026
@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-05T20:07:30.633307Z 8353277 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.

@johnneerdael

Copy link
Copy Markdown
Owner Author

The first Build TV APK check confirms the producer dependency: compilation cannot find BudgetStatsListener, revalidateForResume, setRenderConfiguration and the other new APIs in the currently published stable core. The staged new core passes both-flavor builds, units, lint and both emulator journeys. After ProjectM-TV #37 publishes its canonical Native AAR, I will rerun the failed checks and repeat local validation against that exact published artifact. This PR remains unmerged until those checks pass.

Review trails and transition settings as one tuple using the core allocation API. Continue renewing configuration generations for reductions, while requiring a full replacement budget only for net growth or already-pending allocations.
@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: 6d6303f069

ℹ️ 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/user-guide/playback.md Resolved
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: bfc32ed938

ℹ️ 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

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 9ffa77d0fa

ℹ️ 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

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: 056818f445

ℹ️ 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".

Delete unused fixed-resolution helpers, RAM-limit labels and twelve old category labels from the default locale. Keep the settings absence checks as test literals, so they no longer retain production resources. Active diagnostics and collection labels remain in use.
@johnneerdael

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 8353277ed4

ℹ️ 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 5f09ef3 into main Oct 5, 2026
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation player ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants