Skip to content

Commit

Permalink
Changing the order in which the components are loaded, video first, t…
Browse files Browse the repository at this point in the history
…hen audio, less 'important' parts deferred => faster showing of supertux window
  • Loading branch information
tobbi committed Oct 26, 2013
1 parent 1e6e54c commit 9a10927
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/supertux/main.cpp
Expand Up @@ -624,32 +624,29 @@ Main::run(int argc, char** argv)
if(pre_parse_commandline(argc, argv))
return 0;

Console::instance = new Console();
init_sdl();

timelog("controller");
g_jk_controller = new JoystickKeyboardController();
Console::instance = new Console();

timelog("config");
init_config();

timelog("addons");
AddonManager::get_instance().load_addons();

timelog("tinygettext");
init_tinygettext();

timelog("commandline");
if(parse_commandline(argc, argv))
return 0;

timelog("audio");
init_audio();

timelog("video");
DrawingContext context;
context_pointer = &context;
init_video();

timelog("audio");
init_audio();

timelog("tinygettext");
init_tinygettext();

timelog("controller");
g_jk_controller = new JoystickKeyboardController();

Console::instance->init_graphics();

Expand All @@ -658,6 +655,9 @@ Main::run(int argc, char** argv)

timelog("resources");
Resources::load_shared();

timelog("addons");
AddonManager::get_instance().load_addons();

timelog(0);

Expand Down

0 comments on commit 9a10927

Please sign in to comment.