xpenatan / gdx-teavm

Run Libgdx in a webbrowser with teavm
Apache License 2.0
108 stars 16 forks source link

Improve arraybuffer copy performance #126

Closed xpenatan closed 3 months ago

xpenatan commented 3 months ago

This is an attempt to improve GL calls by converting Java buffers to Javascript buffers.

It tries to cache the javascript buffer and not copy it every frame.

To test it you can open these tests.

https://xpenatan.github.io/ApollonianGasket/teavm-b9/ https://xpenatan.github.io/ApollonianGasket/teavm-1.0.1/ https://xpenatan.github.io/ApollonianGasket/teavm-snapshot/

They share the same random seed so refreshing will open the same generated picture.

image image image