Vegas Pro (20) and Dynamic RAM Preview Allocation

Hamilton53 wrote on 9/26/2022, 3:52 PM

I'm just going to throw this out here, there is actually quite a bit of discussion on this elsewhere. However, I was having both editing and rendering freezes when I had Vegas Dynamic RAM Preview Max set to 68% (I have 32 GB of RAM). I believe, by doing so I was actually stealing memory that Vegas needed to run efficiently, and certainly from other programs, I tried to run while waiting for the render to complete. My setting this value to 10% (I believe 5% is default) it seems to have fixed most of my issues.

Comments

MH7 wrote on 9/26/2022, 11:34 PM

Going on a similar subject, regarding the RAM Preview, I have heard (mostly on YouTube videos), that if you set the RAM Preview usage to 0%, VEGAS Pro will manage PC RAM for RAM Preview itself (dynamically, I assume).

Last changed by MH7 on 9/26/2022, 11:38 PM, changed a total of 5 times.

John 14:6 | Romans 10:9-10, 13, 10:17 | Ephesians 2:8-9
————————————————————————————————————

Aussie VEGAS Post 20 User as of 9th February 2023 — Build 411 (Upgraded from VEGAS Pro 18)

VEGAS Pro Help: VEGAS Pro FAQs and TROUBLESHOOTING GUIDES

My YouTube Channel: https://www.youtube.com/@TechWiredGeek

Video Cameras: Sony FDR-AX700 and iPhone 12 Pro Max (iOS 17)

============================================

My New Productivity Workstation/Gaming PC 2024

CPU: AMD R7 7800X3D

Motherboard: ASRock X670E Steel Legend (AM5)

RAM: Corsair Vengeance 32 GB (2 x 16 GB) DDR5-6000 CL30 Memory

Main SSD: Samsung 980 Pro 1 TB SSD
Storage SSD: Western Digital Black SN850X 2 TB SSD

GPU: Asus TUF GAMING OC Radeon RX 7800 XT (16 GB)

OS: Windows 11 (Build: 23H2)

Main Monitor: LG 27UD88-W 4K IPS

Secondary Monitor: LG 27UL850 4K HDR IPS

Hamilton53 wrote on 9/27/2022, 12:12 AM

I've seen several people state they set the Dynamic RAM Preview to zero (0). However, when did this in Vegas Pro 20, and then tried to use the Dynamic RAM Preview, it popped up a message saying that the DRP was set to 0 and I needed to increase it to use this function.

Former user wrote on 9/27/2022, 12:31 AM

Going on a similar subject, regarding the RAM Preview, I have heard (mostly on YouTube videos), that if you set the RAM Preview usage to 0%, VEGAS Pro will manage PC RAM for RAM Preview itself (dynamically, I assume).

Shift +B won't work, but the caching that happens when you play over an edit point, it lags so do it again and again, and eventually it's smooth still works with Ram Preview at zero. Not sure it works less well or identically but that aspect of caching is not disabled setting DRP to zero.

The problem with setting DRP to zero is playback is affected, in a test I did where I artificially created a situation where Vegas could only barely hold on to 60fps playback with DRP set to 10%, it played back at 45fps with DRP set to zero. Rendering speed is also affected, but not by too much that it's an issue, if you needed to set DRP 0 for black flashes. Reduction in playback speed by 25% is an issue though (In the limited testing I did)

3POINT wrote on 9/27/2022, 3:37 AM

@Former user +1

I use always default RAM settings and never use Shift+B (but Shift+M instead and only when needed). No problems with preview, render or other issues caused by too high or too low RAM settings.

andyrpsmith wrote on 9/27/2022, 5:07 AM

Dynamic RAM preview behaviour was changed/overhauled from V19 onwards. In this case the best setting as others have said above is the default 5% setting (unless you have a specific and good reason to change it. Changing it because you believe it gives Vegas more RAM to run normally is not a good reason.) for versions V18 and before then setting dynamic RAM to 0 can help with stability especially if you do not need to preview selected regions of the timeline.

Hamilton53 wrote on 9/27/2022, 8:43 AM

Dynamic RAM preview behaviour was changed/overhauled from V19 onwards. In this case the best setting as others have said above is the default 5% setting (unless you have a specific and good reason to change it. Changing it because you believe it gives Vegas more RAM to run normally is not a good reason.) for versions V18 and before then setting dynamic RAM to 0 can help with stability especially if you do not need to preview selected regions of the timeline.

Thanks for the clarification. I'm going back to ALL default settings except for the Legacy HVEC (File I/O) which I uncheck. As far as lag goes for using Shift-B, I normally hit Alt-Shift-B first to delete any previous prerender and then it renders much faster. I was freezing both in edit and render (way too often) and after setting the Dynamic RAM lower (10%) those issues have gone away.

