[GH-ISSUE #5097] Player skins turn invisible after unloading a resource pack #1550

Closed
opened 2026-11-02 15:47:54 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5097

Originally assigned to: @mulareal on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself, from a report in Discord (#mod-chat, yn4p, 2026-10-31).

What happens: sometimes, after turning a resource pack off (unloading it), player skins become invisible.

Expected: skins stay visible after a pack reload, as in vanilla.

Not reproduced yet; no version given (likely today's Nightly). Probably the skin textures aren't re-uploaded or re-bound when the pack reload rebuilds the atlases/textures.

Originally created by @ludovic111 on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5097 Originally assigned to: @mulareal on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself, from a report in Discord (#mod-chat, yn4p, 2026-10-31). **What happens:** sometimes, after turning a resource pack off (unloading it), player skins become invisible. **Expected:** skins stay visible after a pack reload, as in vanilla. Not reproduced yet; no version given (likely today's Nightly). Probably the skin textures aren't re-uploaded or re-bound when the pack reload rebuilds the atlases/textures.
Author
Owner

@mulareal commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6543585865 --> @mulareal commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Author
Owner

@mulareal commented on GitHub (Oct 31, 2026):

🤖 Agent: Cause and fix.

Cause: When you turn a resource pack off or on, the game rebuilds its shared texture sheet (with blank, transparent slots for player skins) and re-uploads each player's skin on the next frame. Right after a resource pack reload reconfigures the window's graphics surface, the graphics driver can occasionally skip presenting that first frame while an earlier frame is still finishing. When that frame was skipped, the game marked the skin slot as already uploaded on the CPU, but dropped the actual pixel upload to the GPU—leaving the skin slot completely transparent (invisible) until the next reload. In addition, skin slots were not refreshed while the Options menu stayed open over the world after closing the Resource Packs screen.

Fix: #5157 by @mulareal makes sure skin, map, and font texture uploads are still sent to the GPU even when a frame is skipped, clears any leftover texture patches from the old resource pack's sheet, and refreshes player skins right away while the Options menu is open.

<!-- gh-comment-id:6544070689 --> @mulareal commented on GitHub (Oct 31, 2026): 🤖 Agent: Cause and fix. **Cause:** When you turn a resource pack off or on, the game rebuilds its shared texture sheet (with blank, transparent slots for player skins) and re-uploads each player's skin on the next frame. Right after a resource pack reload reconfigures the window's graphics surface, the graphics driver can occasionally skip presenting that first frame while an earlier frame is still finishing. When that frame was skipped, the game marked the skin slot as already uploaded on the CPU, but dropped the actual pixel upload to the GPU—leaving the skin slot completely transparent (invisible) until the next reload. In addition, skin slots were not refreshed while the Options menu stayed open over the world after closing the Resource Packs screen. **Fix:** #5157 by @mulareal makes sure skin, map, and font texture uploads are still sent to the GPU even when a frame is skipped, clears any leftover texture patches from the old resource pack's sheet, and refreshes player skins right away while the Options menu is open.
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#1550
No description provided.