<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ytriffy@gmail.com" title="Vyacheslav <ytriffy@gmail.com>"> <span class="fn">Vyacheslav</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - [PERF] Updating ubo offset via vkCmdBindDescriptorSets is causing flush that is taking 50% of rendering time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105695">bug 105695</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEEDINFO
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTABUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - [PERF] Updating ubo offset via vkCmdBindDescriptorSets is causing flush that is taking 50% of rendering time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105695#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - [PERF] Updating ubo offset via vkCmdBindDescriptorSets is causing flush that is taking 50% of rendering time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105695">bug 105695</a>
              from <span class="vcard"><a class="email" href="mailto:ytriffy@gmail.com" title="Vyacheslav <ytriffy@gmail.com>"> <span class="fn">Vyacheslav</span></a>
</span></b>
        <pre>I found the problem with my code - I did vkQueueWaitIdle() after each frame and
it was taking up 80% of rendering time (yes, I'm still learning vulkan). I
changed it to waiting on fences that are passed to vkQueueSubmit(). I have
triple buffering, so I have three images in swap chain - 0,1,2. I record
command buffers, submit and present 0,1,2 without waiting, then on frame 3 I
wait on fence for completion of rendering of frame 0. On frame 4 I wait for
completion of frame 1 and so on. I know I can do more than 3 but that alone
gave me a big performance increase. Now in vulkan I get 28ms/frame, in opengl
58ms/frame. And on vulkan cpu is load is <70%, in opengl cpu load is constantly
<span class="quote">>95%. So lesson learned - proper synchronization is important.</span ></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>