[SlimDX] DirectX9 memory usage on Windows 7
When using DirectX9 devices on Windows Vista and Windows 7 it seems to allocate alot of system ram. The exact same app on XP is consuming video memory, but hardly any system ram at all - as I would expect.
Same app running with a Direct2D render layer on Windows 7 is consuming very little system ram.
Should say that it is not on the managed heap, and thus the unmanaged heap.
Anyone knows if this behavior is expected due to some changes i Windows 7?
Regards
Lars
What are you using to measure this? The task manager is notoriously unreliable at these metrics, especially since what it measures isn't quite what most people think it is and XP and Vista display different measurements by default (iirc).
My guess would be that it's down to the video memory virtualization in Windows 7 - at least some of your default pool resources will need system memory allocated so that it can swap them out of video RAM if some other program uses the video memory.
Josh:
From within the app's diagnostics monitor I am looking at:
long total = Process.GetCurrentProcess().PrivateMemorySize64;
long managed = GC.GetTotalMemory(false);
long unmanaged = total - unmanaged;
The task managers 'Private Working Set' shows the same as total above.
For video memory usage on XP I am using 'Video Memory Watcher', does not work on Windows 7
Adam_42:
Sounds reasonable, but on the other hand - when running the exact same app with a D2D (DX10) renderer layer I would expect it show the same memory usage pattern - but it does not, not even close.
Lars
From within the app's diagnostics monitor I am looking at:
long total = Process.GetCurrentProcess().PrivateMemorySize64;
long managed = GC.GetTotalMemory(false);
long unmanaged = total - unmanaged;
The task managers 'Private Working Set' shows the same as total above.
For video memory usage on XP I am using 'Video Memory Watcher', does not work on Windows 7
Adam_42:
Sounds reasonable, but on the other hand - when running the exact same app with a D2D (DX10) renderer layer I would expect it show the same memory usage pattern - but it does not, not even close.
Lars
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement