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.