<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic vm_time_sleep wrong? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/vm-time-sleep-wrong/m-p/787058#M2090</link>
    <description>Hallo @ All&lt;BR /&gt;&lt;BR /&gt;i had the problem, that my video output hangs some times, so i looked up why, and i found this in avsync.cpp line 831:&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #880000;"&gt;vm_time_sleep&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #a000a0;"&gt;IPP_MAX&lt;/SPAN&gt;(0,&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #a000a0;"&gt;IPP_MIN&lt;/SPAN&gt;(1,(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: blue;"&gt;Ipp32s&lt;/SPAN&gt;)((&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: navy;"&gt;ft&lt;/SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: navy;"&gt;&lt;SPAN style="font-family: Consolas;"&gt;st1&lt;/SPAN&gt;&lt;/SPAN&gt;)*1000))));
&lt;/PRE&gt;(i think this expession will always call vm_time_sleep(0&amp;lt;=1) :D, but mostly with 0, so the output freeze)&lt;BR /&gt;&lt;BR /&gt;I replaced it with:&lt;BR /&gt;&lt;PRE&gt;&lt;PRE&gt;vm_time_sleep(IPP_MAX(0,IPP_MIN(DEF_TIME_TO_SLEEP&amp;lt;&amp;lt;1,(Ipp32s)((ft-st1)*1000))));
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and now the movements are very softly, also in H264 and everything works fine. Also with this solution you can run (parallel) the windows Media player &lt;BR /&gt;without some freezings.&lt;BR /&gt;&lt;BR /&gt;Best Regards Detlef&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Nov 2011 16:16:00 GMT</pubDate>
    <dc:creator>detlef_stralaudynami</dc:creator>
    <dc:date>2011-11-24T16:16:00Z</dc:date>
    <item>
      <title>vm_time_sleep wrong?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/vm-time-sleep-wrong/m-p/787058#M2090</link>
      <description>Hallo @ All&lt;BR /&gt;&lt;BR /&gt;i had the problem, that my video output hangs some times, so i looked up why, and i found this in avsync.cpp line 831:&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #880000;"&gt;vm_time_sleep&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #a000a0;"&gt;IPP_MAX&lt;/SPAN&gt;(0,&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: #a000a0;"&gt;IPP_MIN&lt;/SPAN&gt;(1,(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: blue;"&gt;Ipp32s&lt;/SPAN&gt;)((&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;SPAN style="color: navy;"&gt;ft&lt;/SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: navy;"&gt;&lt;SPAN style="font-family: Consolas;"&gt;st1&lt;/SPAN&gt;&lt;/SPAN&gt;)*1000))));
&lt;/PRE&gt;(i think this expession will always call vm_time_sleep(0&amp;lt;=1) :D, but mostly with 0, so the output freeze)&lt;BR /&gt;&lt;BR /&gt;I replaced it with:&lt;BR /&gt;&lt;PRE&gt;&lt;PRE&gt;vm_time_sleep(IPP_MAX(0,IPP_MIN(DEF_TIME_TO_SLEEP&amp;lt;&amp;lt;1,(Ipp32s)((ft-st1)*1000))));
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and now the movements are very softly, also in H264 and everything works fine. Also with this solution you can run (parallel) the windows Media player &lt;BR /&gt;without some freezings.&lt;BR /&gt;&lt;BR /&gt;Best Regards Detlef&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Nov 2011 16:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/vm-time-sleep-wrong/m-p/787058#M2090</guid>
      <dc:creator>detlef_stralaudynami</dc:creator>
      <dc:date>2011-11-24T16:16:00Z</dc:date>
    </item>
    <item>
      <title>vm_time_sleep wrong?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/vm-time-sleep-wrong/m-p/787059#M2091</link>
      <description>&lt;P&gt;Detlef,&lt;/P&gt;&lt;P&gt;I forward to the code ower to have a check. Thanks a lot for sharing it. &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2011 01:54:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/vm-time-sleep-wrong/m-p/787059#M2091</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-11-25T01:54:36Z</dc:date>
    </item>
  </channel>
</rss>

