Is there a way to run the x86 (desktop) version of a GapiDraw based application at some window size other than 320x240?
Running the desktop version at other resolutions
Yes, GapiDisplay has a method (SetDisplay I believe) that takes a flag. You can set it to a multitude of desktop configurations.
I checked that out. The only thing I seem to be able to do is set the orientation of the screen (portrait or landscape.) In the desktop version I only seem to be able to set the screen to 320x200. When the window gets bigger it just streches the image rather than giving me more pixels to work with.
Hi,
In GapiDraw.h there are actually options to set different resolutions:
GDOPENDISPLAY_SIZEX2
GDOPENDISPLAY_SIZEX25
GDOPENDISPLAY_SIZEX32
These options size the display to a different format (e.g. SIZEX2 is 320x240 (x2) = 640x480)
GDOPENDISPLAY_SCALEX2
GDOPENDISPLAY_SCALEX3
GDOPENDISPLAY_SCALEX4
These options scale the display to a different format (e.g. SCALEX2 scales the internal 320x240 into 640x480)
Note however that GapiDraw is not optimized for stationary PCs. The performance will in most cases dissapoint you (the screen when run in landscape mode for example has to be rotated on every frame to make it "look right" on desktops). In 640x480 that translates into roughly 600kb of non-cached memory access. Use a "real" DirectDraw bridge in your game if you need it to run in resolutions above 320x240.
/Johan
In GapiDraw.h there are actually options to set different resolutions:
GDOPENDISPLAY_SIZEX2
GDOPENDISPLAY_SIZEX25
GDOPENDISPLAY_SIZEX32
These options size the display to a different format (e.g. SIZEX2 is 320x240 (x2) = 640x480)
GDOPENDISPLAY_SCALEX2
GDOPENDISPLAY_SCALEX3
GDOPENDISPLAY_SCALEX4
These options scale the display to a different format (e.g. SCALEX2 scales the internal 320x240 into 640x480)
Note however that GapiDraw is not optimized for stationary PCs. The performance will in most cases dissapoint you (the screen when run in landscape mode for example has to be rotated on every frame to make it "look right" on desktops). In 640x480 that translates into roughly 600kb of non-cached memory access. Use a "real" DirectDraw bridge in your game if you need it to run in resolutions above 320x240.
/Johan
I figured out most my problems. I was using an old version of GapiDraw. It will be insteresting to see if the switch fixes all my bitmap problems as well.
I realize you are aimed more at the PDA market but your APIs are wonderfully easy to use (much better than directdraw) and they are keeping me from being forced to do a real port of my game. It would be great if there was a more optimized x86 version of GapiDraw.
/Johan
You had to go and say something like that. Now I'm going to be all impatient. Its going to be like waiting for Christmas.
What did you say was that release date for 1.02? :wink:
What did you say was that release date for 1.02? :wink:
haha tedson, I feel your pain. I'm waiting for Emu support mentioned in the 1.02 FAQ.
Hohum. Just found a small image lying around.. Basically, with GapiDraw 1.02, the DirectDraw bridge is a 1:1 implementation (where GapiDraw always draws in a format compatible with the native pitch of the DirectDraw back buffer). I will do some more modifications, but it is currently very possible to create "real" games that runs in both 640x480 and 800x600 @ 50 fps (my crappy laptop could only show 500 sprites in 640x480, but this machine could be considered low end by todays standards).


Excellent!