imacken Posted November 20, 2020 Share Posted November 20, 2020 With my new 3090, I am seeing VRAM demands of over 12Gb on maps like The Channel. I was just wondering, what happens when DCS asks for more RAM than is available on a GPU card? What does it do when told there isn't enough? Is system RAM used as some kind of buffer and swapping goes on? Just curious. Intel i7 12700K · MSI Gaming X Trio RTX 4090 · ASUS ROG STRIX Z690-A Wi-Fi · MSI 32" MPG321UR QD · Samsung 970 500Gb M.2 NVMe · 2 x Samsung 850 Evo 1Tb · 2Tb HDD · 32Gb Corsair Vengance 3000MHz DDR4 · Windows 11 · Thrustmaster TPR Pedals · Tobii Eye Tracker 5 · Thrustmaster F/A-18 Hornet Grip · Virpil MongoosT-50CM3 Base · Virpil Throttle MT-50 CM3 · Virpil Alpha Prime Grip · Virpil Control Panel 2 · Thrustmaster F-16 MFDs · HTC Vive Pro 2 · Total Controls Multifunction Button Box Link to comment Share on other sites More sharing options...
DimSim Posted November 20, 2020 Share Posted November 20, 2020 When the VRAM limit is exceeded, the GPU driver will move some resources from the GPU to CPU memory leaving enough VRAM for that frame. If there was not enough VRAM even for a single frame, it can swap memory between CPU and GPU memory multiple times per frame killing performance. While a GPU may have 12GB and CPU may have 32GB or such, no games or applications attempt to use all of that at the same moment, if they did, performance would be terrible, instead, resources move from disk to RAM to VRAM in ways that are hopefully intelligent and intentional. When unintentional, the operating system will move some resources around, but that tends to happen at undesirable times causing stutters and jerky frame rate. You'll hear the term 'paging' for that. Since you have one of the best video cards and systems money can buy, I expect you won't experience this much. If you do, turn some settings down. Some games, or game mods, do not prepare their texture resources well and can use excessive amounts of memory. So don't expect to run all games at max settings and resolutions even with the best hardware. Link to comment Share on other sites More sharing options...
imacken Posted November 20, 2020 Author Share Posted November 20, 2020 Thanks for that. I'm not experiencing any issues myself, I was just curious to know what happens when the application demands more VRAM than is available, Does it look at the amount of VRAM first and then allocate and compromise, or does it make the allocation first and then the system decides how to apply that allocation? If the latter, then one would think that a considerable decrease in performance would occur say with a 8gb card when 12Gb was needed. Intel i7 12700K · MSI Gaming X Trio RTX 4090 · ASUS ROG STRIX Z690-A Wi-Fi · MSI 32" MPG321UR QD · Samsung 970 500Gb M.2 NVMe · 2 x Samsung 850 Evo 1Tb · 2Tb HDD · 32Gb Corsair Vengance 3000MHz DDR4 · Windows 11 · Thrustmaster TPR Pedals · Tobii Eye Tracker 5 · Thrustmaster F/A-18 Hornet Grip · Virpil MongoosT-50CM3 Base · Virpil Throttle MT-50 CM3 · Virpil Alpha Prime Grip · Virpil Control Panel 2 · Thrustmaster F-16 MFDs · HTC Vive Pro 2 · Total Controls Multifunction Button Box Link to comment Share on other sites More sharing options...
DimSim Posted November 20, 2020 Share Posted November 20, 2020 It can do either (check available, or just use). Depends on the API (DirectX 11, 12, OpenGL + Extensions, Vulkan). Some APIs or extensions expose available VRAM others don't. Often games just target a minimum or recommended spec, then allow the user to turn settings up or down if they experience issues. Windows PCs and GPU drivers (from intel, nVidia, AMD) are generally graceful about moving memory around best they can. VRAM can be consumed rapidly with very high resolution displays, high res textures or pre-loading lots of models and textures (called graphical resources). Both GPU and CPU can 'thrash' if they exceed usable RAM. Thrashing means rapidly and repeatedly moving memory to where it is needed because what is needed can't fit (typically in what is called a cache). When that happens, the user will see a sudden and significant performance decrease. Users should never have to worry about any of this, but a general appreciation of what's going on can help them isolate issues and make better guesses at what settings to change based on observed behavior. In general, more RAM (System or VRAM) is better, but it won't make things faster. Instead, having not enough will make things slower. 1 Link to comment Share on other sites More sharing options...
imacken Posted November 20, 2020 Author Share Posted November 20, 2020 Thanks for that detailed explanation. I appreciate it. Intel i7 12700K · MSI Gaming X Trio RTX 4090 · ASUS ROG STRIX Z690-A Wi-Fi · MSI 32" MPG321UR QD · Samsung 970 500Gb M.2 NVMe · 2 x Samsung 850 Evo 1Tb · 2Tb HDD · 32Gb Corsair Vengance 3000MHz DDR4 · Windows 11 · Thrustmaster TPR Pedals · Tobii Eye Tracker 5 · Thrustmaster F/A-18 Hornet Grip · Virpil MongoosT-50CM3 Base · Virpil Throttle MT-50 CM3 · Virpil Alpha Prime Grip · Virpil Control Panel 2 · Thrustmaster F-16 MFDs · HTC Vive Pro 2 · Total Controls Multifunction Button Box Link to comment Share on other sites More sharing options...
imacken Posted November 20, 2020 Author Share Posted November 20, 2020 I never understand why these posts get moved to what I would consider to be inappropriate sub-folders. I mean, why is this moved to a 'Bugs' area when there is no bug? It was just an enquiry about how VRAM gets allocated in applications like DCS. Intel i7 12700K · MSI Gaming X Trio RTX 4090 · ASUS ROG STRIX Z690-A Wi-Fi · MSI 32" MPG321UR QD · Samsung 970 500Gb M.2 NVMe · 2 x Samsung 850 Evo 1Tb · 2Tb HDD · 32Gb Corsair Vengance 3000MHz DDR4 · Windows 11 · Thrustmaster TPR Pedals · Tobii Eye Tracker 5 · Thrustmaster F/A-18 Hornet Grip · Virpil MongoosT-50CM3 Base · Virpil Throttle MT-50 CM3 · Virpil Alpha Prime Grip · Virpil Control Panel 2 · Thrustmaster F-16 MFDs · HTC Vive Pro 2 · Total Controls Multifunction Button Box Link to comment Share on other sites More sharing options...
twistking Posted November 22, 2020 Share Posted November 22, 2020 I never understand why these posts get moved to what I would consider to be inappropriate sub-folders. I mean, why is this moved to a 'Bugs' area when there is no bug? It was just an enquiry about how VRAM gets allocated in applications like DCS. i would argue that dcs vram mangement is a bug in itself, therefore you were discussing a bug ;) My personal wishlist after half a decade with DCS: https://forum.dcs.world/topic/184968-my-personal-wishlist-after-half-a-decade-with-dcs Link to comment Share on other sites More sharing options...
Recommended Posts