언어 설정

Menu
Sites
Language
Gear S2 Watchface - Frame rate issues on sweeping seconds hand

Hi everyone.

I'm trying to create my first watchface in the Tizen SDK.  For the most part I have the hands working as I want them, which is a smooth 'Rolex' type sweep on the seconds hand.  However when I add a second seconds hand which is effectively an offset shadow version of the second hand, the frame rate appears to stutter, and the second hand starts to jump.  Just for reference, it runs very smoothly on an emulator, just not on the watch.

I wondered if I'm doing something wrong, and if you guys wouldn't mind taking a look at my code.  I've made far more complex things than this in GWD and they've always run smoothly, hence my concern.  As I said, this is my first Tizen SDK watchface, so any detailed help would be much appreciated.

The project can be downloaded in full from:

oneworlddesigns.co.uk/media/Chrono2.zip

Thank you in advance.

Edited by: Matt Whiteley on 05 9월, 2016

Responses

2 댓글
Yasin Ali

Hi~,

I checked your watchface by removing min and hour hand, then second hand sweeps
smoother than before. After adding min hand, seocnd hand started to stutter.
In think the cpu got overloaded while performing repeated calculations. You may try to
optimize your code a bit.

Thanks.

Matt Whiteley

Yasin,

Thanks for replying.  I see the exact same symptom.  If you can offer any advice on how to optimize the code, I'd really appreciate it.  The code I'm using is an adapted version of the stopwatch demo that Tizen provide.  I used that as I'm still very early in the learning process.

I do agree it's likely an issue with the code, as it's possible to have far more sweeping hands in GWD without any of the slowdown I experience through Tizen SDK.