paul-priestley wrote on 10/5/2022, 4:57 AM

Hi, I am using Vegas Pro 19 build 643. My problem is that when Dynamic Ram Preview is set to 0% rendering a 10 minute .veg file (with lots of transitions and around 24 tracks) takes one hour fifteen minutes and runs at about 3.5 frames a second, but the rendering completes every time. CPU usage is around 30% and GPU and 12-15%. If I move the Dynamic Ram to 30% rendering will run at about 10 frames a second, CPU usage is about 70-80% and GPU increases to about 15-18% but rendering will always freeze at some point before half the video is rendered. Increasing the Ram percentage increases the number of frames rendered per second proportionately, but rendering always freezes at some point using any value of RAM above 0% . Is there any settings I need to change, or idea on how to render quicker, because my system should render quicker than this I would have thought.

'Enable Legacy HEVC decoding' has been ticked and unticked but makes no difference to rendering freezing above 0% Ram.

System: Ryzen 3700x, RTX 3060, 32 GB ram 1TB SSD 4TB HD Windows 11 - 21H2

Former user wrote on 10/5/2022, 5:55 AM

@paul-priestley Hi, which render template are you using, in some templates there's two options, one with (NVENC) at the end & one without, ?

Also can you share the MediaInfo of your files, there's an App called MediaInfo, download it, it's free & a fast download with no added adverts or any of that rubbish. https://mediaarea.net/en/MediaInfo

After downloading, right click on the media file in your Windows folder, open MediaInfo, choose Text from the options at the top, Copy & paste the information in a new comment on here 👍

Like this -

 

paul-priestley wrote on 10/5/2022, 9:37 AM

Hi,

Thanks for the response, I'm using Magix AVC/ACC MP4 using Nvidia NVENC. I have attached the info you wanted.

Cheers

j-v wrote on 10/5/2022, 9:53 AM

@paul-priestley
Can you give us a screenshot of your Help/Check for Driver Updates?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 24H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
566.14 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2130
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 576.02 and Intel UHD Graphics 630 with driver 31.0.101.2130
Vegas software: VP 10 to 22 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

Hamilton53 wrote on 10/5/2022, 10:09 AM

I found the rendering to be most stable at the default 5%. I made this comment in another post, but editing/rendering became more stable after I did a Control-Shift reset at startup.

paul-priestley wrote on 10/5/2022, 12:21 PM

Hi j-v,

I updated the Graphics driver a couple of days ago.

paul-priestley wrote on 10/5/2022, 12:23 PM

Hi Mark-Linenbroker,

I'll try the 5% recommendation and also try the Control-Shift reset. Thanks

Hamilton53 wrote on 10/5/2022, 5:43 PM

I'd also suggest doing a restart of your PC to clear your GPU memory... I think a lot of the rendering issues comes down to the GPU running out of memory (I only have 8GB) which makes me wonder is there isn't a GPU memory leak in the software, since a reboot almost guarantees I won't have a rendering freeze. However, it could be some other Windows App I'm using that isn't reallocating.

Last changed by Hamilton53 on 10/5/2022, 5:44 PM, changed a total of 2 times.

Intel i9-14900K; NVIDIA RTX A2000 Pro (12GB); Kingston Fury DD5 (64GB); Samsung M.2 990 Pro (2TB) (2 ea), M.2 970 Evo (2TB)

... built by Digital Storm

paul-priestley wrote on 10/6/2022, 6:03 AM

Hi Everyone,

I have rebooted my machine, set the dynamic ram to 5% and done a control shift reset to clear the cache. It now renders three times quicker than it did with dynamic cache set to 0% but it still freezes or stops working during the render. Tried it twice and crashes at different points.

andyrpsmith wrote on 10/6/2022, 6:12 AM

Hi Everyone,

I have rebooted my machine, set the dynamic ram to 5% and done a control shift reset to clear the cache. It now renders three times quicker than it did with dynamic cache set to 0% but it still freezes or stops working during the render. Tried it twice and crashes at different points.

There must be a problem with your system somewhere as I have just finished a 13min 4K (Sony XAVC ) which due to neat Video noise reduction took 8 hours to render. I used a batch render + Shutdown script to auto close down the PC. The render template was Voukoder VBR 2 pass, bitrate 60/120. The project included a title, a few fade transitions, noise reduction on quite a few clips, a few levels filter to brighten up the mainly inside shots. DRAM was 5%.

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Dexcon wrote on 10/6/2022, 6:22 AM

I was freezing both in edit and render ...

There is the possibility that one or more of your media events is corrupt or has some sort of issue causing the problem. If there is a particular point on the timeline where the freeze problem occurs, perhaps check the integrity of all the media events at or around that point.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

