Giter Club home page Giter Club logo

Comments (4)

soywiz avatar soywiz commented on June 12, 2024

Hi.

What are you trying to achieve? It should be possible, but might not work in the future if other implementations are used.

First you need the AG instance (you can get it from the RenderContext instance), then cast it to AGOpengl, then get the gl instance. This is not recommended in any case.

from korge.

jdw avatar jdw commented on June 12, 2024

from korge.

soywiz avatar soywiz commented on June 12, 2024

@jdw K/N target was removed a few versions ago. The reason is that the mingwX64 target was slow compiling and running, one order of magnitude than the JVM target due to ThreadLocal issues. I tried to insist on fixing that for quite a long time, but being able to publish UWP was a priority over having one order of magnitude of performance loss; I used to include patches on the K/N library itself but was not reasonable. That was not an issues in the case of Macos and Linux; but for Korge / Videogames most people uses Windows. Maintaining those targets was time-consuming, coding and keeping CI spending time on it, specially when using it was subpar, so I dropped it. And having different behaviour: K/N on Linux/Mac over Windows JVM, was not a good thing.

Since one can use GraalVM and embed a JVM too, I decided to use an embedded JVM on desktop. Eventually my idea is to transpile the WASM target (compilation times are excellent) into C++ and use SDL and OpenGL/Vulkan/WebGPU to target everything else not covered in JVM/JS/Android/iOS and generate native dependency-less executables. Not in the short term, though.

The idea is consumers to use AG (evolving it if necessary, if something is lacky), and provide implementations of AG using the current OpenGL/WebGL and eventually WebGPU/Metal/Vulkan.

@ygdrasil-io is working on a WebGPU implementation.

from korge.

ygdrasil-io avatar ygdrasil-io commented on June 12, 2024

@jdw I hope to release a first version on AG based on WebGPU before the end of the year. But, if you use Korge, it is better to use the abstraction layer provided rather than the low lever API, else go directly to WebGPU instead of using Korge.

If you are interessted, the proof of concept is here https://github.com/wgpu4k/wgpu4k

from korge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.