I'm trying to profile a d3d11 application using queries (pretty much exactly as described here).
The green line (Cpu) represent the time between two consecutive
swapChain->Present, while the blue one represents the time to complete some gpu work for the current frame (measured using queries as explained above).
The GPU work is always the same, however, as the time interval between two
Present becomes bigger, the measured GPU time increases too.
I guess this could be a way to reduce power consumption, however, I don't know if that's the case. Is this something you'd expect from the GPU?
Is there a way to prevent this from happening?
EDIT: Apparently, this is the answer to my question (at least on NVidia GPUs): https://developer.nvidia.com/blog/advanced-api-performance-setstablepowerstate/