From 2e1d2e2ec817f2daabc9f3dbd09a69fcab087f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Jeli=C4=87?= Date: Mon, 15 Jul 2024 22:39:21 +0200 Subject: [PATCH] Remove font atlas preload. - move atlas loading from app startup to menu creation - reduce blank black screen time on startup --- src/spaced/spaced/spaced.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/spaced/spaced/spaced.cpp b/src/spaced/spaced/spaced.cpp index af9850e..60f6acf 100644 --- a/src/spaced/spaced/spaced.cpp +++ b/src/spaced/spaced/spaced.cpp @@ -62,15 +62,12 @@ struct PersistentStats : Stats { } }; -constexpr auto preload_text_heights_v = std::array{TextHeight{100}, TextHeight{60}}; - constexpr auto gdci_v = bave::GameDriver::CreateInfo{ .assets = { .main_font = { .uri = "assets/fonts/CuteDino.otf", - .preload_heights = preload_text_heights_v, }, .spinner = "assets/images/spinner.png", .styles = "assets/styles.json",