Improve export performance

This commit is contained in:
Skyler Lehmkuhl
2026-03-09 13:39:56 -04:00
parent a18a335c60
commit 78e296ffde
9 changed files with 693 additions and 584 deletions
@@ -514,6 +514,7 @@ impl ExportOrchestrator {
renderer: &mut vello::Renderer,
image_cache: &mut ImageCache,
video_manager: &Arc<std::sync::Mutex<VideoManager>>,
floating_selection: Option<&lightningbeam_core::selection::RasterFloatingSelection>,
) -> Result<bool, String> {
if self.cancel_flag.load(Ordering::Relaxed) {
self.image_state = None;
@@ -559,6 +560,8 @@ impl ExportOrchestrator {
device, queue, renderer, image_cache, video_manager,
gpu,
output_view,
floating_selection,
state.settings.allow_transparency,
)?;
queue.submit(Some(encoder.finish()));
@@ -1106,6 +1109,8 @@ impl ExportOrchestrator {
document, timestamp, width, height,
device, queue, renderer, image_cache, video_manager,
gpu_resources, &acquired.rgba_texture_view,
None, // No floating selection during video export
false, // Video export is never transparent
)?;
let render_end = Instant::now();