Skip to content

Conversation

@1zun4
Copy link
Member

@1zun4 1zun4 commented Jun 26, 2025

CEF supports hardware-accelerated off-screen rendering by enabling shared_texture_enabled via WindowInfo and passing --off-screen-rendering-enabled --shared-texture-enabled as arguments.

Unfortunately, Java CEF lacks bindings for OnAcceleratedPaint, meaning we cannot make use of this feature. This pull request enables this feature when turning shared_texture_enabled to true.

The changes were tested on a forked JCEF version (on CEF 130.1.9) by converting the D3D11 shared texture handle using ImportMemoryWin32HandleEXT using OpenGL's EXT_external_objects_win32 which is supported by LWJGL3.

image

Ignore the inverted colors. It was still missing the shader for the color conversion.

@1zun4 1zun4 force-pushed the feat/accelerated-paint branch from 1c1acd8 to 6ad431c Compare June 26, 2025 04:31
@1zun4 1zun4 merged commit bc256f5 into main Jun 26, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants