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

Android buffer allocator implementation #1214

Merged
merged 5 commits into from
Nov 19, 2019

Conversation

joliver82
Copy link
Contributor

@joliver82 joliver82 commented Nov 14, 2019

A new buffer allocator created to solve ReflectionAllocator exceptions while freeing memory (destroyDirectBuffer method) caused by new buffer wrapper classes (java.nio.ByteBufferAs[type]Buffer) in android and improving memory management not having to wait for GC to free direct memory if desired.

Related forum post: https://hub.jmonkeyengine.org/t/exception-when-destroying-direct-memory-in-android/42483

@Ali-RS
Copy link
Member

Ali-RS commented Nov 15, 2019

Thanks :)

@Ali-RS
Copy link
Member

Ali-RS commented Nov 16, 2019

After merging PR #1147 which changes OGLESContext.java (https://github.com/jMonkeyEngine/jmonkeyengine/pull/1147/files#diff-51f8ab703009d20f32b7588036e3fb27) I was expecting GitHub shows conflicts with the base branch for this PR but it does not!
So just to get sure, does this PR need to be updated with jme's master branch?

@joliver82
Copy link
Contributor Author

Changes to OGLESContext in this PR are between lines 62 and 84 which were not modified by the gl3 PR, so there's no conflict and can be merged safely. But if you feel more comfortable updating this branch to master previously to merge tell me and I'll do ;)

@Ali-RS
Copy link
Member

Ali-RS commented Nov 16, 2019

Ok, now that it is safe, then I guess no need to update.
Thanks for the clarification :)

@Ali-RS Ali-RS merged commit d935347 into jMonkeyEngine:master Nov 19, 2019
@stephengold stephengold added this to the v3.3.0 milestone Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants