<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SmoothVideo Project — Why does SVP sometimes get slow?]]></title>
		<link>https://www.svp-team.com/forum/viewtopic.php?id=2571</link>
		<atom:link href="https://www.svp-team.com/forum/extern.php?action=feed&amp;tid=2571&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Why does SVP sometimes get slow?.]]></description>
		<lastBuildDate>Mon, 20 Jul 2015 01:03:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51173#p51173</link>
			<description><![CDATA[<p><strong>Chainik</strong><br />Please correct me if I misunderstood, but surely that search radius, combined with how far the block has moved, also has an impact on CPU usage?<br />For example, if a block moves further than the current search radius, then a suitable motion vector will not be found and SVP will have to do an additional &quot;refined&quot; search (if the &quot;bad SAD&quot; limit is exceeded), correct?</p><p>Ps. Does SVP recalculate the limit for what it considers to be &quot;detailed and bright&quot; areas when only dark scenes are displayed (i.e. as a fraction of the maximum brightness of a block in the current scene) for a number of consecutive frames, or does it continue to consider the entire frame&#039;s blocks to be &#039;unimportant&#039; or &#039;less visible&#039;?</p>]]></description>
			<author><![CDATA[null@example.com (xenonite)]]></author>
			<pubDate>Mon, 20 Jul 2015 01:03:51 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51173#p51173</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51169#p51169</link>
			<description><![CDATA[<p>SVP use &quot;adaptive radius&quot; for MVs search<br />this means that number of blocks comparisons depends on the block&#039;s contrast value<br />detailed and bright scenes will use considerably more CPU than night ones</p>]]></description>
			<author><![CDATA[null@example.com (Chainik)]]></author>
			<pubDate>Sun, 19 Jul 2015 22:07:21 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51169#p51169</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51167#p51167</link>
			<description><![CDATA[<p><strong><em>xenonite</em></strong></p><p>I only watch anime and from my observation, the default setting is better than setting described in <a href="http://www.svp-team.com/wiki/Watching_anime">this wiki</a></p><p><em>Frames Interpolation Mode: Adaptive (or &quot;2m&quot;, depending on the severity of motion artifacts)</em><br />In this case, maybe you can tweak smooth.scene.limit options in override.js,</p><p><em>Target Frame Rate: <strong>Source multiplied by 3</strong> (use &quot;To screen refresh rate&quot; for 60Hz monitors)</em><br />This certainly less artifact since you have exact integer multiple than the display with 60hz refresh rate</p><br /><p><strong><em>Nintendo Maniac 64</em></strong></p><p>I think the most recommended is, the setting which give the smoothest video while keeping cpu usage downs as much as possible <img src="https://www.svp-team.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /><br />for now it&#039;s the trade-off between the <strong>comfortable smoothness</strong> and cpu usage (I emphasized the comfortable smoothness <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> )<br />higher setting which consumes cpu highly is not necessarily better <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>==========================================<br />Ok, back to topic,<br />Sometimes cpu is spiked when there&#039;s sudden change scene, it spikes really high but not very high to make the noticeable slowdown,<br />it&#039;s like normally ~40% to suddenly ~60-80%.<br />Since the TS, Mystery, keeps his setting about 80-100%, isn&#039;t just normal that he notices the slowdown?</p>]]></description>
			<author><![CDATA[null@example.com (mashingan)]]></author>
			<pubDate>Sun, 19 Jul 2015 21:39:25 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51167#p51167</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51165#p51165</link>
			<description><![CDATA[<div class="quotebox"><cite>Chainik wrote:</cite><blockquote><p><strong>Mystery</strong><br /><em>I tweaked my settings to keep the CPU between 80-100%</em></p><p>not a great idea</p></blockquote></div><p>Just for reference sake, what would you recommend?</p>]]></description>
			<author><![CDATA[null@example.com (Nintendo Maniac 64)]]></author>
			<pubDate>Sun, 19 Jul 2015 19:19:32 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51165#p51165</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51164#p51164</link>
			<description><![CDATA[<p><strong>dlr5668</strong><br />No problem, I&#039;m glad I could contribute something.<br />And thanks for reading through all of it, I just wanted to ensure people know WHY we change certain settings as opposed to just &quot;higher numbers must be better&quot;.&nbsp; <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (xenonite)]]></author>
			<pubDate>Sun, 19 Jul 2015 16:59:59 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51164#p51164</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51163#p51163</link>
			<description><![CDATA[<p><strong>xenonite</strong><br /><em>The following settings are best left to the profile defaults unless you have read through The svpflow dcumentation and The SVP MVTools2 dcumentation and understand what they do (can decrease both quality and performance).</em></p><p>yep, I read. Thanks for detailed answer. This full post can be copy-pasted to wiki&nbsp; <img src="https://www.svp-team.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (dlr5668)]]></author>
			<pubDate>Sun, 19 Jul 2015 16:52:55 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51163#p51163</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51162#p51162</link>
			<description><![CDATA[<p><strong>dlr5668</strong></p><p><em><strong>TL;DR: skip to the end for my settings.</strong></em></p><p>Well first I&#039;d like to give the reasoning behind my settings. Anime content poses some unique challenges; specifically, only panning scenes or computer-generated content actually have a solid mathematical relationship (where motion is concerned) between past and future frames. The rest of the content, however, is normally hand-drawn at some fraction of the video&#039;s frame rate (i.e. only drawing 6 or 12 changed frames per every 24 frames of motion).<br />Since SVP uses a block-matching algorithm, (and artists re-drawing a character multiple times to create the illusion of motion rarely draw an exact 3D projection every time) very few blocks will match up close to perfectly (unlike the case with &#039;normal&#039; video). Furthermore, the stop-start nature of the motion (caused by drawing fewer moving frames than the frame rate requires) also makes it hard for SVP to calculate the true motion since as far as it is concerned, that is how the motion is supposed to be. SVP has no way of knowing when two equal frames are the result of a production being too cheap to even draw 24fps motion, rather than simply signaling that the moving object has come to a halt. This leaves us with greatly increased artifacts (mostly in the form of solid lines becoming &#039;wavey&#039; as shown in <a href="http://www.svp-team.com/wiki/Watching_anime">The SVP Wiki</a>) or with the motion just not being any smoother, even for slowly moving or rotating objects.<br />Yes, in theory one can write some sort of algorithm to check for and remove the superfluous frames (while leaving legitimate motion-free portions alone) and then use SVP-framedoubling to interpolate the resulting variable frame rate video, but that is way beyond the scope of dlr5668&#039;s question...</p><p>As for the SVP settings, we have one of two choices:<br />1) We can only smooth reliable, global panning motion (produces fewer artifacts but does almost nothing to moving objects or characters)<br />2) Live with the increased artifacts and try to tweak SVP&#039;s settings as best we can for each specific anime&#039;s drawing style.</p><p>I prefer option 2 (but you can easily adapt my settings for 1 by using a very large &#039;motion vectors grid&#039; setting, disabling &#039;decrease grid step&#039; and setting motion vectors precision to one or two pixels).<br />These are my settings for <strong>MOST</strong> anime content:</p><p><strong>Profile Settings:</strong><br />Processing Threads: 24 (use less for more stability but less performance or for quad-core CPUs)<br />GPU-acceleration: Pick my second GPU (One not used by MadVR)<br />Frames Interpolation Mode: Adaptive (or &quot;2m&quot;, depending on the severity of motion artifacts)<br />SVP shader: 2. Sharp<br />Target Frame Rate: Source multiplied by 3 (use &quot;To screen refresh rate&quot; for 60Hz monitors)<br />Motion vectors grid: 14px. Average 1 (for 720p: 8px. Small 9)<br />Decrease grid step: By two with global refinement<br />Search radius: Large<br />Motion vectors precision: One pixel (for 720p: Half pixel)<br />Wide search: Strongest <br />Artifacts masking: Weak<br />Processing of scene changes: Repeat frame<br />Decrease frame size: Disabled (this setting makes very little sense to me, I suppose it is for compatibility with very slow PCs?)</p><p>The following settings are best left to the profile defaults unless you have read through <a href="http://www.svp-team.com/wiki/Plugins:_SVPflow">The svpflow dcumentation</a> and <a href="http://www.svp-team.com/wiki/Plugins:_MVTools2">The SVP MVTools2 dcumentation</a> and understand what they do (can decrease both quality and performance).</p><p><strong>Hidden settings:</strong> (SVPMgr.ini, override.js, etc. Very content dependent)<br />SetMemoryMax(768)<br />analyse.main.search.distance = -16 or -32<br />analyse.main.search.satd&nbsp; &nbsp; = true (better quality but requires much more performance)<br />analyse.main.search.coarse.width = 1080 (set this &gt;= to your video width)<br />analyse.main.search.coarse.distance&nbsp; &nbsp; = -16 or -32<br />analyse.main.search.coarse.trymany&nbsp; &nbsp; = (depends, can improve or worsen performance)<br />analyse.main.search.coarse.bad.sad&nbsp; &nbsp; = 1000 (750~1250)<br />analyse.main.search.coarse.bad.range = -32 or -64<br />analyse.main.penalty.lsad&nbsp; &nbsp; = 4000 (4000~8000)<br />analyse.main.penalty.pnew = 40;<br />analyse.main.penalty.pglobal = 40<br />analyse.main.penalty.pzero = 75;<br />analyse.refine[0].thsad = 300;<br />analyse.refine[0].penalty.lsad = 6000;</p>]]></description>
			<author><![CDATA[null@example.com (xenonite)]]></author>
			<pubDate>Sun, 19 Jul 2015 16:03:44 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51162#p51162</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51161#p51161</link>
			<description><![CDATA[<p><strong>Mystery</strong><br /><em>I tweaked my settings to keep the CPU between 80-100%</em></p><p>not a great idea</p>]]></description>
			<author><![CDATA[null@example.com (Chainik)]]></author>
			<pubDate>Sun, 19 Jul 2015 13:53:58 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51161#p51161</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51160#p51160</link>
			<description><![CDATA[<p><strong>xenonite</strong><br />what settings do you change for anime ?</p>]]></description>
			<author><![CDATA[null@example.com (dlr5668)]]></author>
			<pubDate>Sun, 19 Jul 2015 13:51:31 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51160#p51160</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51158#p51158</link>
			<description><![CDATA[<div class="quotebox"><cite>Mystery wrote:</cite><blockquote><p>With 3.1.6, I was still using updated libraries so upgrading to the latest package didn&#039;t give improvements in itself.</p></blockquote></div><p>That actually explains it. If I change the libraries to the new ones then I also get identical performance between 3.1.6 and 3.1.7, which makes sense since I believe all performance inprovements should come from the dll libraries (the SVP manager should not use any substantial amount of resources). Also, if there were any architecture-specific improvements, I believe that Mystery&#039;s Ivy-Bridge based processor would also have benefitted from it as Ivy-Bridge also supports the AVX2 instruction set.</p><p>I also downloaded and tested that Youtube video after I disabled 4 CPU cores in the BIOS and backed off the &quot;threads&quot; setting to better aproximate more &quot;mainstream&quot; systems, and I still seem to get around a 10% performance improvement (lower total rendering time) with the new libraries.</p><p>I think that the reduced performance for some scenes can best be explained by SVP having to do more work to find suitable motion vectors when there are many different moving objects having large motion displacements, as compared to still or slowly moving frames.<br />If I change my SVP settings to those more suited to interpolating Anime content, SVP&#039;s performance and quality on that video also improves quite markedly.</p><p>Ps. You can tweak this scene-dependant adaptive behaviour by changeing the &quot;badSAD&quot; values and altering how far and with what algorithm SVP should search for replacement motion vectors; however the default values seem to be optimal for most mainstream 4-core machines and videos.</p>]]></description>
			<author><![CDATA[null@example.com (xenonite)]]></author>
			<pubDate>Sun, 19 Jul 2015 13:26:36 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51158#p51158</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51136#p51136</link>
			<description><![CDATA[<p>Ok, so it&#039;s an Ivy Bridge i7 instead.&nbsp; Nevertheless, that&#039;s still half the amount of cores and threads that Xenonite has and is around 25% slower per-core performance before factoring in the architectural improvements and larger cache of Haswell-E.</p>]]></description>
			<author><![CDATA[null@example.com (Nintendo Maniac 64)]]></author>
			<pubDate>Sat, 18 Jul 2015 19:20:46 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51136#p51136</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51135#p51135</link>
			<description><![CDATA[<p>With 3.1.6, I was still using updated libraries so upgrading to the latest package didn&#039;t give improvements in itself.</p><p>And yes, I have &quot;only&quot; a quad-core i7 3630QM, which is still near the top of this list after 2 years with a score of 7638<br /><a href="https://www.cpubenchmark.net/laptop.html">https://www.cpubenchmark.net/laptop.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Mystery)]]></author>
			<pubDate>Sat, 18 Jul 2015 19:16:27 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51135#p51135</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51134#p51134</link>
			<description><![CDATA[<p>Well, I have come across one YouTube video that does not seem to be particularly faster on SVP 3.1.7 compared to 3.1.6 - particularly the first minute or so of this video when it&#039;s zooming in and out:<br /><a href="https://www.youtube.com/watch?v=wOP8XudHqr4">https://www.youtube.com/watch?v=wOP8XudHqr4</a></p>]]></description>
			<author><![CDATA[null@example.com (Nintendo Maniac 64)]]></author>
			<pubDate>Sat, 18 Jul 2015 18:45:01 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51134#p51134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51132#p51132</link>
			<description><![CDATA[<p>Lol, that might be so, but I was actually trying to figure out why Mystery experiences SVP 3.1.7 as not being universally faster than 3.1.6.<br />I can understand my system being able to handle higher settings than his, but 3.1.7 should also be faster for him shouldn&#039;t it?</p>]]></description>
			<author><![CDATA[null@example.com (xenonite)]]></author>
			<pubDate>Sat, 18 Jul 2015 07:35:17 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51132#p51132</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why does SVP sometimes get slow?]]></title>
			<link>https://www.svp-team.com/forum/viewtopic.php?pid=51131#p51131</link>
			<description><![CDATA[<div class="quotebox"><cite>xenonite wrote:</cite><blockquote><p>Intel 5960X @ 4.6GHz (I also have it in the &quot;System Specs&quot; area of my forum profile), why do you ask?</p></blockquote></div><p>Uhhh... holy bananas, you literally have <em>the</em> fastest consumer CPU model in existence combined with a considerable overclock.&nbsp; I&#039;d like to point out that, if I recall correctly, Mystery &quot;only&quot; has a Nehalem i7 (though I obviously could be wrong).</p><br /><p>Remember, SVP is very multi-thread friendly, so it&#039;s actually one of the cases where &quot;moar cores!&quot; actually gives quite the performance benefit, and an 8-core/16-thread Haswell E CPU is the current king of the crop when it comes to that kind of thing in the consumer marketplace.</p>]]></description>
			<author><![CDATA[null@example.com (Nintendo Maniac 64)]]></author>
			<pubDate>Sat, 18 Jul 2015 06:55:16 +0000</pubDate>
			<guid>https://www.svp-team.com/forum/viewtopic.php?pid=51131#p51131</guid>
		</item>
	</channel>
</rss>
