PocketMatrix forums

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

Why is Scalex2 faster than Sizex2?

Hello,


Iam writing a little jump and run game for Pocket and Stationary Pc, now my question.

When i call CGapiDisplay::OpenDisplay with
GDOPENDISPLAY_SIZEX2 and render everything in a window its horrible slow...but when i call it with
GDOPENDISPLAY_SCALEX2 its much faster. Why, i thought to scale graphic is slower than set a simple resolution, what does GapiDraw do in the Backgroung when creating the Primary Surface(i mean the DirectDraw part)? Or is there anything i do wrong?

Thx
If you use SIZEx2: The visible area rendered by GapiDraw is 640x480 pixels..

If you use SCALEx2: The visible area rendered by GapiDraw is 320x240 pixels and is then stretched by your graphics hardware to 640x480 on each Flip().

The performance overhead of scaling from 320x240 to 640x480 using hardware is virtually zero. So performance in SIZEx2 will be around four times slower...
mhhh....


but what can i do. It is really slow in a window with 640x480 an even in Fullscreen it is not really faster...only on the PocketPC its fast enough. And actually there is only one animating Sprite.

I want to create the game on the PC and then scale all graphics down for the PPC not the other way around.
> but what can i do

You have two options:
(1) Use SCALEx2... That way your game will run at the same resolution as your Pocket PC, 320x240.
(2) Use GapiDraw 1.10. GapiDraw 1.10 is hardware accelerated and will run SIZEx2 just fine...