Too high resource usage

Hi
When running even very simple OpenGL applications
based on VCL window(Borland Builder UI ) the CPU usage always is 100%.
The same application without VCL,using API window
uses much less.
Seems that problem is because of:
Application->OnIdle = IdleLoop;

Is there anything to do to reduce the CPU usage and still to attach the OpenGL drawing to TForm?

Hi,

Let me guess: You render or invalidate the OpenGL on idle (IdleLoop).
Solution: Use a timer (e.g. with 13ms -> 77Hz).

Right, set a timer to restrict the rendering process like this:

case WM_TIMER:
	OnIdle();
	break;

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.