diff options
author | Max Horn | 2009-10-27 00:37:54 +0000 |
---|---|---|
committer | Max Horn | 2009-10-27 00:37:54 +0000 |
commit | 79734dbc15b67e5fabca0231207bbde83727201f (patch) | |
tree | 04478c2defd0e8ba16a7f7ca50f570934c1e5a36 /engines/tinsel/handle.cpp | |
parent | e07a9b052464748657183a83c718d05b8f7afd40 (diff) | |
download | scummvm-rg350-79734dbc15b67e5fabca0231207bbde83727201f.tar.gz scummvm-rg350-79734dbc15b67e5fabca0231207bbde83727201f.tar.bz2 scummvm-rg350-79734dbc15b67e5fabca0231207bbde83727201f.zip |
TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics
svn-id: r45428
Diffstat (limited to 'engines/tinsel/handle.cpp')
-rw-r--r-- | engines/tinsel/handle.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp index b7e81dc4ca..d144c1c86f 100644 --- a/engines/tinsel/handle.cpp +++ b/engines/tinsel/handle.cpp @@ -41,7 +41,7 @@ namespace Tinsel { //----------------- EXTERNAL GLOBAL DATA -------------------- #ifdef DEBUG -bool bLockedScene = 0; +static bool bLockedScene = 0; #endif @@ -391,9 +391,6 @@ void LockScene(SCNHANDLE offset) { pH = handleTable + handle; - // compact the heap to avoid fragmentation while scene is non-discardable - HeapCompact(MAX_INT, false); - if ((pH->filesize & fPreload) == 0) { // Ensure the scene handle is allocated. MemoryReAlloc(pH->_node, pH->filesize & FSIZE_MASK); |