H2: Graphics presets, OpenGL fallback notice, tested configurations

Presets now tune shadows, cascades, render scale and anti-aliasing:
Low (no shadows, 75%, FXAA), Medium (200 m, 2 cascades, FXAA), High
(400 m, 4 cascades, MSAA 2x). GameSettings.apply_to_viewport sets the
viewport; MatchView.apply_settings sets the sun's cascades. No preset
changes how far props or pieces are drawn, so a lower one never shows a
player through cover; a test guards it.

When Vulkan can't start, Godot falls back to OpenGL (fallback_to_opengl3)
and RendererCheck has the main menu say so. tools/capture.sh gains
CAPTURE_RENDERER=no_vulkan, which hides the Vulkan driver and expects the
fallback. New scenarios quality_low/medium/high draw a match moment with
each preset, reviewed in both renderers.

docs/PLAY.md lists the presets, renderers, Wayland and hybrid-GPU notes,
and the tested configurations, marking each as software-rendered only or
not tested.

Closes #55

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 00:11:13 -05:00
co-authored by Claude Opus 5.5
parent 4439d9a84f
commit 54c255e912
14 changed files with 254 additions and 18 deletions
+8 -1
View File
@@ -13,6 +13,8 @@ const PLAYER: int = 1
@export var log_path: String = "res://build/match/match.tclog"
@export var stage: String = "lobby"
## H2: a GameSettings quality preset to draw with (-1: the view's defaults).
@export var quality: int = -1
var _replay: MatchReplay
var _view: MatchView
@@ -55,6 +57,11 @@ func _ready() -> void:
_view = MatchView.new()
_view.setup(sim, player_id)
add_child(_view)
if quality >= 0:
var settings: GameSettings = GameSettings.new()
settings.quality = quality
settings.apply_to_viewport(get_viewport())
_view.apply_settings(settings)
var watched: int = _watched()
var who: String = "nobody"
if stage == "lobby" or stage == "tide":
@@ -79,7 +86,7 @@ func _ready() -> void:
else:
_view.overview()
_view.settle()
_caption(_describe(who))
_caption(_describe(who) + ("" if quality < 0 else "\nquality: %s, renderer: %s" % [GameSettings.QUALITY_NAMES[quality], RenderingServer.get_current_rendering_method()]))
func _player() -> SimEntity: