• Advertisement
Sign in to follow this  

[Solved] C++ timer library and Compute Shaders

This topic is 2221 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, i have problem measuring times of compute shaders.

I am using QueryPerformanceCounter (and for checking also clock()). Both gave +- same results in ms. But if I measure time on my stopwatch smile.png I gave totally different time.
C++ timer says 10ms, but its rubbish. Application (computer) freezes for about 30 seconds during shader execution.

How can I measure this ?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
I'm guessing that you're measuring the amount of time it takes for the CPU to submit your workload, not the amount of time it takes the GPU to actually execute the work?
Perhaps you should post some code or describe your testing methodology.

Share this post


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

  • Advertisement