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

Nifty uploads a lot of data #2358

Open
Trass3r opened this issue Feb 2, 2025 · 0 comments
Open

Nifty uploads a lot of data #2358

Trass3r opened this issue Feb 2, 2025 · 0 comments

Comments

@Trass3r
Copy link
Contributor

Trass3r commented Feb 2, 2025

The UI shows up as a hotspot in https://github.com/tonihele/OpenKeeper CPU profiles cause it constantly uploads data via glBufferData.
Is this a problem on the user side or does the code lack optimizations to avoid that:

public void render() {
renderState.setBlendMode(convertBlend(blendMode));
vertexPosBuffer.flip();
vertexPos.updateData(vertexPosBuffer);
vertexTexCoordBuffer.flip();
vertexTexCoord.updateData(vertexTexCoordBuffer);
vertexColorBuffer.flip();
vertexColor.updateData(vertexColorBuffer);
indexBufferBuffer.flip();
indexBuffer.updateData(indexBufferBuffer);

@Trass3r Trass3r changed the title Nifty keeps reuploading data Nifty uploads a lot of data Feb 2, 2025
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

No branches or pull requests

1 participant