Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Boneman

Fast 2D blitting?

This topic is 6671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!