mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Apply frame rate limiter before signaling frame latency event
Otherwise we add latency for no reason.
This commit is contained in:
parent
fe0e02de18
commit
8573190c7d
@ -678,12 +678,14 @@ namespace dxvk {
|
||||
Logger::err(str::format("Presenter: vkWaitForPresentKHR failed: ", vr));
|
||||
}
|
||||
|
||||
// Apply FPS limtier here to align it as closely with scanout as we can,
|
||||
// and delay signaling the frame latency event to emulate behaviour of a
|
||||
// low refresh rate display as closely as we can.
|
||||
m_fpsLimiter.delay();
|
||||
|
||||
// Always signal even on error, since failures here
|
||||
// are transparent to the front-end.
|
||||
m_signal->signal(frame.frameId);
|
||||
|
||||
// Apply FPS limtier here to align it as closely with scanout as we can.
|
||||
m_fpsLimiter.delay();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user