Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ae131cdce
ℹ️ 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".
| if (!part.placement.resolved) return false; | ||
| part.placement.mode = CompositePlacementMode::HostJoint; | ||
| binding.control_domain = domain; |
There was a problem hiding this comment.
Preserve the component transform before releasing its constraint
When a slot-11 raw MOT or slot-13 Script Play switches component 0 to IndependentMotionScript, this only changes the placement mode. attach_part_skeleton stored the live transform in attachment_offset and the posed scene nodes, not in root_matrix, which therefore remains the source identity; load_motion subsequently snapshots that stale root_matrix for the animated part. The component consequently jumps from its body joint to source origin as soon as its independent animation starts, rather than freezing at its resolved equipment transform.
Useful? React with 👍 / 👎.
| Session::MotionScriptRole role = Session::MotionScriptRole::Primary; | ||
| const bool lady_archive = | ||
| archive_name.find("em034") != std::string_view::npos; |
There was a problem hiding this comment.
Normalize the archive name before identifying Lady
For a valid archive named EM034.PAC or with any other capitalization, archive_variants correctly selects the Lady appearance case-insensitively, but this check leaves slots 12 and 13 with the generic Primary role. The other new find("em034") checks likewise omit dynamic visuals and the special component pack routing, so Script Play is incomplete solely because the user-visible filename was capitalized. Use the same normalized basename comparison as the variant lookup.
Useful? React with 👍 / 👎.
| auto& mesh = out->presentation_mesh; | ||
| mesh = session.render_mesh; | ||
| out->presentation_textures = session.attached_textures; |
There was a problem hiding this comment.
Avoid copying every decoded texture on each rendered frame
While any dynamic Lady visual is active, every call to render_session constructs a fresh PreparedView and this assignment deep-copies every ImagePreview::rgba8 buffer; the later insertion also copies each dynamic visual's decoded textures. The Android render loop invokes this at 20–60 fps, and Shl03 visuals have no retirement frame, so playback can continuously allocate and copy multiple decoded PTX banks, causing avoidable frame drops and memory pressure. Cache/share the immutable texture data rather than rebuilding it per frame.
Useful? React with 👍 / 👎.
Temporary exact-head validation PR for the canonical Lady runtime branch. Do not merge. Source head: 6ae131c. PR #104 remains the device-acceptance PR and stays draft.