PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Information about VGA support

Hey guys,

I'm in the early stages of design work for K&G; Arcade II and one of the basic decisions to make is whether to do this as a VGA game or not.

It's an either-or decision because we don't have the resources to develop for two resolutions, so it's either a VGA-only game or not. Since we're probably close to a year away from release I'm not worried about market saturation of VGA devices, and since we don't expect to make much money in any case, all is good :)

My questions are these...

* What needs to be done from a code standpoint to use GD on VGA devices? Is it as simple as setting that HIRES_AWARE flag, or whatever it is, and from then on you have a 480x640 screen (assuming portrait mode)? Or is there more to consider beyond that?

* What's the performance hit that people are seeing on various devices (I assume they aren't all the same)?

* Tied to the above, what kind of FPS could one expect on a VGA device if you are doing a full-screen refresh each frame? I realize there are tons of variable to this so there won't be one definitive answer... I'm just looking for a ballpark figure.

* I don't have a VGA device myself and don't expect to have one for another couple of months, so I'll be doing development on the PC as usual, but now I won't be able to check every so often on a real device. Are there any concerns I should have, or can I make the assumption that if it works fine on the desktop it'll work on a real device? (I mean beyond the usual concerns in this area of course)

Thanks all!
What needs to be done from a code standpoint to use GD on VGA devices? Is it as simple as setting that HIRES_AWARE flag, or whatever it is, and from then on you have a 480x640 screen (assuming portrait mode)? Or is there more to consider beyond that?


Yes. However, the display resolution can be either 640x480 or 480x640, depending on the current display orientation (it is auto detected). But of course you can call SetDisplayMode() again to set portrait resolution if you want to. Also, you need to add a resource called HI_RES_AWARE to your project (simply search google on this one).

* What's the performance hit that people are seeing on various devices (I assume they aren't all the same)?


It's around 30FPS for most uses.. So it should be enough (remember, DiabloII on PCs ran at 24FPS)...

I don't have a VGA device myself and don't expect to have one for another couple of months, so I'll be doing development on the PC as usual, but now I won't be able to check every so often on a real device. Are there any concerns I should have, or can I make the assumption that if it works fine on the desktop it'll work on a real device? (I mean beyond the usual concerns in this area of course)


I think it would be safe to develop on the PC. Another bonus advantage of this is that you can release your game on the PC in 640x480 full screen, hardware accelerated mode as well...
Yes. However, the display resolution can be either 640x480 or 480x640, depending on the current display orientation (it is auto detected). But of course you can call SetDisplayMode() again to set portrait resolution if you want to. Also, you need to add a resource called HI_RES_AWARE to your project (simply search google on this one).


Ok, cool. I didn't realize the orientation would be whatever it was when the app was started, so that's one problem I won't have to solve later :) The game won't work in both orientations, so I'll have to remember to call SetDisplayMode().

I found the info on the resource, thanks for the heads-up!

It's around 30FPS for most uses.. So it should be enough (remember, DiabloII on PCs ran at 24FPS)...


Are you saying there is a 30FPS *hit*, or that 30FPS is about the average achievable rate? K&G; Arcade runs at 24FPS, so if 30FPS is the average I have enough overhead to play with, but if it's a 30FPS hit then I might not be able to achieve 48 (to get to 24 after the hit).

I think it would be safe to develop on the PC. Another bonus advantage of this is that you can release your game on the PC in 640x480 full screen, hardware accelerated mode as well...


Excellent! Since I plan on allowing the game to be synchronzed so a person could play at home and then continue that same game on the road, this is good news. Thanks Johan!