Topic: Why does SVP sometimes get slow?

I've got SVP configured so that the CPU goes to 70-90%. It generally plays fine, but every now and then, it just starts lagging randomly. Sometimes closing MPC-HC and re-opening it solves the problem, or sometimes it just resolves itself after a while.

But why does it sometimes randomly start taking higher CPU than usual?

Re: Why does SVP sometimes get slow?

I think it is buffering.
Take a look to CPU load at smooth play start and few seconds later. CPU load at start is higher. It is because of frame-buffering at the start.

I think such situation with active buffering can happend in the middle of playback. Causes can be different: another huge application started, network activity, hard disk activity or system process activity.

3 (edited by Nintendo Maniac 64 19-06-2015 19:59:46)

Re: Why does SVP sometimes get slow?

It's not due to buffering because I have had the exact same issue at rare times and I've found a way to make it revert to normal performance levels with 100% success rate.

Simply put, disable GPU acceleration in SVP, and then re-enable it.


To emphesis that it's not buffering, it has occured with an already-downloaded video that is running from a ramdisk, my web browser closed, network utilization at 0%, CPU utilization at 0-1% when video paused, windows update disabled, and SVP and MPC-HC both running from an SSD.

Re: Why does SVP sometimes get slow?

Nintendo Maniac 64
and I've found a way to make it revert to normal performance levels with 100% success rate.
Simply put, disable GPU acceleration in SVP, and then re-enable it.

What about other ways to restart the script?
- change number of threads
- modify any option in the profile
- ... etc ...

Re: Why does SVP sometimes get slow?

Chainik wrote:

Nintendo Maniac 64
and I've found a way to make it revert to normal performance levels with 100% success rate.
Simply put, disable GPU acceleration in SVP, and then re-enable it.

What about other ways to restart the script?
- change number of threads
- modify any option in the profile
- ... etc ...

Playing with the options didn't seem to solve it for me, although it does allow lowering CPU usage by lowering settings.

Re: Why does SVP sometimes get slow?

Chainik wrote:

What about other ways to restart the script?
- change number of threads
- modify any option in the profile
- ... etc ...

Don't know, haven't had the issue in a while actually...

Interestingly enough, I don't believe I ever had the issue on another PC where I am not able to use GPU acceleration.

7 (edited by Mystery 20-06-2015 03:19:36)

Re: Why does SVP sometimes get slow?

I just had the issue again. I was playing a 1080p 30fps video and it was lagging with CPU topping at 100%. I considerably lowered the settings so that the CPU usage would be 80-90%, but it still played with lots of dropped frames. I de-activated and re-activated OpenCL. I tried shifting to the old core libraries to see if it would do better, but it just made the CPU usage even higher. Then after reverting back to the latest core libraries, the same video plays fluidly with those same settings with ~50%-70 CPU usage.

The profile also keeps switching while playing this video

1080 47 24. Duration: 795 ms
22:17:43.426; ===== Playback
30.363 * (47 : 24) = 59.461 fps
Auto crop: [0:0:0:0]
22:17:44.595; FalseVFR ffdShow-framerate: -Dwn-> 29.968 fps
22:17:44.595; express clear interval
22:17:44.595; stabilized ffdShow-framerate: 29.968 fps. SVP Index: 0.29/0.79
22:17:44.597; SVPMgr: main "C:\ProgramData\SVP 3.1\" 1920 1080 29.968 1920 1080 2 1. Duration: 782 ms
22:17:45.379; ===== Playback
29.968 * (2 : 1) = 59.936 fps
Auto crop: [0:0:0:0]
22:17:53.948; ===== rewind forward 00:02:31 / 503194:33:01
22:17:57.911; FalseVFR ffdShow-framerate: -Up-> 34.04 fps
22:17:57.912; this is changing #2. ffdShow-framerate: 33.081
22:17:58.845; this is changing #3. ffdShow-framerate: 31.781
22:17:59.789; this is changing #4. ffdShow-framerate: 31.177
22:17:59.789; express clear interval
22:17:59.789; stabilized ffdShow-framerate: 31.177 fps. SVP Index: 0.92/1.01
22:17:59.795; SVPMgr: main "C:\ProgramData\SVP 3.1\" 1920 1080 31.177 1920 1080 21 11. Duration: 614 ms
22:18:00.409; ===== Playback
31.177 * (21 : 11) = 59.52 fps
Auto crop: [0:0:0:0]
22:18:01.638; FalseVFR ffdShow-framerate: -Dwn-> 29.968 fps
22:18:01.638; express clear interval
22:18:01.639; stabilized ffdShow-framerate: 29.968 fps. SVP Index: 0.44/0.78
22:18:01.646; SVPMgr: main "C:\ProgramData\SVP 3.1\" 1920 1080 29.968 1920 1080 2 1. Duration: 634 ms
22:18:02.280; ===== Playback
29.968 * (2 : 1) = 59.936 fps
Auto crop: [0:0:0:0]

Re: Why does SVP sometimes get slow?

It's really strange. It was playing at 100% CPU usage, then at 50% CPU usage, then after pausing and resuming, at 70% CPU usage, and now it's back at a stable 50%...

Re: Why does SVP sometimes get slow?

Another video, 1080p 24fps, was also lagging. I tried lowering all the settings and saw little improvement, until I lowered SVP Shader from Complicated to Standard and then the CPU usage when WAY down. I could raise all other non-expensive settings with no issue. But then, when setting SVP Shader to Complicated with those higher settings, it plays fine!

