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

Reduce buffer allocations #190

Merged
merged 5 commits into from
Dec 1, 2024
Merged

Reduce buffer allocations #190

merged 5 commits into from
Dec 1, 2024

Conversation

ah-OOG-ah
Copy link
Member

Replace some buffer allocations with MemoryStack instead. All replacement locations should be contained - I avoided touching methods which returned buffers, as those likely can't be reclaimed once the method exits.

@ah-OOG-ah ah-OOG-ah requested a review from eigenraven November 26, 2024 23:54
src/main/java/org/lwjglx/opengl/Display.java Show resolved Hide resolved
src/main/java/org/lwjglx/util/glu/MipMap.java Outdated Show resolved Hide resolved
src/main/java/org/lwjglx/util/glu/MipMap.java Outdated Show resolved Hide resolved
These take the full atlas as input, and can grow too large for the stack
Copy link

Warning: 2 uncommitted changes
#192

@ah-OOG-ah ah-OOG-ah requested a review from eigenraven November 28, 2024 03:31
@eigenraven eigenraven merged commit 6eb89d2 into master Dec 1, 2024
1 check passed
@eigenraven eigenraven deleted the reduce-buffers branch December 1, 2024 20:40
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.

2 participants