HI…
I am trying to develop a FRomTopView Type of Game. It is supposed to become
some Sort of Ego Shooter but in 2d seen from the top. The idea is, that not
the PLayer char Rotates, when one moves the mouse, but World around it. So,
This means, i have some Graphics stored in a Surface (the map) and the Screen
Surface. Now i have to Rotate and Translate the image in the map and then
write it to the Screen Surface…
Well it turns out, that this is really slow, since i can`t use Blits… On a
1.2Ghz Duron with a Geforce2mx graphics Card i get about 90 fps for a 320x240
Window… But i get down to 7fps (seven) with 640x480…
I could use OpenGl and just use the Map as a Texture and Let the Hardware do
the Rotation, but this is intended to be as lightweight as possible and
should work with no hardware gl support…
And seemingly the Trnasformation is pretty fast, but the REading and
writiing to and from the surfaces is the slowest part…
Funnily i also don`t get an HWSurface for any Resolution… But this is a
different story…
Any Hints or Suggestions?
T.I.A Florian Schmidt–
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!