Hamilton53 wrote on 10/6/2022, 8:42 AM

I've experienced this anomaly of corruption in my media that was causing the rendering to freeze.

I'd suggest rendering this edit with only your CPU (don't include the NVENC option). It will render more slowly without the help of the GPU, but it might not freeze.

Next edit, include the GPU and see if you have more success.

You may also try deleting any transition effects and see if you can render with the GPU.

I suspect the developers launched a new NVENC/HVEC(?) encoder after the Vegas 19 v550 update. Because that's when it became less stable, and the freezes started happening. Hopefully, they can get the bugs worked out in future updates.

Last changed by Hamilton53 on 10/6/2022, 6:18 PM, changed a total of 5 times.

Intel i9-14900K; NVIDIA RTX A2000 Pro (12GB); Kingston Fury DD5 (64GB); Samsung M.2 990 Pro (2TB) (2 ea), M.2 970 Evo (2TB)

... built by Digital Storm

paul-priestley wrote on 10/6/2022, 11:35 AM

Interesting, I'll give that a try tomorrow. Cheers

relaxvideo wrote on 1/28/2023, 2:19 PM

Wow, i just discovered this topic, and my problem is very similar!

Currently i have 2 projects with a problem:

Project #1

New year's concert with two HD cam, two 4k cam. I tried to render with stock template 1080/25 NVENC.
At first, rendering crashed at 95%, i was not happy at all :( After restart and try again, it crashed at 50%,
next time again at totally different part of the timeline. Seems random. This issue only exist when i use dynamic ram preview other than 0%! If i change it to zero, rendering will finish with the same template. Every time!
Set back to 10% and render crash again. With 0% total time needed is around 20-30% more.

What bug is that?? When it's flawless, it's mean that all my source files, effects, transitions, etc are good, right?
So please don't ask for mediainfo :)

Project #2

A short, 5 minute dancing clip with 4k files from ZV-E10 cam.
Some CC, levels change, few transitions, nothing more.
Everytime i start playback timeline it's fine, stable 30fps, but after i made a few edits,
or only jump in the timeline here and there, fps goes down to unusable 3-5 fps and nothing help.
Nothing, except Vegas restart. Then that part which was 5 fps one minute before, plays at 30fps now.
For a few minutes again...
This issue only exist when dynamic ram preview is more than 4% (i have 32GB total)
With 1-2-3 or 4% i can edit hours, without fps dropping.

Again: What bug is that??
I think it's a serious memory handling problem (leak?), which Magix should fix for us.

Of course i use latest nvidia studio drivers and my pc is perfectly fine in every other app.

#1 Ryzen 5-1600, 16GB DDR4, Nvidia 1660 Super, M2-SSD, Acer freesync monitor

#2 i7-2600, 32GB, Nvidia 1660Ti, SSD for system, M2-SSD for work, 2x4TB hdd, LG 3D monitor +3DTV +3D projectors

Win10 x64, Vegas22 latest

j-v wrote on 1/28/2023, 2:39 PM

To me it looks no bug.
My first question to you is: Do you know the reason for using more Dynamic RAM Preview than 0 or the default amount?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 24H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
566.14 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2130
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 576.02 and Intel UHD Graphics 630 with driver 31.0.101.2130
Vegas software: VP 10 to 22 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

Hamilton53 wrote on 1/28/2023, 6:27 PM

To me it looks no bug.
My first question to you is: Do you know the reason for using more Dynamic RAM Preview than 0 or the default amount?

I don't think setting the dynamic RAM to zero is relevant to the latest versions of Vegas Pro.

More Dynamic RAM allows you to render longer portions of the video for better playback when editing. However the higher you set it, the more application memory it takes away from Vegas and other apps. In my experience, I found if I set it too high, the instability issues become more prevalent. I go with the default 5%.

relaxvideo wrote on 1/29/2023, 1:06 AM

j-v:
yes, i often use SHIFT-B (don't like to use other method!) and this won't work with 0 RAM Preview.
Also, rendering is smoother, faster, so i like to use a few % of my ram.
Why don't you call this a bug? Then what?

Mark: interesting, that by me 5% dont work either, only 4% or below for editing and 0% for rendering.
 

#1 Ryzen 5-1600, 16GB DDR4, Nvidia 1660 Super, M2-SSD, Acer freesync monitor

#2 i7-2600, 32GB, Nvidia 1660Ti, SSD for system, M2-SSD for work, 2x4TB hdd, LG 3D monitor +3DTV +3D projectors

Win10 x64, Vegas22 latest

RogerS wrote on 1/29/2023, 2:12 AM

Sounds like a bug to me and not the only one with dynamic ram preview and rendering.