mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-27 11:37:02 -06:00
refactor(engine): move jobs, offload, remote to background/
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
pub mod jobs;
|
||||
pub mod offload;
|
||||
pub mod remote;
|
||||
@@ -305,16 +305,8 @@ fn deferred_readbacks_render_in_passes() {
|
||||
assert!(matches!(out[0].0, FrameReply::Frame { id: 3, passes: 1, gpu: false, .. }));
|
||||
for id in 4..12 {
|
||||
let auto = RenderOpts { backend: Backend::Auto, ..opts };
|
||||
let mut out = w.handle(round(&FrameMsg::Render {
|
||||
id,
|
||||
revision: s.revision,
|
||||
comp,
|
||||
time: t,
|
||||
opts: Box::new(auto),
|
||||
disk: None,
|
||||
layers: false,
|
||||
prefetch: vec![],
|
||||
}));
|
||||
let mut out =
|
||||
w.handle(round(&FrameMsg::Render { id, revision: s.revision, comp, time: t, opts: Box::new(auto), disk: None, layers: false, prefetch: vec![] }));
|
||||
while w.waiting() {
|
||||
acc.settle();
|
||||
out = w.resume();
|
||||
@@ -11,19 +11,17 @@
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
|
||||
mod analysis;
|
||||
mod background;
|
||||
pub mod cmd;
|
||||
mod footage;
|
||||
pub mod guard;
|
||||
pub mod history;
|
||||
mod home;
|
||||
mod interchange;
|
||||
pub mod jobs;
|
||||
pub mod logging;
|
||||
pub mod menus;
|
||||
pub mod offload;
|
||||
pub mod perf;
|
||||
pub mod preview;
|
||||
pub mod remote;
|
||||
pub mod render_queue;
|
||||
pub mod scriptui;
|
||||
mod settings;
|
||||
@@ -46,6 +44,9 @@ pub use analysis::models;
|
||||
pub use analysis::roto;
|
||||
pub use analysis::tracking;
|
||||
pub use analysis::warp;
|
||||
pub use background::jobs;
|
||||
pub use background::offload;
|
||||
pub use background::remote;
|
||||
pub use cmd as commands;
|
||||
pub use cmd::{CommandSpec, command_specs, find as find_command};
|
||||
pub use effectcraft_color as color;
|
||||
|
||||
Reference in New Issue
Block a user