[Gta04-owner] Second trial with QtMoko2
H. Nikolaus Schaller
hns at goldelico.com
Tue Apr 17 21:05:11 CEST 2018
Hi Sven,
> Am 17.04.2018 um 16:31 schrieb Sven Dyroff <S.Dyroff at phytec.de>:
>
> Hello Nikolaus,
>
> > It looks as if it is much more often reporting accelerometer events (ca. 15ms) than the 4.16 kernel (ca. 100-200ms).
>
> > But neither change has the effect of making the graphics faster and smoother.
>
> > So there is likely a third factor involved when comparing to GTA02.
>
> no, I think you've found the cause!
>
> 100-200ms results in a frame rate of 5 to 10 Hz which is awfully slow!
Unfortunately no. Would be too simple...
There is a background thread that reads the accelerometer every now and then and
simply returns the last value each time it is called. So these speeds are completely
decoupled! QtMaze does not see any delay in code when calling getacx(). This
returns the value of a global variable that is updated by the background thread.
The accelerometer delay can only be recognized by a delayed reaction but
has no influence on the frame rate. So graphics should not have small jumps if
you don't move the device...
So we still have to dig deeper into it... For example someone could look
into the sources of QtMaze how the display redrawing is done.
BR,
Nikolaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20180417/eef4c436/attachment.html>
More information about the Gta04-owner
mailing list