C# get the frame time of any application using the GPU

I want to write a program that will check the frame rate of any application. My goal is to log FPS and time of each frame. I wrote such an application, but it uses the API of the Rivatuner Statistics Server program and does not work without it.

Are there ready-made solutions in the form of DLLs for getting information about the frames of third-party applications?

Author: Kunoichi, 2019-01-19

1 answers

This can be done through Windows Event Tracing by subscribing to the corresponding events. As a reference implementation, you can see PresentMon. Actually, you don't even need to write your program, since all this is already implemented in PresentMon.

 1
Author: user7860670, 2019-01-19 10:35:39