mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 07:10:58 +00:00
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:
parent
1af4990517
commit
92c5cbfaf2
|
@ -30,7 +30,7 @@ namespace Examples.Tutorial
|
|||
{
|
||||
#region --- Fields ---
|
||||
|
||||
float rotation_speed = 3.0f;
|
||||
const float rotation_speed = 180.0f;
|
||||
float angle;
|
||||
|
||||
#endregion
|
||||
|
@ -115,6 +115,7 @@ namespace Examples.Tutorial
|
|||
DrawCube();
|
||||
|
||||
this.SwapBuffers();
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue