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

Axim speed problems


Postby Kzinti » Sep 10, 2003 @ 6:49pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Sep 10, 2003 @ 6:53pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Sep 13, 2003 @ 5:33am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Pejo Software - Per » Sep 13, 2003 @ 7:56am

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


Postby fzammetti » Sep 13, 2003 @ 1:30pm

Yes, I assume it is (it's the code built-in to GapiDraw).

But even if that's the case, the basic logic I was trying to express is, seemingly at least, being broken: if I set the frsme rate to 40 and I'm getting nothing lower thsn 25, and I then set the frame rate to 24, isn't it reasonable to assume I'd see a very steady 24?

Instead I'm ocassionaly seeing numbrs as low as 21, and that doesn't make sense to me.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Pejo Software - Per » Sep 13, 2003 @ 2:21pm

OK let me exemplify what I mean.

Let us say that your framerate counting code is calculates the framerate based on some frames back in time.

You set target framerate to 40 fps(25 ms / frame).
Then the following happens:
1 frame - 20 ms Sleep 5 ms
2 frame - 20 ms Sleep 5 ms
3 frame - 50 ms
4 frame - 20 ms Sleep 5 ms
framerate = 4/0.125 = 32 fps

You set target framerate to 24 fps(42 ms / frame).
Then the following happens:
1 frame - 20 ms Sleep 22 ms
2 frame - 20 ms Sleep 22 ms
3 frame - 50 ms
4 frame - 20 ms Sleep 22 ms
framerate = 4/0.176 = 22.7 fps

I am not sure that this is how GapiDraw works but it is a possible explanation.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby denthorq » Sep 26, 2003 @ 9:49pm

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby warmi » Sep 26, 2003 @ 11:12pm

warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby denthorq » Sep 26, 2003 @ 11:56pm

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby denthorq » Oct 4, 2003 @ 5:18am

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Previous

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