[Scummvm-cvs-logs] SF.net SVN: scummvm:[54310]	scummvm/trunk/base/main.cpp
    Bluddy at users.sourceforge.net 
    Bluddy at users.sourceforge.net
       
    Thu Nov 18 08:17:29 CET 2010
    
    
  
Revision: 54310
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54310&view=rev
Author:   Bluddy
Date:     2010-11-18 07:17:28 +0000 (Thu, 18 Nov 2010)
Log Message:
-----------
MAIN: added early call to getAudioCdManager to prevent late allocation
This reduces fragmentation.
Modified Paths:
--------------
    scummvm/trunk/base/main.cpp
Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp	2010-11-18 05:47:16 UTC (rev 54309)
+++ scummvm/trunk/base/main.cpp	2010-11-18 07:17:28 UTC (rev 54310)
@@ -372,6 +372,10 @@
 
 	setupGraphics(system);
 
+	// Init the audio cd manager. It won't be released, so to prevent fragmentation,
+	// we'll create it early on.
+	system.getAudioCDManager();
+	
 	// Init the event manager. As the virtual keyboard is loaded here, it must
 	// take place after the backend is initiated and the screen has been setup
 	system.getEventManager()->init();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
    
    
More information about the Scummvm-git-logs
mailing list