Getting speed?

hi!
I am writing a program for the vesa-fb using 16bit
color depth and a resolution of 1024x768.
I don’t use HW_Surface and pageflipping.

My problem is that the program is to slow.

The source works like this

LOOP:
HideObjects(); //Draws the Background of every
Object on the screen
DoAction(); //Sets fading, moving … depends on
mission the object has to do
GetBackground();// Gets the background of the new
pos.
Show(); //Blits the Surface on screen.
SDL_Flip();
END OF LOOP

I recognized that the Blits I am doing take a lot of
time and I am using a lot of Blits.

I wrote a test program and a Blit of a surface with
1024x768 takes 100 ms. That’s not very fast !?

What can I do to get my program faster. I read the
discussion “slooow” in the mailing list and already
changed the colors to 16 Bit at SDL_SetVideoMode and
at the fb, but it didn’t get fast enough.

I think the memory copy is very slow, so is there
anything I can improve.

Would be cool if anybody could help me.
I am new in programing with the SDL but I think it
should be fast enough (when i look at "Call to Power"
i know it is fast enough).

Thanx for the support!__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! Mail auf Ihrem Handy? - http://mobil.yahoo.de

hi!
I am writing a program for the vesa-fb using 16bit
color depth and a resolution of 1024x768.

100 ms for a memory copy of 1024x768x16bpp doesn’t sound right.

Can you verify this?

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

-= * = * = * = * = * = * = * = * = * = * = * = * = * = * = * = * =-
To debug, or not to debug, that is the question! Whether
tis nobler in mind to suffer the slings and arrows of outrageous QA
testers, or take arms against a sea of user issues, and by compiling,
end them? To code, to sleep, no more, and by code to say we end the
heartache and thousand natural crashes players are heir to…

I 've made some changes in the program and now it
takes 89 msec for the blit and a flip(update).

I think it could be faster.

Heres the source and the logfile.

Thanx for help.__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! Mail auf Ihrem Handy? - http://mobil.yahoo.de
-------------- next part --------------
A non-text attachment was scrubbed…
Name: bee.log
Type: x-unknown/x-unknown
Size: 483 bytes
Desc: bee.log
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000602/62b31eb4/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed…
Name: bee.cxx
Type: x-unknown/x-unknown
Size: 2114 bytes
Desc: bee.cxx
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000602/62b31eb4/attachment-0001.bin