Skip to content

Android buffer allocator implementation - #1214

Merged
Ali-RS merged 5 commits into
jMonkeyEngine:masterfrom
joliver82:android-memory
Nov 19, 2019
Merged

Android buffer allocator implementation#1214
Ali-RS merged 5 commits into
jMonkeyEngine:masterfrom
joliver82:android-memory

Conversation

@joliver82

@joliver82 joliver82 commented Nov 14, 2019

Copy link
Copy Markdown
Contributor

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

Ali-RS commented Nov 15, 2019

Copy link
Copy Markdown
Member

Thanks :)

@Ali-RS

Ali-RS commented Nov 16, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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

Ali-RS commented Nov 16, 2019

Copy link
Copy Markdown
Member

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