added some more temporary debug info

This commit is contained in:
itsmattkc
2019-09-10 14:03:19 +10:00
parent c26eee7df4
commit 601864c51d
4 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ QVariant TransformDistort::Value(NodeOutput *output, const rational &time)
QMatrix4x4 mat;
// Position translate
QVector2D pos = position_input_->get_value(time).value<QVector2D>() * 0.01f;
QVector2D pos = position_input_->get_value(time).value<QVector2D>();
mat.translate(pos);
// Rotation
@@ -96,7 +96,7 @@ QVariant TransformDistort::Value(NodeOutput *output, const rational &time)
mat.scale(scale_input_->get_value(time).value<QVector2D>()*0.01f);
// Anchor Point
mat.translate(anchor_input_->get_value(time).value<QVector2D>() * 0.01f);
mat.translate(anchor_input_->get_value(time).value<QVector2D>());
return mat;
}
+2 -2
View File
@@ -139,10 +139,10 @@ 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() << "[RendererProcessor] Cache invalidated between"
<< start_range_adj.toDouble()
<< "and"
<< end_range_adj.toDouble();*/
<< end_range_adj.toDouble();
// Snap start_range to timebase
double start_range_dbl = start_range_adj.toDouble();
@@ -79,6 +79,8 @@ void RendererProcessThread::ProcessLoop()
// Main waiting condition
wait_cond_.wait(&mutex_);
qDebug() << this << "woke for a queued frame";
if (cancelled_) {
break;
}
@@ -109,6 +111,8 @@ void RendererProcessThread::ProcessLoop()
bool has_hash = parent_->HasHash(hash_);
bool can_cache = false;
qDebug() << this << "starting background cache of frame" << path_.time().toDouble();
if (!has_hash){
if ((can_cache = parent_->TryCache(hash_))) {
@@ -123,10 +127,17 @@ void RendererProcessThread::ProcessLoop()
}
// Get the requested value
qDebug() << this << "starting cache of" << hash_.toHex();
texture_ = output_to_process->get_value(path_.time()).value<RenderTexturePtr>();
render_instance()->context()->functions()->glFinish();
qDebug() << this << "completed cache of" << hash_.toHex();
} else {
qDebug() << this << "hash is in use";
}
} else {
qDebug() << this << "hash" << hash_.toHex() << "exists";
}
foreach (Node* dep, all_deps) {
@@ -54,9 +54,13 @@ 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();