RebuildGeom rebuilds vertex buffers needlessly
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- game-dev, performance
Research direction
Find LLSpatialPartition::rebuildGeom and inspect the vertex-buffer size comparison shown in the issue. Check nearby code or tests to confirm which buffer count should be compared with index_count; done when the comparison checks the appropriate counts and the buffer is not needlessly rebuilt.
Written by the indexing model from the issue text.
Description
Description
LLSpatialPartition::rebuildGeom 's comparison is inadequate (likely an unintended bad copy paste) and causes the vertex buffer to be thrown away and rebuilt on every rebuild.
The issue is comparing vertex with indices here:
group->mVertexBuffer->getNumVerts() != vertex_count ||
group->mVertexBuffer->getNumVerts() != index_count
- Dominant language
- C++
- Stars
- 310
- Forks
- 155
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 111
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from secondlife/viewer
-
gObjectFullbrightAlphaMaskProgram in newview/llviewershadermgr.cpp is defined but never initializedPossibly taken @maxim-productengine claimed this 3 days ago. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
secondlife/viewer#6620 · 1 assignee ·
Maintainers usually reply within 1 day
-
viewer 26.5 should enable "Send GameControl Data to server" by defaultPossibly taken @AndrewMeadows claimed this 11 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
secondlife/viewer#6507 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Typo in "Copy to Inventory" on Textures opened from NotecardPossibly taken @maxim-productengine claimed this 25 days ago. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
secondlife/viewer#6432 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
LEAP API for LLMediaAPI missing ReqIDPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
secondlife/viewer#6421 ·
Maintainers usually reply within 1 day
-
Unhandled Exception in `llviewerparceloverlay` when accessing `mOwnership[4096]`Possibly taken @akleshchev claimed this 40 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
secondlife/viewer#6373 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in secondlife/viewer
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Niko1221/Strata#5560 · 2 comments ·
Maintainers usually reply within 4 days
-
NVIDIA windows
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
要トリアージ 辞書
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
yksr-melt/Meltype#1625 · 1 reaction ·
Maintainers usually reply within 1 day
-
kind/bug priority/medium qa_automation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yugabyte/yugabyte-db#37324 ·
Maintainers usually reply within 1 day