We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2143f41 commit 2da06baCopy full SHA for 2da06ba
src/d2dx/RenderContext.cpp
@@ -465,18 +465,13 @@ void RenderContext::Present()
465
break;
466
case RenderContextSyncStrategy::Interval1:
467
D2DX_CHECK_HR(_swapChain1->Present(1, 0));
468
- /*
469
- ComPtr<IDXGIOutput> output;
470
- _swapChain1->GetContainingOutput(&output);
471
-
472
- output->WaitForVBlank();*/
473
474
- double curTime = TimeEndMs(_timeStart);
475
- _frameTimeMs = curTime - _prevTime;
476
- _prevTime = curTime;
477
478
}
479
+ double curTime = TimeEndMs(_timeStart);
+ _frameTimeMs = curTime - _prevTime;
+ _prevTime = curTime;
+
480
if (_deviceContext1)
481
{
482
_deviceContext1->DiscardView(_resources->GetFramebufferRtv(RenderContextFramebuffer::Game));
0 commit comments