Hi! I need to integrate a browser in our game in the near future, so I'm trying to find out whether we can run CEF at high frame rates and synchronize it with the game rendering.
Already looked at the cef-client example, but so far I failed to get it running at more than 64 fps when offscreen is enabled, needs to handle 144+.
I'm currently thinking of a system like this:
- Game provides a render target for each open browser widget
- Browser draws to this render target using gpu rasterization
- Game reads from the render targets to draw the browser widgets
For the synchronization, I'd like CEF to draw exactly one frame for every frame drawn by the game.
Similar to using vsync, except that it will block until the game processed the browser widget.
Can this be done using CEF? Or maybe I'm completely on the wrong path here? Thanks!