20,741
edits
Line 266: | Line 266: | ||
// Sound manager is updated last so it can use the CPU while the GPU | // Sound manager is updated last so it can use the CPU while the GPU | ||
// is processing the scenery (doubled the frame-rate for me) -EMH- | // is processing the scenery (doubled the frame-rate for me) -EMH- | ||
globals->add_subsystem("sound", new SGSoundMgr("/enable/sound"), SGSubsystemMgr::SOUND); | globals->add_subsystem("sound", new SGOptional<SGSoundMgr>("/enable/sound", new SGSoundMgr), SGSubsystemMgr::SOUND); | ||
</syntaxhighlight> | </syntaxhighlight> | ||