fixed vsync handling in COpenGL.cs
This commit is contained in:
1 parent
807d9f0e8b
commit
3cc02a189a
1 file changed
+1
-1
@@ -469,7 +469,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
if (CTime.IsRunning())
|
if (CTime.IsRunning())
|
||||||
delay = (int)Math.Floor(CConfig.CalcCycleTime() - CTime.GetMilliseconds());
|
delay = (int)Math.Floor(CConfig.CalcCycleTime() - CTime.GetMilliseconds());
|
||||||
|
|
||||||
if (delay >= 1)
|
if (delay >= 1 && CConfig.VSync == EOffOn.TR_CONFIG_OFF)
|
||||||
System.Threading.Thread.Sleep(delay);
|
System.Threading.Thread.Sleep(delay);
|
||||||
|
|
||||||
CTime.CalculateFPS();
|
CTime.CalculateFPS();
|
||||||
|
|||||||
Reference in new issue
Block a user