added custom debug handler

This commit is contained in:
itsmattkc
2019-09-10 23:44:35 +10:00
parent 69ca2b2a50
commit 6dc62a8703
8 changed files with 50 additions and 6 deletions
+4
View File
@@ -59,6 +59,8 @@ void NodeOutput::set_data_type(const NodeParam::DataType &type)
QVariant NodeOutput::get_value(const rational& time)
{
mutex_.lock();
QVariant v;
if (time_ != time || !value_caching_) {
@@ -70,6 +72,8 @@ QVariant NodeOutput::get_value(const rational& time)
v = value_;
mutex_.unlock();
return v;
}
+2
View File
@@ -68,6 +68,8 @@ public:
private:
DataType data_type_;
QMutex mutex_;
};
#endif // NODEOUTPUT_H
+2 -2
View File
@@ -139,7 +139,7 @@ void RendererProcessor::InvalidateCache(const rational &start_range, const ratio
rational start_range_adj = qMax(rational(0), start_range);
rational end_range_adj = qMin(length_input()->get_value(0).value<rational>(), end_range);
qDebug() << "[RendererProcessor] Cache invalidated between"
qDebug() << "Cache invalidated between"
<< start_range_adj.toDouble()
<< "and"
<< end_range_adj.toDouble();
@@ -359,7 +359,7 @@ void RendererProcessor::CacheNext()
rational cache_frame = cache_queue_.takeFirst();
qDebug() << "[RendererProcessor] Caching" << cache_frame.toDouble();
qDebug() << "Caching" << cache_frame.toDouble();
threads_.first()->Queue(NodeDependency(texture_input_->get_connected_output(), cache_frame), true);
@@ -54,13 +54,9 @@ void RendererThreadBase::run()
instance.SetShareContext(share_ctx_);
qDebug() << this << "is starting its OpenGL context";
// Allocate and create resources
if (instance.Start()) {
qDebug() << this << "OpenGL context creation succeeded";
// Main loop (use Cancel() to exit it)
ProcessLoop();