GPU "acceleration" not always faster :- ))

ritsmer wrote on 4/2/2013, 11:44 AM
Rendering some set-ups of Sony's FX Starburst I have found interesting results:

When GPU assist is ON rendering of 15 seconds timeline lasts about 10 minutes.
When GPU assist is OFF the same rendering lasts about 1 minute.

Besides, in the rendered video, the Starburst effect stutters badly when GPU assist was ON - but works perfectly when it was OFF while rendering.

No problem, of course, when you know it and can set GPU assist properly before rendering - that is why I report it here.
Might be interesting for SCS too - if they need it I can supply some media. Just mail me.

Found in Vegas 11 build 700 (32 bit) which is the only newer version that runs 100% stable in my setup. (Unfortunately V12 just locks up every 5 minutes or so)

Comments

OldSmoke wrote on 4/2/2013, 12:31 PM
To take "real" advantage of GPU accleration in all situation you need a good graphic card with 300 and more CUDA cores and a good bandwith. Have a look at this table http://en.wikipedia.org/wiki/Comparison_of_Nvidia_graphics_processing_units#GeForce_600_Series
I had 2x GTX460 in my previous build and now 2x GTX570 but even with just one GTX460 I could see rendertimes with all supported codecs to be cut in half.
You also must select CUDA in the render template, don't leave it in automatic or OpenCL.
Another big factor are drivers and for Nvidia, the general conclusion on this forum seems to be that 296.10 is the fastest and most stable driver.
One more thing to take care of is a good power supply, my GTX460 system when doing renders drew a good 450W and 12V alone.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

ritsmer wrote on 4/2/2013, 1:18 PM
Thank you, OldSmoke - but I was not seeking an answer - just trying to inform other users here that the GPU "accelerated" rendering in some special cases gives render times up to 10 (ten!) times as long as not "accelerated" render times and even induces clear stuttering errors into the rendered media too.
In my daily work GPU assist improves some few percents with my cheap GTS 450 card - as expected - but as it improves the preview speed I do not want to switch it off permanently.

Also I thought that this very significant example - which I have seen several times before - might interest SCS and give a hint as where to seek and then improve the Vegas software.

I do, of course, use the 296.10 driver. Most later drivers seem to be kinda April 1. jokes from Nvidia :- ))

As to my hardware I do have a 1 kW power supply, real ECC RAM and 2 real Xeon processors.
OldSmoke wrote on 4/2/2013, 2:42 PM
I do understand that you want to point this out but I still think you have to look into the hardware first. Your two Xeon might certainly be faster then your GTS450. Do you have a sample veg file or can you tell me what kind of 15sec material you are rendering with which template? I just rendered a 1920x1080MXF 35VBR file to AVC MP4 1080p in 27sec. with GPU on but that might not be same as you have done.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

Lovelight wrote on 4/2/2013, 2:53 PM
Vegas needs to update gpu support. It used to work very well. It is sony's responsibility that it works & they have dropped the ball big time. Sony as whole is failing in many ways.

Anything else muddies the water, confuses the matter, & shifts the responsibility.
OldSmoke wrote on 4/2/2013, 3:03 PM
@Lovelight

It still does work very well. I use it since it was introduced in VP11 and never had an issue with it. Even VP12 works extremely well for me, build 394 that is, and now that I have 2x GTX570 I am extremly happy with GPU acceleration.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

ritsmer wrote on 4/2/2013, 4:02 PM
Oldsmoke - yes, sure, it is correct that a GTS 450 normally only improves rendering speed a little - compared to dual Xeons or other fast CPUs.
That is what one might expect and it has been well known in this forum for a long time.

But my statement was and is that when I render i.e.a Sony FX Starburst then the GTS 450 does not even improve speed at all - it decreases rendering speed by a factor of 10 (ten) - from 1 minute without GPU to 10 minutes with GPU - and on top of that GPU assist induces quite significant stuttering in the rendered media.

This is a fact on my machine when the GPU assist is on - and it was that fact that I wanted to share so that other users experiencing the same problem might save time.

If you want to try, btw. - here is the veg (Vegas 11) with media:
https://www.dropbox.com/sh/1yna2wcnvvbkfe1/6GYXYfLOjP

My rendering settings are: mpeg-2, 1920x1080, 25, upper field first, VBR at 31,28,20 Mbps.
You may not be able to play this smoothly on a (normal) PC but also a lower bit rate will do - as Norman writes below.
NormanPCN wrote on 4/2/2013, 4:17 PM
"You also must select CUDA in the render template, don't leave it in automatic or
OpenCL."

One thing people need to not overlook is that there are two "renders" going on.

One which always happens. Vegas is rendering the video stream from the various sources, corrections and effects.

The other is when we render a file of some kind.

Each has their own GPU settings and neither care about what the other is set to.

Vegas (video stream render) is always OpenCL and is controlled via Video Prefs. As for a file render, that is specific to the encoder in question and is controlled via the encoder options if it has any GPU support.

In the example given it was talked about how Starburst stuttered on GPU but was okay with CPU in their machine setup. Vegas is doing this computation generating the video stream and it is irrelevant what render template you use.
OldSmoke wrote on 4/3/2013, 10:55 AM
@ritsmer

Thank you for providing the sample files. I opened it in VP12, Build 394 and rendered it our using the mpeg2 bluray template and modified the bit rate accordingly.

GPU On: 1:09
GPU Off: 4:30

Note that the mpeg2 templates have no option to select which way to render, GPU or CPU but I did change that in the preference/video tab and restarted Vegas for the test.
This is the GPU On result: https://dl.dropbox.com/u/39278380/GVK-LowThirds09-GPU-ON.m2v

