Jump to content
  • Advertisement

Archived

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

AngelForce

Point Sprites....

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

I''m developing a particle engine right now and would like to use point sprites. However, I only found few tutorials about them and all of them lock the VB and then fill it with vertices, unlock it and draw the points(in general). I thought locking the VB when not necessary is bad(at the moment I''m using 2 triangles in one VB, which is only filled in the beginning -> a matrix transformation for each particle)....is there an other way to do this? Or is locking the VertexBuffer each frame is the best solution in this case?? Thanks for your answers! AngelForce -- If you find any mistakes, you''re allowed to keep ''em! ''When I look back I am lost.''

Share this post


Link to post
Share on other sites
Advertisement
I''m sure locking and unlocking the VB one more time each frame won''t make too much of a difference.

Share this post


Link to post
Share on other sites
for a particle engine id say it would be better to lock fill unlock the vertex buffer each frame instead of setting a different matrix for each particles. cause particles could go in the thousands, and having a thousand calls to SetTransform is probably much more costly then calling Lock/Unlock once .


:::Al:::
[Triple Buffer V2.0] - Resource leak imminent. Memory status: Fragile

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!