mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Fix node graph execution
This commit is contained in:
parent
cfc95a3e14
commit
bf0402e3e5
1 changed files with 3 additions and 7 deletions
|
@ -52,14 +52,10 @@ async fn main() {
|
||||||
.apply()
|
.apply()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
std::thread::spawn(|| {
|
std::thread::spawn(|| loop {
|
||||||
let set = tokio::task::LocalSet::new();
|
futures::executor::block_on(graphite_editor::node_graph_executor::run_node_graph());
|
||||||
|
|
||||||
loop {
|
std::thread::sleep(std::time::Duration::from_millis(16))
|
||||||
set.spawn_local(graphite_editor::node_graph_executor::run_node_graph());
|
|
||||||
|
|
||||||
std::thread::sleep(std::time::Duration::from_millis(16))
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// *(IMAGES.lock().unwrap()) = Some(HashMap::new());
|
// *(IMAGES.lock().unwrap()) = Some(HashMap::new());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue