I decided to use OpenGL4Net library for my game engine. The point is I've got only 60 frames per second. I want 120 at least.
That's what I use for rendering:
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case Windows.WM_PAINT: App.AppInstance.Loop(); break;
default: base.WndProc(ref m); break;
}
}
It's in the form. App.AppInstance.Loop() is just for counting fps, updating things and rendering.
Help me. Is it possible to increase fps limit in a form? Or maybe there's a different way to render and update engine?