@@ -96,34 +96,34 @@ CDetailManager::CDetailManager() : xrc("detail manager")
96
96
dm_cache_size = dm_current_cache_size;
97
97
dm_fade = dm_current_fade;
98
98
ps_r__Detail_density = ps_current_detail_density;
99
- #ifdef USE_MEMORY_MONITOR
99
+ #ifdef DEBUG_MEMORY_NAME
100
100
cache_level1 = (CacheSlot1**)Memory.mem_alloc (dm_cache1_line * sizeof (CacheSlot1*), " CDetailManager::cache_level1" );
101
101
#else
102
102
cache_level1 = (CacheSlot1**)Memory.mem_alloc (dm_cache1_line * sizeof (CacheSlot1*));
103
103
#endif
104
104
for (u32 i = 0 ; i < dm_cache1_line; ++i)
105
105
{
106
- #ifdef USE_MEMORY_MONITOR
106
+ #ifdef DEBUG_MEMORY_NAME
107
107
cache_level1[i] = (CacheSlot1*)Memory.mem_alloc (dm_cache1_line * sizeof (CacheSlot1), " CDetailManager::cache_level1 " + i);
108
108
#else
109
109
cache_level1[i] = (CacheSlot1*)Memory.mem_alloc (dm_cache1_line * sizeof (CacheSlot1));
110
110
#endif
111
111
for (u32 j = 0 ; j < dm_cache1_line; ++j)
112
112
new (&cache_level1[i][j]) CacheSlot1 ();
113
113
}
114
- #ifdef USE_MEMORY_MONITOR
114
+ #ifdef DEBUG_MEMORY_NAME
115
115
cache = (Slot***)Memory.mem_alloc (dm_cache_line * sizeof (Slot**), " CDetailManager::cache" );
116
116
#else
117
117
cache = (Slot***)Memory.mem_alloc (dm_cache_line * sizeof (Slot**));
118
118
#endif
119
119
for (u32 i = 0 ; i < dm_cache_line; ++i)
120
- #ifdef USE_MEMORY_MONITOR
120
+ #ifdef DEBUG_MEMORY_NAME
121
121
cache[i] = (Slot**)Memory.mem_alloc (dm_cache_line * sizeof (Slot*), " CDetailManager::cache " + i);
122
122
#else
123
123
cache[i] = (Slot**)Memory.mem_alloc (dm_cache_line * sizeof (Slot*));
124
124
#endif
125
125
126
- #ifdef USE_MEMORY_MONITOR
126
+ #ifdef DEBUG_MEMORY_NAME
127
127
cache_pool = (Slot *)Memory.mem_alloc (dm_cache_size * sizeof (Slot), " CDetailManager::cache_pool" );
128
128
#else
129
129
cache_pool = (Slot *)Memory.mem_alloc (dm_cache_size * sizeof (Slot));
0 commit comments