Jump to content
  • Advertisement
Sign in to follow this  
fms

Relation between window size and number of fragments.

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

Hi, What is the relation between the window size and the number of fragments being computed? I am writing a pixel shader for particle simulation and I observe that the window size needs to be adjusted depending on the number of particles in the simulation. Suppose, I am simulating it for 500 particles and my window size initially is 128x128. This window size should be sufficient to simulate the process (right) but when I do the simulation, my values are all zeros. However, when I change my window size to some other (bigger size), I find correct simulation results. I want to know how does the number of fragments or particles influences the window size or is it the other way around. Also if someone could elaborate on the reason. Thanks. - FMS

Share this post


Link to post
Share on other sites
Advertisement
Width x Height = Fragments to compute, give or take. Thats assuming you don't overdraw, or use antialiasing. If you are going to do any overdraw, chances are you will see that there are lot more fragments per frame needing to be processed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!