diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-31 23:45:18 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-31 23:45:18 +0000 |
| commit | ba7b40284d98e893d4e8119c65d1d89c6a7091cf (patch) | |
| tree | 9593bb5a4a39e7362943aa332016236a6a685c23 /Projects | |
| parent | Updated samples submodule (implemented switching to fullscreen in sample apps) (diff) | |
| download | DiligentEngine-ba7b40284d98e893d4e8119c65d1d89c6a7091cf.tar.gz DiligentEngine-ba7b40284d98e893d4e8119c65d1d89c6a7091cf.zip | |
Added sync interval to Present.
Fixed https://github.com/DiligentGraphics/DiligentEngine/issues/10
Diffstat (limited to 'Projects')
| -rw-r--r-- | Projects/Asteroids/src/asteroids_DE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp index c27b6a1..4d7501b 100644 --- a/Projects/Asteroids/src/asteroids_DE.cpp +++ b/Projects/Asteroids/src/asteroids_DE.cpp @@ -843,7 +843,7 @@ void Asteroids::Render(float frameTime, const OrbitCamera& camera, const Setting } } - mSwapChain->Present();//settings.vsync ? 1 : 0, 0); + mSwapChain->Present(settings.vsync ? 1 : 0); } void Asteroids::GetPerfCounters(float &UpdateTime, float &RenderTime) |
