[Question] Use KorGe with Compose
Can I use some parts of KorGe as a faster Canvas with less latency in a Compose Multiplatform project?
Related PR: https://github.com/korlibs/korge/pull/1801
The main obstacle is that KorGE uses OpenGL, while Compose uses different rendering engines. In Android we can use an OpenGL view AFAIK, but in other targets might be more complicated.
Related issues:
- https://github.com/korlibs/korge/issues/1704
- https://github.com/korlibs/korge/issues/784
- https://github.com/korlibs/korge/issues/640
In the case of Metal there is another approach that is: https://developer.apple.com/documentation/metal/metal_sample_code_library/mixing_metal_and_opengl_rendering_in_a_view
If compose or someone implements/supports an OpenGL View in common code, we can use that.