valerashm's picture

GUI freezing using OpenGL

Hello!

I have a problem with GUI refresh when I render opengl picture to the window.

I use Visual Studio 9 and 10.

What I have:
My window has label and OpenTK.GLControl.
I have two threads.
The first changes "int counter" variable and assigns it to the label.Text on the window.
The second renders 1e+6 number of points to the OpenTK.GLControl.

The problem:
Label doesn't change text when I have 1e+6 number of rendered points but it changes text if I render only 1e+5 number of points or less.

Why label refresing depends from number of rendered points?

Thanks.