Fix node graph execution

This commit is contained in:
Dennis Kobert 2025-03-03 16:56:35 +01:00
parent cfc95a3e14
commit bf0402e3e5
No known key found for this signature in database
GPG key ID: 5A4358CB9530F933

View file

@ -52,14 +52,10 @@ async fn main() {
.apply()
.unwrap();
std::thread::spawn(|| {
let set = tokio::task::LocalSet::new();
std::thread::spawn(|| loop {
futures::executor::block_on(graphite_editor::node_graph_executor::run_node_graph());
loop {
set.spawn_local(graphite_editor::node_graph_executor::run_node_graph());
std::thread::sleep(std::time::Duration::from_millis(16))
}
std::thread::sleep(std::time::Duration::from_millis(16))
});
// *(IMAGES.lock().unwrap()) = Some(HashMap::new());