Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve arraybuffer copy performance #126

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

xpenatan
Copy link
Owner

@xpenatan xpenatan commented Jul 13, 2024

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

@xpenatan xpenatan self-assigned this Jul 13, 2024
@xpenatan xpenatan merged commit 9becf12 into master Jul 13, 2024
1 check passed
@xpenatan xpenatan deleted the work/arraybuffer/improve-performance branch July 13, 2024 15:31
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.

1 participant