[PR #7] [MERGED] Preserve graphics backend preferences in fresh Minecraft instances #2256

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7
Author: @ludovic111
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @ludovic111

Base: main ← Head: graphics-backend-preferences


📝 Commits (2)

  • 5f24e28 Preserve requested graphics backend by marking current option version
  • e8d1629 Validate real Vulkan gameplay and unavailable-driver fallback

📊 Changes

5 files changed (+24 additions, -1 deletions)

View changed files

📝 docs/playable-validation.md (+13 -0)
📝 packs/mods.lock.json (+1 -0)
📝 tests/test_packs.py (+4 -0)
📝 tools/build_mod.py (+4 -0)
📝 tools/build_pack.py (+2 -1)

📄 Description

Generated options files lacked a data-version marker. Minecraft therefore treated them as old options, ran its graphics-API reset migration and silently replaced the requested backend with Default. Add the verified 26.3 data version (5023) to every profile and verify that lock value against version.json inside the checksum-verified game JAR during mod builds.

Validation: the original generated Vulkan profile started with OpenGL and saved Default; adding version:5023 preserves Prefer Vulkan and the actual game initializes its Vulkan backend, reaches the demo world and records gameplay. All eleven packs have the current version and intended backend; the portable-pack regression assertion and all 19 Python tests pass. The original Java JAR is unchanged. The exact original JAR completed a 120-second Vulkan game capture (256 frames / 2,372 ticks, matching CSV/JSON and resident-memory samples), and saved/quitted cleanly. DH data continued updating. With Vulkan drivers unavailable only in a separate test process, backend creation failed and the game reached its menu through the OpenGL fallback. These fixes are included before publishing 0.7.0. No M2 performance gain is inferred from software-renderer compatibility tests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `graphics-backend-preferences` --- ### 📝 Commits (2) - [`5f24e28`](https://github.com/horizon-rust/horizon/commit/5f24e2807cdbf8c5b5a1b9987ec32b1bf9ec71b8) Preserve requested graphics backend by marking current option version - [`e8d1629`](https://github.com/horizon-rust/horizon/commit/e8d1629d31fbdab7ec3dafb06f30b97bd937777c) Validate real Vulkan gameplay and unavailable-driver fallback ### 📊 Changes **5 files changed** (+24 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/playable-validation.md` (+13 -0) 📝 `packs/mods.lock.json` (+1 -0) 📝 `tests/test_packs.py` (+4 -0) 📝 `tools/build_mod.py` (+4 -0) 📝 `tools/build_pack.py` (+2 -1) </details> ### 📄 Description Generated options files lacked a data-version marker. Minecraft therefore treated them as old options, ran its graphics-API reset migration and silently replaced the requested backend with Default. Add the verified 26.3 data version (5023) to every profile and verify that lock value against version.json inside the checksum-verified game JAR during mod builds. Validation: the original generated Vulkan profile started with OpenGL and saved Default; adding version:5023 preserves Prefer Vulkan and the actual game initializes its Vulkan backend, reaches the demo world and records gameplay. All eleven packs have the current version and intended backend; the portable-pack regression assertion and all 19 Python tests pass. The original Java JAR is unchanged. The exact original JAR completed a 120-second Vulkan game capture (256 frames / 2,372 ticks, matching CSV/JSON and resident-memory samples), and saved/quitted cleanly. DH data continued updating. With Vulkan drivers unavailable only in a separate test process, backend creation failed and the game reached its menu through the OpenGL fallback. These fixes are included before publishing 0.7.0. No M2 performance gain is inferred from software-renderer compatibility tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:26 +07:00
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#2256
No description provided.