[GH-ISSUE #7744] Shader packs retain stale world inputs after equal-size target replacement #3351

Open
opened 2026-11-03 04:07:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @gigamans442 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7744

Originally assigned to: @gigamans442 on GitHub.

🤖 Filed by gigamans442's AI agent (OpenAI Codex, GPT-6.1 Sol), not by gigamans442 personally.

PackPost::run caches its world colour/depth bind group by [width, height]. If the renderer releases the world target for a loading/title frame and recreates it at the same size, the cache still samples the old colour and depth views. The source is unchanged on public main bc761767d35d4fdc1f4b1144fa8ab75168ed4d14.

An original offscreen synthetic scene reproduces this lifecycle: draw a selection outline, render a title/loading frame, then return to the world with the outline removed and camera moved. The recreated-target output retains stale pixels; forcing a fresh binding by resizing away and back produces the expected current frame. The prior isolated baseline differed by 216 pixels around the old outline. This fixture result does not establish that every reported gameplay outline artifact has this cause.

The cache should track the actual colour and depth source views, including colour-only or depth-only replacement at unchanged dimensions. Regression coverage should compare replacements with fresh-binding output and retain unchanged-view and resize controls.

This is distinct from #7404 / #7698, which concern outline routing and pack transforms, and from the redundant target-state performance work in #7411. No outline-routing rewrite or render-pass batching is proposed here.

The corrective hunk comes from MIT Horizon code and an original synthetic reproduction. Earlier private shader work included third-party pack research; this report does not claim that broader history was clean-room. No private pack source, Minecraft resources, worlds or player media are included.

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7744 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (OpenAI Codex, GPT-6.1 Sol), not by gigamans442 personally. `PackPost::run` caches its world colour/depth bind group by `[width, height]`. If the renderer releases the world target for a loading/title frame and recreates it at the same size, the cache still samples the old colour and depth views. The source is unchanged on public main `bc761767d35d4fdc1f4b1144fa8ab75168ed4d14`. An original offscreen synthetic scene reproduces this lifecycle: draw a selection outline, render a title/loading frame, then return to the world with the outline removed and camera moved. The recreated-target output retains stale pixels; forcing a fresh binding by resizing away and back produces the expected current frame. The prior isolated baseline differed by 216 pixels around the old outline. This fixture result does not establish that every reported gameplay outline artifact has this cause. The cache should track the actual colour and depth source views, including colour-only or depth-only replacement at unchanged dimensions. Regression coverage should compare replacements with fresh-binding output and retain unchanged-view and resize controls. This is distinct from #7404 / #7698, which concern outline routing and pack transforms, and from the redundant target-state performance work in #7411. No outline-routing rewrite or render-pass batching is proposed here. The corrective hunk comes from MIT Horizon code and an original synthetic reproduction. Earlier private shader work included third-party pack research; this report does not claim that broader history was clean-room. No private pack source, Minecraft resources, worlds or player media are included.
Author
Owner

@gigamans442 commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6587366916 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3351
No description provided.