Frame Rates in Games

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

I am in the midst of porting my Personal Java game to C# and the Compact
Framework.

I'm just starting to get it working, but it's running very slow so far.

I'm guessing it's running about 6 frames per second on the Compact Framework
whereas I'm getting a good 16-18 frames per second using the Jeode Java
runtime
on the same device.

I'm not very experienced with C#, but I'm using the same drawing concepts
that I used in the Java version (double buffering with background thread).
Perhaps I need to use a different approach with the Compact Framework?

What kind of frame rates have other people achieved?

I'm using an iPAQ 3835 @ 200 Mhz.

Regards,

Drew
 
20-25 fps on a Dell Axim in 2D. 5-10 doing volumetric and poly rendered 3D.

-Moe Khosravy
 
Sorry Drew... Sent too quickly.

Little optimizations count. Make sure you blit without scaling. Make sure
you use proper EV C++ dlls to power up the MHz on the device or to batch
rendering calls. I've got an Intel article coming out this month on
optimizing CF graphics using GAPI with C++ and C#. Look for it on
Intel.com/ids later in August.

-Moe Khosravy
 
Wow, I must be doing something wrong.

I'm not doing any scaling, but I'm not using any Embedded
Visual C++ dlls, either. (?)

Is there a way to profile my program so I can see where
the problem might be?

BTW, I just pulled the background image out of
my game and it's still giving me the same frame rate. :(

Drew
 
I am in the midst of porting my Personal Java game to C# and the Compact
Framework.

I'm just starting to get it working, but it's running very slow so far.

I'm guessing it's running about 6 frames per second on the Compact Framework
whereas I'm getting a good 16-18 frames per second using the Jeode Java
runtime
on the same device.

I'm not very experienced with C#, but I'm using the same drawing concepts
that I used in the Java version (double buffering with background thread).
Perhaps I need to use a different approach with the Compact Framework?

What kind of frame rates have other people achieved?

I'm using an iPAQ 3835 @ 200 Mhz.

Regards,

Drew

I get 30-40 fps with my c#/gapidraw game. You need to use gapi rather
than gdi for speed. As before, see http://www.Intuitex.com for my cf
game libraries.

Sean
---------------------------------------
Sean Cross
mailto:[email protected]

Pics Print - The photo printing solution for Windows.
http://www.picsprint.com

http://www.Intuitex.com -
Multimedia software for Windows
Game libraries for the dot net compact framework
 
I guess I'm going to have to give gapi a try because I've tried
everything I can think of to get a decent frame rate with managed
code and it's still unacceptably slow for a 2D action game.

I still don't understand why I'm getting twice the frame rate
with the Jeode Java runtime on the same device. Leads me
to believe there is still some optimization work to do in the
Compact Framework.

For some reason, I thought my game was going to run
even faster on the Compact Framework. :-(

Drew
 
Have you read the article "Writing Mobile Games Using the Microsoft .NET
Compact Framework"? It's really helpful, has lots of tips and how-to
information to get your frame rates up:

http://smartdevices.microsoftdev.com/Learn/Articles/660.aspx

Y'all should check out http://smartdevices.microsoftdev.com, it's easy to
search and new information is getting added.


NETCF Beta FAQ's -- http://www.gotdotnet.com/team/netcf/FAQ.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top