th's picture

Processor maximum usage

Hi, I wonder why after running my game, both core processor are maximum used. How this can be solved? OpenTK1.0 b2


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Do you mean that both processors are maxed out while the game is running or after exiting the game?

In the first case, you can reduce CPU usage by enabling vsync or adding a call to System.Threading.Thread.Sleep(1) after SwapBuffers(). In the second case, this might indicate a bug that is not allowing your game to exit correctly.

th's picture

Both processors are maxed out while the game is running.

I am trying enabling vsync, but nothing effect. Thread.Sleep(1) same effect, but when use Thread.Sleep(10), then it's "ok" .hm