<?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>i.MX Processors中的主题 Re: Android framerate not correct</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464840#M73181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for posting the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 15:36:11 GMT</pubDate>
    <dc:creator>SergioSolis</dc:creator>
    <dc:date>2016-08-24T15:36:11Z</dc:date>
    <item>
      <title>Android framerate not correct</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464838#M73179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running Android 5.1.1_2.1.0-ga release with kernel 3.14.52 and are having problem getting the framerate up to 60fps (this worked earlier on kitkat release with kernel 3.0.35).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The display is configured with a pixelclock for 60fps (for our display and resolution pclk is 10MHz) but framerate for Android's SurfaceFlinger get limited to 30fps (limited by IPU interrupts?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running a camera overlay in 60fps it seems to output in the correct rate, so I believe the display setup is correct. But for some reason the default framebuffer is rate limited to 30fps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this problem also? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using MIPI DSI (but problem also seen with MIPI DPI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Framerate is shown in logcat after "setprop debug.sf.showfps 1" and "killing" surfaceflinger process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 05:17:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464838#M73179</guid>
      <dc:creator>emilmyhrman</dc:creator>
      <dc:date>2016-05-12T05:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Android framerate not correct</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464839#M73180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was found in hwcomposer HAL. A nanosleep in vsync thread was too long, causing ioctl MXCFB_WAIT_FOR_VSYNC to sometimes miss first vsync (NF-ACK from IPU), and instead wait for second vsync, causing time to wait for vsync to double.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/mx6/hwcomposer/hwc_vsync.cpp b/mx6/hwcomposer/hwc_vsync.cpp&lt;/P&gt;&lt;P&gt;index fc6b9bf..8fec0a6 100644&lt;/P&gt;&lt;P&gt;--- a/mx6/hwcomposer/hwc_vsync.cpp&lt;/P&gt;&lt;P&gt;+++ b/mx6/hwcomposer/hwc_vsync.cpp&lt;/P&gt;&lt;P&gt;@@ -125,7 +125,7 @@ void VSyncThread::performVSync()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct timespec tm;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct timespec ts;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; const nsecs_t wake_up = 400000;&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; const nsecs_t wake_up = 800000; // Allow for some time to reschedule this thread and start wait on next VSYNC ioctl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double m_frame_period_ns = mCtx-&amp;gt;mDispInfo[HWC_DISPLAY_PRIMARY].vsync_period;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464839#M73180</guid>
      <dc:creator>emilmyhrman</dc:creator>
      <dc:date>2016-05-18T10:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Android framerate not correct</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464840#M73181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for posting the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 15:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-framerate-not-correct/m-p/464840#M73181</guid>
      <dc:creator>SergioSolis</dc:creator>
      <dc:date>2016-08-24T15:36:11Z</dc:date>
    </item>
  </channel>
</rss>

