FPS of OnPaint calls
Posted: Fri Jun 18, 2021 2:06 am
Hello!
I want to control Fps of OnPaint calls for Offscreen mode. I.e I want to set up FPS as 25, 30, 60, or something other value. How I can do it?
I have one idea - save buffer from last OnPoint call, and by some timer render this buffer.
I also know about host.Invalidate() function. Seems I can call this function by timer to emulate the FPS value I need. But in this way I need somehow disable automatic OnPaint calls when changes on the page occured.
But, maybe exists more easy way? I'm a beginner in CEF, so please help me.
I want to control Fps of OnPaint calls for Offscreen mode. I.e I want to set up FPS as 25, 30, 60, or something other value. How I can do it?
I have one idea - save buffer from last OnPoint call, and by some timer render this buffer.
I also know about host.Invalidate() function. Seems I can call this function by timer to emulate the FPS value I need. But in this way I need somehow disable automatic OnPaint calls when changes on the page occured.
But, maybe exists more easy way? I'm a beginner in CEF, so please help me.