mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 12:50: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 ---
|
#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
|
||||||
|
|
Loading…
Reference in a new issue