This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GapiDraw and Timers(Again!!)


GapiDraw and Timers(Again!!)

Postby gevans2000 » Jan 14, 2004 @ 1:48pm

I'm just starting out on my next project for MS Smartphone and have a problem with timers.

I have used GR Moore's sample code to implement a timer. At the moment all I want to do is animate a line moving up and down the screen. From what I've read the whole point of a timer is to isolate the animation speed from the framerate - only I can't seem to be able to achieve this.

In my timer callback I simply update the Y coordinate of the line by a value of 1. To test whether it's isolated from the framerate I set the framerate to a low value (<10). I believe that what I should see when the framerate is low is that the line should move in big steps every time the frame is updated.

For example if the framerate is 10 and my timer is set to 25ms every time the frame is updated I my line should have moved 4 pixels. Unfortunately it doesn't, it just moves by 1 pixel every frame.

I'm using the CGapiApplication framework and I also use the Hekkus Sound system. I realise that GR Moore's code was written for GD 1.04 so I'm wondering whether using GD2.05 or the Hekkus Sound System could be making a difference.

Any advice on why this might be occuring would be great. Many thanks.
gevans2000
pm Member
 
Posts: 45
Joined: Jun 11, 2003 @ 6:02pm
Location: London UK


Postby ppcStudios » Jan 14, 2004 @ 5:11pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Pejo Software - Per » Jan 14, 2004 @ 7:07pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby gevans2000 » Jan 15, 2004 @ 4:26pm

gevans2000
pm Member
 
Posts: 45
Joined: Jun 11, 2003 @ 6:02pm
Location: London UK


Postby ppcStudios » Jan 15, 2004 @ 5:41pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron