Skip to content

Commit

Permalink
Remove font atlas preload. (#59)
Browse files Browse the repository at this point in the history
- move atlas loading from app startup to menu creation
- reduce blank black screen time on startup
  • Loading branch information
NikolaJelic authored Jul 15, 2024
1 parent 95df896 commit 17de09d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/spaced/spaced/spaced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 17de09d

Please sign in to comment.