Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Rust differential-testinggame-enginegamedevlinuxminecraftminecraft-javareimplementationrustvoxelvulkanwgpu
Title screen: decode the panorama beside the GUI atlas
Ludovic Marief10487540b56
diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rsindex 3721e78f3..6363f50eb 100644--- a/crates/horizon-client/src/game.rs+++ b/crates/horizon-client/src/game.rs@@ -1920,9 +1920,22 @@ impl UiResources {/// From a resource root layering packs over `defaults`, the game's own/// resources (`root` itself when no pack is on).pub fn load(root: &std::path::Path, defaults: &std::path::Path) -> Result<Self> {- Ok(Self {- atlas: HudAtlas::build_over(root, defaults)?,- panorama: Arc::new(horizon_client::gfx::panorama::Faces::load(root, defaults)),+ // The title screen waits for both: the panorama's six faces decode+ // beside the atlas.+ std::thread::scope(|scope| {+ let panorama = scope.spawn(|| {+ startup::time("ui.panorama", || {+ horizon_client::gfx::panorama::Faces::load(root, defaults)+ })+ });+ let atlas = startup::time("ui.atlas", || HudAtlas::build_over(root, defaults));+ let panorama = panorama+ .join()+ .unwrap_or_else(|panic| std::panic::resume_unwind(panic));+ Ok(Self {+ atlas: atlas?,+ panorama: Arc::new(panorama),+ })})}/// What a server's game holds, since it draws nothing: the font, which books