summaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-31 23:45:18 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-31 23:45:18 +0000
commitba7b40284d98e893d4e8119c65d1d89c6a7091cf (patch)
tree9593bb5a4a39e7362943aa332016236a6a685c23 /Projects
parentUpdated samples submodule (implemented switching to fullscreen in sample apps) (diff)
downloadDiligentEngine-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.cpp2
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)