<table><tr><td style="">michaelweghorn added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9328" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I tested this a bit and find it really nice that rendering of the actual page (rather than the thumbnail) usually starts at once when re-rendering is needed (e.g. when zoom level is changed).<br />
Also, closing Okular now works fast, even if rendering is still in progress. (The shell prompt is shown almost immediately after closing Okular when it was started from the command line.)</p>
<p>While the above is true most of the time, it happens from time to time that rendering does not start at once.<br />
I can reproduce this e.g. the following way:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">open a file that takes long to render</li>
<li class="remarkup-list-item">zoom "one step" in and out every few seconds (using the mouse wheel)</li>
</ul>
<p>While re-rendering is triggered most of the times at once, the page sometimes remains "blank" for more than 30 seconds.<br />
In those cases where the page is "blank", it also takes long for the Okular process to finish when closing the program at that point in time.</p>
<p>I (temporarily) uploaded a screencast here: <a href="https://ombx.io/4SDa42mm" class="remarkup-link" target="_blank" rel="noreferrer">https://ombx.io/4SDa42mm</a></p>
<p>Another thing I realized is that re-rendering is now triggered every time the zoom level is changed.<br />
Without this change, rendering the page is sometimes just continued at the place where it was before changing the zoom level (which results in the final page appearing earlier when no re-rendering is needed).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9328" rel="noreferrer">https://phabricator.kde.org/D9328</a></div></div><br /><div><strong>To: </strong>aacid<br /><strong>Cc: </strong>michaelweghorn, ngraham, Okular, gassaf, aacid<br /></div>