Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oiling my tablet
Message
From
30/04/2013 04:20:29
 
 
To
29/04/2013 14:50:36
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01572116
Message ID:
01572258
Views:
50
>>>>
>>>>All now working smoothly (literally). I'm currently recalculating the average every time a new orientation event comes in. Processor seems to cope (g) and it makes for a very realistic damping effect.
>>>>
>>>>Had a few moments panic but it turned out the device compass needed recalibrating - was getting some *very* strange results beforehand tho.
>>>>
>>>
>>>Sure it wasn't on your way from the pub to home ?
>>
>>No. Just tried it coming back from the pub. Worked perfectly. Just led me into the ditch a couple of times :-}
>
>Could have been the beer
>
>>>
>>>>Thanks for the input and suggestions......
>>>
>>>Anytime - refreshed a bit of math
>
>
>
>Come to think of it
>
>> I'm currently recalculating the average every time a new orientation event comes in
>
>Isn't that a bit of an overkill - if you have to display it every second (or 5 seconds) ?

Just profiled the CPU usage on the Nexus. The whole averaging display cycle is only using about 2.5% of processing time - so I guess it's not likely to be a problem :-}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform