> Am 17.04.2018 um 21:05 schrieb H. Nikolaus Schaller <[email protected]>:
> 
> Hi Sven,
> 
>> Am 17.04.2018 um 16:31 schrieb Sven Dyroff <[email protected] 
>> <mailto:[email protected]>>:
>> 
>> 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

_______________________________________________
Gta04-owner mailing list
[email protected]
http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

Reply via email to