1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-19 01:24:20 +00:00

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();