Launcher: switch the game to DirectX 12 after a Vulkan crash at its start (#746)

A native crash in a graphics driver leaves no crash report, only the game's
last lines. When the game ends with no report after its Vulkan adapter line and
before its first frame (Windows only), set graphicsApi:dx12 in its graphics
settings (the game home's and the run's own, only where it was auto) and tell
the player to press Play again, instead of the crash notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-19 07:43:12 +02:00
parent 21ac62a085
commit c2665ee7bd
3 changed files with 141 additions and 3 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ pub fn process_started() -> Instant {
/// Frames further apart than this are the UI resting, not UI frame times.
const IDLE_GAP: Duration = Duration::from_millis(250);
/// The line the game prints when it has drawn its first frame.
pub const GAME_FIRST_FRAME: &str = "Horizon: first frame";
pub use horizon_launcher::backend::GAME_FIRST_FRAME;
pub struct Perf {
report: Report,