-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Central GpuReadback handling for re_viewer, experimental space view s…
…creenshots (#1717) EXPERIMENTAL: screenshot in context menu on spatial views
- Loading branch information
Showing
13 changed files
with
290 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
"nyud", | ||
"objectron", | ||
"Readback", | ||
"readbacks", | ||
"Skybox", | ||
"smallvec", | ||
"swapchain", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use re_renderer::ScheduledScreenshot; | ||
|
||
use crate::ui::SpaceViewId; | ||
|
||
#[derive(PartialEq, Eq, Clone, Copy)] | ||
#[allow(dead_code)] // Not used on the web. | ||
pub enum ScreenshotMode { | ||
/// The screenshot will be saved to disc and copied to the clipboard. | ||
SaveAndCopyToClipboard, | ||
|
||
/// The screenshot will be copied to the clipboard. | ||
CopyToClipboard, | ||
} | ||
|
||
/// A previously scheduled GPU readback, waiting for getting the result. | ||
pub enum ScheduledGpuReadback { | ||
SpaceViewScreenshot { | ||
screenshot: ScheduledScreenshot, | ||
space_view_id: SpaceViewId, | ||
mode: ScreenshotMode, | ||
}, | ||
// Picking { | ||
// picking: ScheduledPicking, | ||
// space_view_id: SpaceViewId, | ||
// }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f0c2fde
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust Benchmark
datastore/insert/batch/rects/insert
605599
ns/iter (± 2448
)604916
ns/iter (± 1704
)1.00
datastore/latest_at/batch/rects/query
1836
ns/iter (± 6
)1871
ns/iter (± 2
)0.98
datastore/latest_at/missing_components/primary
281
ns/iter (± 0
)283
ns/iter (± 1
)0.99
datastore/latest_at/missing_components/secondaries
435
ns/iter (± 0
)434
ns/iter (± 0
)1.00
datastore/range/batch/rects/query
151509
ns/iter (± 447
)153548
ns/iter (± 388
)0.99
mono_points_arrow/generate_message_bundles
43059300
ns/iter (± 528134
)44548872
ns/iter (± 764710
)0.97
mono_points_arrow/generate_messages
167580898
ns/iter (± 1263022
)181860171
ns/iter (± 1302133
)0.92
mono_points_arrow/encode_log_msg
209851844
ns/iter (± 3733358
)222431426
ns/iter (± 1062884
)0.94
mono_points_arrow/encode_total
417361966
ns/iter (± 1812551
)447867584
ns/iter (± 1669452
)0.93
mono_points_arrow/decode_log_msg
251422372
ns/iter (± 810673
)266281764
ns/iter (± 1017764
)0.94
mono_points_arrow/decode_message_bundles
85077520
ns/iter (± 727163
)95347641
ns/iter (± 1029190
)0.89
mono_points_arrow/decode_total
338052305
ns/iter (± 1368801
)362483952
ns/iter (± 1618307
)0.93
mono_points_arrow_batched/generate_message_bundles
35444065
ns/iter (± 1258314
)34624454
ns/iter (± 2336250
)1.02
mono_points_arrow_batched/generate_messages
9305538
ns/iter (± 761267
)9713815
ns/iter (± 851019
)0.96
mono_points_arrow_batched/encode_log_msg
1762443
ns/iter (± 3490
)1769737
ns/iter (± 16169
)1.00
mono_points_arrow_batched/encode_total
47352681
ns/iter (± 2488976
)47728270
ns/iter (± 2667756
)0.99
mono_points_arrow_batched/decode_log_msg
985723
ns/iter (± 2709
)971167
ns/iter (± 4061
)1.01
mono_points_arrow_batched/decode_message_bundles
18418610
ns/iter (± 1256736
)17318155
ns/iter (± 1991361
)1.06
mono_points_arrow_batched/decode_total
19568993
ns/iter (± 714999
)19165108
ns/iter (± 1065307
)1.02
batch_points_arrow/generate_message_bundles
288751
ns/iter (± 473
)286779
ns/iter (± 534
)1.01
batch_points_arrow/generate_messages
7800
ns/iter (± 19
)7956
ns/iter (± 19
)0.98
batch_points_arrow/encode_log_msg
389641
ns/iter (± 1458
)385614
ns/iter (± 1220
)1.01
batch_points_arrow/encode_total
696104
ns/iter (± 1785
)693373
ns/iter (± 1835
)1.00
batch_points_arrow/decode_log_msg
337022
ns/iter (± 782
)338533
ns/iter (± 704
)1.00
batch_points_arrow/decode_message_bundles
2935
ns/iter (± 7
)2905
ns/iter (± 15
)1.01
batch_points_arrow/decode_total
346135
ns/iter (± 731
)347684
ns/iter (± 6006
)1.00
arrow_mono_points/insert
6133941953
ns/iter (± 22892058
)6845684190
ns/iter (± 18410707
)0.90
arrow_mono_points/query
1809200
ns/iter (± 7892
)1777679
ns/iter (± 12548
)1.02
arrow_batch_points/insert
3045916
ns/iter (± 11102
)2994167
ns/iter (± 8352
)1.02
arrow_batch_points/query
17082
ns/iter (± 49
)17183
ns/iter (± 36
)0.99
arrow_batch_vecs/insert
42955
ns/iter (± 110
)43095
ns/iter (± 190
)1.00
arrow_batch_vecs/query
506159
ns/iter (± 354
)506123
ns/iter (± 722
)1.00
tuid/Tuid::random
34
ns/iter (± 0
)34
ns/iter (± 0
)1
This comment was automatically generated by workflow using github-action-benchmark.