At the moment the RPG is using frame based movement, was in the middle of switching to time based when my pc died, so developement on the game has stopped for now .


I tested Crisp_N_Dry's sample as well, and got around 240 fps on my 3ghz, 512 meg ram, geforce.

I did a simple modification - made a new surface and created a 'BuildScreen' function that loops through the tiles and the other graphic and draws to the surface. Only when you switch to 'Slow' (lol) draw mode it calls the 'BuildScreen' function once.

So the only thing the DrawSlow function does now is:

DXDraw1.Surface.Draw(0,0,NewSurface.ClientRect,New Surface,False);
DXDraw1.Surface.Canvas.TextOut(0,0,'Surface overlay method');
DXDraw1.Surface.Canvas.Release;

And now I get 2560 fps, lmao . over 3000 if I remove all textout() functions.


Edit: Running the .exe straight out of the .rar gave me 200 fps, compiling with no modifications gave me 240 fps :?: