From eb88e47020201deef27adb81da22b91579c9405c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 17 Sep 2013 13:57:56 +0100 Subject: non blocking graph load --- rotord/src/rendercontext.cpp | 70 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 4 deletions(-) (limited to 'rotord/src/rendercontext.cpp') diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp index 62c60c0..d516cbd 100644 --- a/rotord/src/rendercontext.cpp +++ b/rotord/src/rendercontext.cpp @@ -48,6 +48,20 @@ void Render_context::runTask() { renders[cmd.uid].status=FAILED; } } + if(cmd.task==LOAD_GRAPH) { + state=LOADING_GRAPH; + if (graph_filename!="") { + if (!graph.loadFile(graph_filename,media_dir)){ + cerr<<"Rotor: failed to load graph from "<