Repository navigation
Integrate all post-v68 Reader work - #116
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5328f06839
ℹ️ 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".
| child.image_preview = | ||
| views::render_effect_visual_view(r, texture, animation); | ||
| child.info_preview = | ||
| views::render_effect_record_view(r, texture, animation); |
There was a problem hiding this comment.
Bound eager effect-preview allocation
Avoid retaining both full-size renders for every effect record. Each call here creates a 1080×1440 RGBA image (about 6.2 MB), so every E/G/P/V/C child adds roughly 12.4 MB before the gallery later downsamples it to 256×256; because the parser permits thousands of records, a valid moderately sized bank can consume hundreds of megabytes or fail opening when allocation throws. Generate these views lazily or keep bounded thumbnails under a bank-wide pixel budget.
Useful? React with 👍 / 👎.
| entry.translation = { | ||
| f32(b, base + 0x0CU), | ||
| f32(b, base + 0x10U), | ||
| f32(b, base + 0x14U), | ||
| }; |
There was a problem hiding this comment.
Reject non-finite runtime floats before rasterizing
Validate the decoded V transform values with std::isfinite before accepting the view. A structurally valid or corrupt FXBANK can encode NaN/Infinity in these fields; render_v_visual subsequently converts the translation and scale results to int, which is undefined for non-finite values and can also feed overflowing coordinates into the rasterizer, potentially crashing or hanging while merely opening the file.
Useful? React with 👍 / 👎.
Integrates the remaining post-v68 Native Reader work after the v72 em034 Lady runtime merge: FXBANK gallery visualization, Visual/Info dual previews, gallery/runtime tests and Android UI wiring. Keeps v72 identity and does not commit APK artifacts.