jMonkeyEngine / jMonkeyEngine/jmonkeyengine

excessive calls to glObjectLabel etc

Open
#2,356 2 comments 1 reaction 2 assignees View on GitHub

@riccardobl is already working on this.

Since Mar 28, 2026.

  • #2662 by @copilot-swe-agent — open
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

glObjectLabel is being called for every update in setVertexAttrib instead of just once right after creation:
https://github.com/jMonkeyEngine/jmonkeyengine/blob/03c26a8a253395bbd2736784cd4cb1c6dd102270/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java#L3220

This actually shows up in RenderDoc and in a CPU usage profile.
Also vb.getName() never returns null.

Also if not done right after creation it's easy to miss something, e.g. index buffers are never set cause of
https://github.com/jMonkeyEngine/jmonkeyengine/blob/03c26a8a253395bbd2736784cd4cb1c6dd102270/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java#L3116-L3118

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.