Skip to content

Commit a2cd2b5

Browse files
committed
Starting with Windows Vista, the system uses the low-fragmentation heap (LFH) as needed to service memory allocation requests. Applications do not need to enable the LFH for their heaps.
1 parent cfabc7f commit a2cd2b5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/xrEngine/main.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,6 @@ ENGINE_API int RunApplication()
209209
{
210210
R_ASSERT2(Core.Params, "Core must be initialized");
211211

212-
if (!IsDebuggerPresent())
213-
{
214-
u32 heapFragmentation = 2;
215-
bool result = HeapSetInformation(
216-
GetProcessHeap(), HeapCompatibilityInformation, &heapFragmentation, sizeof(heapFragmentation));
217-
VERIFY2(result, "can't set process heap low fragmentation");
218-
UNUSED(result);
219-
}
220212
#ifdef NO_MULTI_INSTANCES
221213
if (!GEnv.isDedicatedServer)
222214
{

0 commit comments

Comments
 (0)