The CPU render test is a different story; it seems that one or more of the desired FX didn't get rendered at all: https://dl.dropbox.com/u/39278380/GVK-LowThirds09a-CPU.m2v
I guess my 3930 just isnt as good as 2 Xeon.
I also rendered to MC AVC using the 1080p template and that took 34sec with GPU on, I haven't rendered with CPU only but I gues it would take at least twice as long.

I will do the same in VP11 since I have 10,11 and 12 on my system.

I appologize if I miss understood your initial post. All I am trying to say is, that it is not so much a software but hardware related issue.

Edit:
VP 11 Build 701

GPU On: 7:55
GPU Off: 7:58

The mpeg2 encoder in VP11 doesnt use any or very little of the GPU hence to lower and close to CPU render time. However, the result looks somewhat different from VP12; go figure. https://dl.dropbox.com/u/39278380/GVK-LowThirds09a-VP11-GPU.m2v

I have the feeling that one or some of the FX isnt GPU accelerated in VP11 at all. I switched of track 2 and GPU usage is quite high, up to 75% and render time is very short. In comparison, the GPU usage in VP12 was up to 93% with all tracks enabled.

I wonder how good and fast your system would be if you can get VP12 working.


Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

ritsmer wrote on 4/3/2013, 3:01 PM
Oldsmoke: Also thanks to you for trying.

Quite astonishing that your systems V11 build 701 render-times are GPU:CPU 1:1 while my system shows 10:1.
Could be because I use build 700 (32 bit).
In your GPU ON rendering result there is, however, precisely the same stuttering as I see here with GPU ON.

I have tried to render in my V12 build 486:

GPU ON renders until 14% and then obviously hangs.
Noticed some strange kinda interlaced-looking-lines in the lower third of the preview window.
Tried press Cancel and Yes to stop background process - but had to kill V12 in the Task Manager after some time.

GPU OFF: rendered to the end and slightly faster as V11.
Noticed in both the preview window and in the rendered outpout the same significant difference between this V12 and my V11 as you have seen.
I have checked this and it seems that the Brightness and Contrast FX in V12 removes most of the Starburst "corona" around the curved green line when I click it ON.

I am really thankful that you took time to test this issue.
Think that we have proved, that in the present example:
1) GPU ON induces quite noticeable stuttering in the rendered result.
2) V12 Brightness and Contrast FX works astonishing different in V11 and V12.
Lovelight wrote on 4/3/2013, 3:59 PM
Glad it works well.

My point is how many times has nvidia updated its drivers compared to Vegas updates. How could Vegas stay ahead of the game when the updates are far & few between? How can they even keep up with nvidia? I have other gpu enabled software that is much better than Vegas at rendering.

If it vegas gpu works so well than why is all this testing being done?

These are not easy questions to answer because of practical, psychological, & financial issues.
ritsmer wrote on 4/4/2013, 3:33 AM
Glad it works well.

Hmmm - in my opinion Oldsmoke and I have identified 2 repeatable serious issues... :- )
OldSmoke wrote on 4/4/2013, 6:45 AM
ritsmer, have you tried the earlier build of VP12? I find 394 to be more stable on my system and I don't have the "red preview window" issue.

I personally prefer VP12 over 11 as it utilizes my GPU better and is faster in both, playback and render. The flickering in the VP12 render you noticed is actually on the timeline too. When play it back, I can see the green animated line behind the text to make sudden changes, even when I go thru it frame by frame.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

ritsmer wrote on 4/4/2013, 9:19 AM
OldSmoke: well - I have been enjoying Vegas since it was called Screenblast 3.0 and have been quite active for years and for many Vegas versions trying out this and that in order to "optimize (whatever that might mean :- ).

I have, however, now reached a state where the editing itself is more urgent to me that experimenting with number of threads, preview RAM, Nvidia driver versions, hacking DLLs etc etc.

So - like many others around here - I have found a setup that simply works rock stable in my hardware environment: Vegas 11.0 build 700 (32 bit) - and I will stick to that for the time being.

Remembering the great improvements to speed for AVCHD that SCS introduced in version 10 (10b or c I think?) and several other good improvements I continue dutifully to buy the newest versions and try them out - when I have time.
Unfortunately the first versions of V12 smashed even my faithful V11 (!!) so badly that I had to totally un-and-reinstall everything (do not have a ghost-backup) - so I am not so keen on further experiments with V12 before the next update.

For me the speed of the final rendering is not so important: speeding up all the very frequent small temporary renders to check the precise timing of something is more interesting - and so I consider changing to a PC with Intel 4000 graphics which seems to render astonishing fast in reduced quality - which is sufficient for these timing checks - and is what I use anyway (reduced quality) for this purpose.

I have ceased using GPU assist - and even if this makes the preview a little slower it means no more "surprises" in the rendered results - and you should really be able to trust your NLE and not have to scrutinize every final render more times to check for such - ah - little surprises.
OldSmoke wrote on 4/4/2013, 1:34 PM
ritsmer: I can fully understand what you are saying. Aside from the GPU acceleration what surprised me the most is the difference in rendered video between VP11 and 12. I am also waiting for the next build and will continue with VP12 394 until then.

Lovelight: GPU acceleration works really well on my system and that since VP11 latest build (701 I believe) and also here in VP12 394. But you are right on the point, Nvidia keeps on updating the drivers but every update seems to favor gamers rather then NLEs and that is the issue. If Nvidia would write a proper driver for NLEs I believe we would see even more improvement and stability on our systems. I think it has been mentioned in this forum already that card manufacturer would rather have us buying expensive Quadro like cards then being succesful with the lower or mid tear products. The gaming market is hugh compared to the NLE market and I doubt we will ever get that much support. SCS certainly is to blame too since GPU acceleration works well in PP, so I heard.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)