<?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 Re: Qt5 on iMX6: enable vsync with single framebuffer in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397324#M58332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for FM_MULTI_BUFFER=2 is correct, for FB_MULTI_BUFFER=1, Probably it isn´t swapping or there is a&lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;/SPAN&gt; vsync wait, try glFinish before eglSwapBuffer. also Please check try with FB_MULTI_BUFFER=3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 13:47:29 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2015-08-07T13:47:29Z</dc:date>
    <item>
      <title>Qt5 on iMX6: enable vsync with single framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397323#M58331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SabreSD evaluation kit with Linux BSP ltib-4.1.1, I have cross-compiled Qt5 and running its test applications with success. From documentation I read that the following environment variable can affect both vertical synch and number of framebuffers used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- FB_MULTI_BUFFER=1, then one framebuffer is used and vsync is disabled&lt;/P&gt;&lt;P&gt;- FB_MULTI_BUFFER=2, then 2 framebuffers are used and vsync is enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My LCD is 1024x600@60Hz and framebuffer virtual size is 1024x600 16bpp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;P&gt;- in case FB_MULTI_BUFFER=2, I do not see any change in virtual size, it is always 1024x600. Is it correct? I expected fb driver to be asked for twice as vxres or vyres;&lt;/P&gt;&lt;P&gt;- in case FB_MULTI_BUFFER=1, is there any way to enable vsync anyway? I ask that because my specific application requires framebuffer grabbing, so one framebuffer is a requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 13:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397323#M58331</guid>
      <dc:creator>FedericoWegher</dc:creator>
      <dc:date>2015-07-30T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qt5 on iMX6: enable vsync with single framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397324#M58332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for FM_MULTI_BUFFER=2 is correct, for FB_MULTI_BUFFER=1, Probably it isn´t swapping or there is a&lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;/SPAN&gt; vsync wait, try glFinish before eglSwapBuffer. also Please check try with FB_MULTI_BUFFER=3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 13:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397324#M58332</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2015-08-07T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qt5 on iMX6: enable vsync with single framebuffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397325#M58333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using simple QML application, so there are no openGL/EGL calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browsing the web, I found out that Qt5 eglfs platform plugin allows definition of variable QT_QPA_EGLFS_FORCEVSYNC, which relies on kernel vsync ioctl-based implementation coded in mxc IPUv3 framebuffer driver. So I changed my setup this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export FB_MULTI_BUFFER=1&lt;/P&gt;&lt;P&gt;export QT_QPA_EGLFS_FORCEVSYNC=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which mean: use 1 framebuffer but enable vsync. This setup seems to work, because framerate is limited to vsync, framebuffer virtual resolution is same as real resolution (so 1 fb is used actually). Anyway, when my QML application plays some animations, I see graphical artifacts on LCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) how can I enable vsync, keep one framebuffer and avoid artifacts?&lt;/P&gt;&lt;P&gt;2) why in case of FB_MULTI_BUFFER=2 (2 FBs and vsync enabled) there are no such artifacts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 10:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Qt5-on-iMX6-enable-vsync-with-single-framebuffer/m-p/397325#M58333</guid>
      <dc:creator>FedericoWegher</dc:creator>
      <dc:date>2015-08-25T10:23:47Z</dc:date>
    </item>
  </channel>
</rss>