Re: Why does SVP sometimes get slow?

OK here's something interesting. I started having high CPU usage problems after uninstalling K-Lite Codec Pack and trying to run without it.

All my medias still play fine. HOWEVER, CPU usage for playing videos is higher. After re-installing it, CPU usage went down.

What could be causing this performance difference?

11 (edited by Nintendo Maniac 64 20-06-2015 08:27:29)

Re: Why does SVP sometimes get slow?

Well for one thing, codec packs are not really the greatest things to be using nowadays - LAVfilters should include everything you need, and it's even bundled with MPC-HC.  Not only that, but said codec packs can even conflict with LAVfilters.

Which brings me to the next thing - hardware acceleration.  With LAVfilters, you can configure what type (if any) hardware acceleration to use, but with something like a codec pack that kind of stuff is much more unknown.


Honestly, you'd probably be better off uninstalling any codec packs and just using the newest 32bit version of MPC-HC (v1.7.9).  If for some reason you don't want to install a new version of MPC-HC, you can always just use the PortableApps version (the PortableApps "installer" is really just a fancy-looking extractor):
http://portableapps.com/apps/music_vide … c-portable

Just be sure to follow the instructions on this wiki page for setting up MPC-HC to use SVP:
http://svp-team.com/wiki/SVP:MPC-HC

Re: Why does SVP sometimes get slow?

I'm already using MPC-HC v1.7.9

13 (edited by Nintendo Maniac 64 21-06-2015 04:30:40)

Re: Why does SVP sometimes get slow?

When disabling and then re-enabling SVP's "GPU acceleration", make sure you do it in this manner:

1. video playling with GPU acceleration
2. pause video
3. disable GPU acceleration
4. play video for 5-10 seconds
5. pause video
6. enable GPU acceleration
7. play video

Re: Why does SVP sometimes get slow?

I just had again a problem where video playback started lagging. I confirm that following those steps solved the problem. Simply closing and re-opening MPC-HC did not solve it.

Re: Why does SVP sometimes get slow?

Sounds like a miracle

16 (edited by Nintendo Maniac 64 26-06-2015 07:09:31)

Re: Why does SVP sometimes get slow?

Chainik wrote:

Sounds like a miracle

The fact that I came up with this process on my own while trying to tackle the very same issue sounds to me like it's a bug, not a miracle.

My guess is that, much like the crazy flickering that can be (at least temporarily) fixed by changing the thread count, it is something related to the GPU acceleration since I discovered that both of these issues do not occur when GPU acceleration is disabled...


Or it could be all down to that mess known as graphics drivers.  roll

Re: Why does SVP sometimes get slow?

Nintendo Maniac 64
sounds to me like it's a bug, not a miracle

I mean this is the miracle --> "Simply closing and re-opening MPC-HC did not solve it" BUT "disable and re-enable GPU acceleration does"

I bet it's a graphics driver issue then hmm

Mystery
Try to monitor GPU with GPU-Z when lagging starts. GPU load, memory load, video engine load.

18 (edited by Nintendo Maniac 64 26-06-2015 08:58:03)

Re: Why does SVP sometimes get slow?

Well if it's drivers, then perhaps the brand of GPU makes a difference?

I personally am unsure whether I had the issue on Intel integrated graphics or with AMD integrated graphics, but I at least know that it was one of those two and was not Nvidia.


(I say I am unsure because I majorly upgraded my CPU 6 months ago and I don't really recall if the issue mainly occured before or after the upgrade.  I think it may rarely occur sometimes nowadays, but I know that some point in the past it occured much more frequently for me)

Re: Why does SVP sometimes get slow?

Reverting back to AviSynth 2.5.8 does seem to make the problem go away. So far, it allows me to keep settings higher while keeping videos playing with consistency.

Re: Why does SVP sometimes get slow?

@Mystery, when you disable SVP by right click, Settings, Disable SVP work and then check info about curent playback in player, does it say it is 24 fps or 48? On PotPlayer I can pres "Tab" and it show current output framerate.

Re: Why does SVP sometimes get slow?

Not sure what your question is... it always outputs at 60fps

22 (edited by James D 05-07-2015 16:06:18)

Re: Why does SVP sometimes get slow?

@Mystery, when you disable SVP by right click, Settings, Disable SVP work and then check info about curent playback in player, does it say it is 24 fps or 48? On PotPlayer I can pres "Tab" and it show current output framerate.
http://i.imgur.com/JQ2naLx.png

Re: Why does SVP sometimes get slow?

I usually experience this kind of lag when playing 1080p, even with 720p video.
But with 1080p it's more often.

I always thought this is simply insufficient CPU capability, although I'm not sure if this is your case.
That's why I set the SVP setting with 720p higher than 1080p, profile.

And, isn't this normal?
Every lags that I observed are happened when there's highly motion scenes, or many small items moving fast, like particles motion or that kind of motions
so isn't this just a normal case for CPU for calculating the motion?

Re: Why does SVP sometimes get slow?

When it gets slow you can hold an arow on SVP tray icon to see the multiplier. If it is 24>60 then it's ok but if 48>60 then something is wrong.

Re: Why does SVP sometimes get slow?

OK it happened again, this time with AviSynth 2.5.8

Disabling SVP. Pressing CTRL+J to get madVR's stats. It says source video is 30.000 fps