kkc0923's picture

GLControl resizing is memory-consume method?

Hi, I started to use OpenTK recently. I make simple Window form with GLControl. GLControl is resized when Window form was risized. But when GLControl was resized, system memory usage has increased rapidly. This is bug? (When I resize window continuously, total memory usage is 3GB!)


Comment viewing options

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

Could you show us the exact code you are using inside your resize event?

kkc0923's picture

I use simpley Dock property of GLControl. I set Dock property to "Fill". And there is only GLControl control.

kkc0923's picture

Oh, I found my problem maybe. I used draw methods in GLControl's Paint event. When I moved my draw methods from Paint event to Application_Idle event, memory is not increased! What is problem?