Hi Christoph

You find that the application runs faster in full screen mode. There
are also different kinds of SDL surfaces you can try.

SDL_HWACCEL and SDL_HWSURFACE for example.

If that doesn't help you can rewrite using OpenGL to draw your tiles,
and that should be quicker as long as your opengl driver is hardware
accelerated.

I seem to remember that you should use cl-opengl along with
lispbuilder to do opengl stuff. A search for 2d spites open gl brings
up lots of reference material.

Justinhj

2009/3/23 Christoph Senjak <christoph.sen...@web.de>:
> Hello everyone.
>
> I am working on a little Tile-Engine, drawing PNG-Sprites on a surface. Since
> I switched to a higher screen-resolution and draw more little sprites, and
> draw backgrounds, the whole thing is getting much too slow. Most sprites have
> transparent parts, and also the background-images are overlapping.
>
> It seems like it doesnt matter if I draw many little or some huge graphics on
> the screen, both seems to be slow.
>
> I can change parts of the program, but I actually dont know what the problem
> is. The program is fast enough if I just draw rectangles (for testing), but
> as soon as I draw surfaces, it isnt anymore.
>
> I am already trying to prevent anything outside the screen to be drawn
> (because it is invisible anyway), and to put things being directly next to
> each other into the same surfaces which I have to blit, but this doesnt
> really help.
>
> I read that one has to use OpenGL also to enhance the Speed of 2d graphics. I
> neither know how to do this with lispbuilder-sdl, nore if this is true.
>
> Do you have any suggestions for me to get my graphic faster?
>
> Regards,
> Christoph Senjak
> _______________________________________________
> application-builder mailing list
> application-builder@lispniks.com
> http://www.lispniks.com/mailman/listinfo/application-builder
>
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to