multithreaded download and files that probably should have been in the last

commit

For testing the new iteration, the texture cache disk download was written
into the main thread instead of into the separate threads. Now they're back
in separate threads again.

Also I think some of these files probably should have been in the previous
commit.
This commit is contained in:
itsmattkc
2019-11-06 09:14:20 +11:00
parent 6de976c19f
commit 3b224c7638
16 changed files with 606 additions and 398 deletions
+9
View File
@@ -87,3 +87,12 @@ TimeRange ClipBlock::InputTimeAdjustment(NodeInput *input, const TimeRange &inpu
return Block::InputTimeAdjustment(input, input_time);
}
QVariant ClipBlock::Value(NodeOutput *output)
{
if (output == buffer_output()) {
// We just pass through the texture here, the renderer should have gotten the correct time from InputTimeAdjustment
return texture_input()->value();
}
return Block::Value(output);
}
+2
View File
@@ -46,6 +46,8 @@ public:
virtual TimeRange InputTimeAdjustment(NodeInput* input, const TimeRange& input_time) override;
virtual QVariant Value(NodeOutput* output) override;
private:
NodeInput* texture_input_;