Fast 2D blitting?

Started by
3 comments, last by Boneman 23 years, 9 months ago
Hey, sorry if that''s a question often asked, but I''m a newbie here and can''t tell. So is there any way of real fast 2D blitting? I''m using C and the allegro lib. How do I get rid of flickering during animations? The other side is overcrowded The dead will have nowhere to go
The other side is overcrowdedThe dead will have nowhere to go
Advertisement
Hi,


To get rid of flickering gfx-objects, use a doublebuffer or triplebuffer. You will probably find info on that stuff on the Internet (somewhere).

Btw, also search for pageflipping, which is almost the same.
Well, the theory is the same.



/Mankind gave birth to God.
/Mankind gave birth to God.
compiled sprites are the fastest sprites you can blit. allegro does compiled sprites. the easiest way to do a double buffer system with allegro is creating a bitmap the size of the screen, bliting your sprites onto that bitmap, wait for vsync(), the blit the big bitmap to the screen. I have some games that use allegro on my site. if you want some source e-mail me and i'll send it to you. check out my page. it has a few allegro games.

JoeMont001@aol.com www.polarisoft.n3.net

Edited by - Julio on July 17, 2000 12:03:59 PM
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
quote:Original post by Julio
compiled sprites are the fastest sprites you can blit.

Hmm, what the old myth

It was true for 8086, 286, 386.
Well, sometimes it may work even for 486 (before DX2).
But using compiled sprites now - just trashing of the instruction cache.

So tell a better way please.
The other side is overcrowdedThe dead will have nowhere to go

This topic is closed to new replies.

Advertisement