[Gta04-owner] Second trial with QtMoko2

H. Nikolaus Schaller hns at goldelico.com
Tue Apr 17 21:09:09 CEST 2018


> Am 17.04.2018 um 21:05 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Hi Sven,
> 
>> Am 17.04.2018 um 16:31 schrieb Sven Dyroff <S.Dyroff at phytec.de <mailto: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.

It is here:

http://git.goldelico.com/?p=gta04-qtmoko.git;a=tree;f=src/3rdparty/games/qtmaze;h=38f4df583bba2a4712baf40915bc0026fb16dc8d;hb=398d5c957571fed6b63174cfd2e4b6d57aeff9a4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20180417/85bed5d5/attachment.html>


More information about the Gta04-owner mailing list