A quick word about my last (successful) attempt at optimizing sdl.

adding the following flags as arguements to making a new window improved performance by over 50% in my case:

Code:
Sdl_HwSurface Or Sdl_HwAccel Or Sdl_RleAccel Or Sdl_Doublebuf Or Sdl_Resizable
This has finally made my goal of under 1Ghz cpu for my rotations, and a bit of code to improve when elements are re-drawn has brought my engine down from 950mhz to around 175mhz. It took long, but with enough tweaking I now believe that sdl really is as flexible as people claim it is. I think it will be another while yet before I make the permanent move to OpenGl, my enemy in terms of complexity.

Code out.