DrNick's picture

Manual GameWindow redraw/refresh

Hello!

I'm just getting started using OpenTK to play with OpenGL via C# on Windows. I've read some of the tutorial and have used the QuickStart\Game.cs example to get started. It's working pretty well, but I have a question:

I would like to disable the automatic redraw/refresh that GameWindow uses (for example, maintaining a 30 fps target refresh). Instead I'd like to have it wait until I press a key on the keyboard and then trigger a rendering. How might I go about this?

I'm willing to abandon GameWindow if it doesn't support this, but I haven't found an approachable alternative. Right now I'm just using a Console application and a native window, but if I should change to WinForms and a GL control, that would probably be okay.

I would really appreciate any help or suggestions. Thanks!