secondlife / secondlife/viewer

Optimize viewer cleanup

Open
#6,014 1 comment 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #6024 by @akleshchev — merged
  • #6026 by @akleshchev — merged
bug stale
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Description

Task

Cleanup can take multiple seconds on a powerfull PC, try to make it at least twice faster.

On the screen is cleanup from the time the button was clicked till termination. Not sure why it's so messed up, but it shows at least some problematic places and that cleanup took almost 3 seconds.

Image

Notes

Viewer's cleanup is incredibly 'flat'. Alsmost everything happens in a single pass in a single thread. Potenatially some things can be threaded, like caching. Texure thread needs to be spread over instead of waiting at the end. Media cleanup needs to be looked over.

Test plan

Confirm settings, inventory, chat cache persist across logins.

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.

Research direction

No source file, entry point, or automated test is named. Start by reproducing the viewer cleanup timing and examining the attached profile, then trace the cleanup work described in the notes; done means cleanup is at least twice as fast while settings, inventory, and chat cache persist across logins.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.