<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Sven,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 17.04.2018 um 16:31 schrieb Sven Dyroff <<a href="mailto:S.Dyroff@phytec.de" class="">S.Dyroff@phytec.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="sans-serif" class="">Hello Nikolaus,</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">> It looks as if it is much more
often reporting accelerometer events (ca. 15ms) than the 4.16 kernel (ca.
100-200ms).</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">> But neither change has the effect
of making the graphics faster and smoother.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">> So there is likely a third factor
involved when comparing to GTA02.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">no, I think you've found the cause!</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">100-200ms results in a frame rate of
5 to 10 Hz which is awfully slow!</font>
<br class=""></div></blockquote><div><br class=""></div>Unfortunately no. Would be too simple...</div><div><br class=""></div><div>There is a background thread that reads the accelerometer every now and then and</div><div>simply returns the last value each time it is called. So these speeds are completely</div><div>decoupled! QtMaze does not see any delay in code when calling getacx(). This</div><div>returns the value of a global variable that is updated by the background thread.</div><div><br class=""></div><div>The accelerometer delay can only be recognized by a delayed reaction but</div><div>has no influence on the frame rate. So graphics should not have small jumps if</div><div>you don't move the device...</div><div><br class=""></div><div>So we still have to dig deeper into it... For example someone could look</div><div>into the sources of QtMaze how the display redrawing is done.</div><div><br class=""></div><div>BR,</div><div>Nikolaus</div><div><br class=""></div></div></body></html>