Skip to content

[pure refactor] Picking configuration is now part of view builder setup#11082

Merged
Wumpf merged 3 commits intomainfrom
andreas/re_renderer/picking-config-refactor
Sep 8, 2025
Merged

[pure refactor] Picking configuration is now part of view builder setup#11082
Wumpf merged 3 commits intomainfrom
andreas/re_renderer/picking-config-refactor

Conversation

@Wumpf
Copy link
Copy Markdown
Member

@Wumpf Wumpf commented Sep 2, 2025

Previously, to set up picking on a ViewBuilder, you'd call schedule_picking_rect. With this refactor, it's instead part of the views initial configuration. Surprisingly, that's practically no issue at all for our existing Viewer & example code 🤷

Why the hassle though, what's wrong with the old way?

This is a small piece of prep work I split out of another renderer refactor/enhancement pet-project of mine. At the core the issue addressed here is that it's very useful to know what draw phases are active when enqueuing DrawData. With the schedule_picking_rect approach this information wasn't guaranteed to be available ahead of time.
(With this, the only draw phase we don't know about whether it's active is the "screenshot phase" which is a bit of a strange copy-shim, rather dubious that it's a full phase in the first place.)

@Wumpf Wumpf added 🔺 re_renderer rendering, graphics, GPU 🚜 refactor Change the code, not the functionality exclude from changelog PRs with this won't show up in CHANGELOG.md labels Sep 2, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 2, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
e7e6bbe https://rerun.io/viewer/pr/11082 +nightly +main

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf requested a review from aedm September 5, 2025 18:04
Copy link
Copy Markdown
Member

@aedm aedm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

My favorite kind of PR.

@Wumpf
Copy link
Copy Markdown
Member Author

Wumpf commented Sep 8, 2025

My favorite kind of PR.

just barely 😅

@Wumpf Wumpf merged commit 0a31c23 into main Sep 8, 2025
40 checks passed
@Wumpf Wumpf deleted the andreas/re_renderer/picking-config-refactor branch September 8, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog PRs with this won't show up in CHANGELOG.md 🔺 re_renderer rendering, graphics, GPU 🚜 refactor Change the code, not the functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants