Examples: Enable vsync by default in example applications (#1213, #1151)

This commit is contained in:
omar
2017-07-23 16:13:17 +08:00
parent 166e8f6261
commit 645875a240
5 changed files with 10 additions and 3 deletions

View File

@ -186,7 +186,9 @@ int main(int, char**)
// Rendering
g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, (float*)&clear_col);
ImGui::Render();
g_pSwapChain->Present(0, 0);
g_pSwapChain->Present(1, 0); // Present with vsync
//g_pSwapChain->Present(0, 0); // Present without vsync
}
ImGui_ImplDX11_Shutdown();