Jump to content
  • Advertisement

Archived

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

Punx

DDraw7 Particle Systems

This topic is 5690 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

In Andrew Lamothe''s book his particle system is done by locking the surface and changing the pixel data manually. Is this the best way to do it? Would it be easier to just blit a .bmp of a pixel wherever I needed? Is this viable performance wise?

Share this post


Link to post
Share on other sites
Advertisement
Do a speed test, but for single pixels then a blit would be way slower. Think about it, just to set up a blit you have to do many statements but actually setting a pixel is just one single equals statement. Even if you check for different surface formats and work out different x/y memory addresses my bet is it would still be quite a lot faster than a blit. For 2x2 or larger particles though you''ll have to do some tests.

Mark

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!