No need to burn 100% CPU time just for a spinning cube! (Especially important for the multithreading test, which opens multiple such windows).

This commit is contained in:
the_fiddler 2009-11-03 13:03:35 +00:00
parent 1af4990517
commit 92c5cbfaf2

View file

@ -30,7 +30,7 @@ namespace Examples.Tutorial
{ {
#region --- Fields --- #region --- Fields ---
float rotation_speed = 3.0f; const float rotation_speed = 180.0f;
float angle; float angle;
#endregion #endregion
@ -115,6 +115,7 @@ namespace Examples.Tutorial
DrawCube(); DrawCube();
this.SwapBuffers(); this.SwapBuffers();
Thread.Sleep(1);
} }
#endregion #endregion