W
weischbier
Guest
Can we return the current game framerate?
greetz
Weischbier
greetz
Weischbier
Count pulses of your code?
If you actually detour EndScene with an injected library, you can count the amount "pulses" it does, because when EndScene finishes executing, the frame is rendered, and your count would be accurate. I'm pretty sure HonorBuddy doesn't use an injected library though, and therefore HB's pulse would be called from the logic thread rather than EndScene.
Tl;dr - You won't get the framerate by counting pulses.
Wrong.
The frame isn't rendered until "Present()" is called. EndScene just signals that there's no longer any more information being pushed to the buffers.
So, being an EndScene hook... counting Pulses would be fairly accurate?
Wrong.
The frame isn't rendered until "Present()" is called. EndScene just signals that there's no longer any more information being pushed to the buffers.