Remove shader packs
A developer of Iris showed that Horizon's shader pack code was written from Iris's source. This removes it: the horizon-shaderpack crate, Java pack loading and its render stages, Horizon's own WGSL packs and the example packs, the Shader Packs screen and its option, the launcher's shader pack browsing and installing, and the docs about them. Shader packs may come back later as a clean-room rewrite. The vanilla renderer and its post-processing (resolution scale, FXAA) are unchanged. Options files that name a pack load and drop the key; the launcher reads manifests that list a shader pack, and files in `shaderpacks/` are never deleted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-14
@@ -3,7 +3,7 @@ import subprocess
|
||||
import unittest
|
||||
|
||||
from tools.test_dispatch import failure_summary
|
||||
from tools.test_client_graphics import graphics_failure_summary, validate_shader_report
|
||||
from tools.test_client_graphics import graphics_failure_summary
|
||||
from tools.test_culling_rays import FixtureTimeout
|
||||
|
||||
|
||||
@@ -26,19 +26,6 @@ class FixtureDiagnosticTests(unittest.TestCase):
|
||||
'ready_client_ticks': 0})
|
||||
self.assertNotIn('private', json.dumps(result))
|
||||
|
||||
def test_required_shaders_cannot_pass_with_disabled_unknown_or_different_pack(self):
|
||||
report = {'shader_required': True, 'iris_capture_status': 'available',
|
||||
'iris_shaders_enabled': True, 'iris_expected_pack_matches': True}
|
||||
validate_shader_report(report, True)
|
||||
for field, bad in [('shader_required', False), ('iris_capture_status', 'unavailable'),
|
||||
('iris_shaders_enabled', False), ('iris_shaders_enabled', 'true'),
|
||||
('iris_expected_pack_matches', False)]:
|
||||
with self.subTest(field=field, bad=bad), self.assertRaises(AssertionError):
|
||||
validate_shader_report({**report, field: bad}, True)
|
||||
with self.assertRaises(AssertionError):
|
||||
validate_shader_report({}, True)
|
||||
validate_shader_report({}, False)
|
||||
|
||||
def test_graphics_diagnostics_separate_demo_auth_and_exclude_methods_messages(self):
|
||||
output = '\n'.join([
|
||||
'com.mojang.authlib.exceptions.InvalidCredentialsException: private-token',
|
||||
|
||||
+6
-14
@@ -74,13 +74,7 @@ class PackTests(unittest.TestCase):
|
||||
if name != "config/horizon-profile.txt":
|
||||
self.assertEqual(files[name], value, name)
|
||||
self.assertNotIn("config/DistantHorizons.toml", files)
|
||||
self.assertNotIn("config/iris.properties", files)
|
||||
self.assertNotIn("distanthorizons", candidate["mods"])
|
||||
self.assertNotIn("iris", candidate["mods"])
|
||||
|
||||
def test_missing_exact_iris_sodium_dependency_is_rejected(self):
|
||||
with self.assertRaisesRegex(ValueError, "Missing pinned dependency"):
|
||||
build_pack.validate_selection(build_pack.read_lock(), ["iris"])
|
||||
|
||||
def test_dispatch_experiment_does_not_enable_other_controllers(self):
|
||||
for name, profile in build_pack.PROFILES.items():
|
||||
@@ -105,7 +99,6 @@ class PackTests(unittest.TestCase):
|
||||
self.assertEqual(options["renderDistance"], "12")
|
||||
self.assertEqual(options["maxFps"], "260")
|
||||
self.assertEqual(json.loads(options["preferredGraphicsBackend"]), backend)
|
||||
self.assertNotIn("config/iris.properties", files)
|
||||
|
||||
def test_tick_membership_experiment_preserves_visual_and_worker_settings(self):
|
||||
original = build_pack.overrides("m2-balanced", b"fixture")
|
||||
@@ -384,11 +377,11 @@ class ComparisonTests(unittest.TestCase):
|
||||
candidate["mods"] = list(reversed(candidate["mods"]))
|
||||
self.assertFalse(compare_benchmarks.software_warnings(baseline, candidate))
|
||||
candidate["mods"].remove("horizonlab@0.16.0")
|
||||
candidate["mods"].extend(["horizonlab@0.17.0", "iris@1.11.7"])
|
||||
candidate["mods"].extend(["horizonlab@0.17.0", "lithium@0.24.1"])
|
||||
result = compare_benchmarks.compare(baseline, candidate)
|
||||
self.assertEqual(result["mismatches"], [])
|
||||
self.assertIn("Only baseline: horizonlab@0.16.0.", result["warnings"])
|
||||
self.assertIn("Only candidate: horizonlab@0.17.0, iris@1.11.7.", result["warnings"])
|
||||
self.assertIn("Only candidate: horizonlab@0.17.0, lithium@0.24.1.", result["warnings"])
|
||||
for field in ["java_vendor", "java_vm_name", "java_runtime_version"]:
|
||||
candidate[field] = "Different implementation"
|
||||
self.assertTrue(any(f"Software {field} differs" in warning
|
||||
@@ -425,16 +418,15 @@ class ComparisonTests(unittest.TestCase):
|
||||
result = compare_benchmarks.compare(baseline, candidate)
|
||||
self.assertTrue(any("not captured" in warning for warning in result["warnings"]))
|
||||
|
||||
def test_terrain_quality_and_shader_changes_cannot_look_like_equal_workloads(self):
|
||||
def test_terrain_quality_changes_cannot_look_like_equal_workloads(self):
|
||||
baseline = self.report()
|
||||
baseline.update(dh_capture_status="available", dh_lod_radius_chunks=128, dh_horizontal_quality="MEDIUM",
|
||||
iris_capture_status="available", iris_shaders_enabled=False, dh_thread_count=2, world_difficulty="NORMAL")
|
||||
dh_thread_count=2, world_difficulty="NORMAL")
|
||||
candidate = copy.deepcopy(baseline)
|
||||
candidate.update(dh_lod_radius_chunks=256, iris_shaders_enabled=True, iris_shader_pack="Example pack",
|
||||
dh_thread_count=1, world_difficulty="PEACEFUL", visual_settings_changed=["render_distance"])
|
||||
candidate.update(dh_lod_radius_chunks=256, dh_thread_count=1, world_difficulty="PEACEFUL",
|
||||
visual_settings_changed=["render_distance"])
|
||||
result = compare_benchmarks.compare(baseline, candidate)
|
||||
self.assertTrue(any("dh_lod_radius_chunks" in field for field in result["mismatches"]))
|
||||
self.assertTrue(any("iris_shaders_enabled" in field for field in result["mismatches"]))
|
||||
self.assertTrue(any("world_difficulty" in field for field in result["mismatches"]))
|
||||
self.assertTrue(any("dh_thread_count differs" in warning for warning in result["warnings"]))
|
||||
self.assertTrue(any("changed between capture boundaries" in warning for warning in result["warnings"]))
|
||||
|
||||
Reference in New Issue
Block a user