• Advertisement
Sign in to follow this  

how to spot a draw() function that gets slower and slower

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

Hello I am having a problem in my application were the FPS go down as time passes, so to solve this problem I have to know which draw() is the slow one.

I asked before if I could measure the time a draw() takes with graphic diagnostics of VS2012 but the answer is a no, so I want to know if there is another way to spot that slow draw() in my code. 

Share this post


Link to post
Share on other sites
Advertisement

You could comment out the draw calls one by one and see for which one the program keeps slowing down. This will not work if the draw calls are not independent, of course.

Share this post


Link to post
Share on other sites

I already know that is between 10 draws were the problem is, and they depend on each other so I can't do that

Share this post


Link to post
Share on other sites

Attach a profiler to your program near the start when FPS is good and save it. Then attach one after waiting for the FPS to get really bad and save that separately. Compare the two profiles.

Share this post


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

  • Advertisement