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

Cached transforms & disconnected spaces for faster scenes with many transforms #5221

Merged
merged 6 commits into from Feb 23, 2024

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Feb 16, 2024

Also make sure to check whether the feature is enabled before querying.

This makes a massive difference in big scenes with large transform hierarchies.

After:
image

Before:
image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

@teh-cmc teh-cmc added 📉 performance Optimization, memory use, etc include in changelog labels Feb 16, 2024
@teh-cmc teh-cmc marked this pull request as draft February 16, 2024 17:08
@teh-cmc teh-cmc changed the title Cached transform arrows Cached transforms & disconnected spaces Feb 22, 2024
@teh-cmc teh-cmc requested a review from Wumpf February 22, 2024 09:29
@teh-cmc teh-cmc marked this pull request as ready for review February 22, 2024 09:31
@teh-cmc
Copy link
Member Author

teh-cmc commented Feb 22, 2024

Let's get rid of those cache stats next 😒

@teh-cmc
Copy link
Member Author

teh-cmc commented Feb 22, 2024

Oh actually there's still this reference_from_entity_ignoring_pinhole thing

@teh-cmc
Copy link
Member Author

teh-cmc commented Feb 22, 2024

Added cached pinholes @Wumpf

@Wumpf Wumpf merged commit e050442 into main Feb 23, 2024
40 of 41 checks passed
@Wumpf Wumpf deleted the cmc/cached_transform_arrows branch February 23, 2024 08:07
@Wumpf Wumpf changed the title Cached transforms & disconnected spaces Cached transforms & disconnected spaces for faster scenes with many transforms Feb 23, 2024
Wumpf added a commit that referenced this pull request Feb 26, 2024
### What

* Missed this one on #5221

Didn't make a big difference in perf though for the scene I tested with
(opf --no-frames), but no point in not keeping it, likely more relevant
for more even more pinholes.


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5271/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5271/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5271/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/5271)
- [Docs
preview](https://rerun.io/preview/d432d0758198ceb81cf950e39543d1c4268bc7e3/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/d432d0758198ceb81cf950e39543d1c4268bc7e3/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 📉 performance Optimization, memory use, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants