projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Load audio earlier in the process. Might save us some time
[supertux.git]
/
src
/
supertux
/
main.cpp
diff --git
a/src/supertux/main.cpp
b/src/supertux/main.cpp
index
6dc7c37
..
17571a3
100644
(file)
--- a/
src/supertux/main.cpp
+++ b/
src/supertux/main.cpp
@@
-299,6
+299,11
@@
Main::launch_game()
SDLSubsystem sdl_subsystem;
ConsoleBuffer console_buffer;
SDLSubsystem sdl_subsystem;
ConsoleBuffer console_buffer;
+ timelog("audio");
+ SoundManager sound_manager;
+ sound_manager.enable_sound(g_config->sound_enabled);
+ sound_manager.enable_music(g_config->music_enabled);
+
timelog("controller");
InputManager input_manager(g_config->keyboard_config, g_config->joystick_config);
timelog("controller");
InputManager input_manager(g_config->keyboard_config, g_config->joystick_config);
@@
-306,15
+311,9
@@
Main::launch_game()
timelog("video");
std::unique_ptr<VideoSystem> video_system = VideoSystem::create(g_config->video);
timelog("video");
std::unique_ptr<VideoSystem> video_system = VideoSystem::create(g_config->video);
- DrawingContext context(video_system->get_renderer(),
- video_system->get_lightmap());
+ DrawingContext context(*video_system);
init_video();
init_video();
- timelog("audio");
- SoundManager sound_manager;
- sound_manager.enable_sound(g_config->sound_enabled);
- sound_manager.enable_music(g_config->music_enabled);
-
Console console(console_buffer);
timelog("scripting");
Console console(console_buffer);
timelog("scripting");