fixes jitters by using signals/slots to pass image buffers around
Updating values rapidly would cause strange jitters as a byproduct of the viewer trying to update from the renderer while it was still working. Rather than the viewer trying to access the the renderer, we now send textures in the initial update signal to keep everything synchronized.
This commit is contained in:
@@ -12,7 +12,7 @@ void AudioRenderWorker::SetParameters(const AudioRenderingParams &audio_params)
|
||||
audio_params_ = audio_params;
|
||||
}
|
||||
|
||||
void AudioRenderWorker::RenderAsSibling(NodeDependency dep)
|
||||
QVariant AudioRenderWorker::RenderAsSibling(NodeDependency dep)
|
||||
{
|
||||
NodeOutput* output = dep.node();
|
||||
Node* node = output->parent();
|
||||
@@ -49,6 +49,8 @@ void AudioRenderWorker::RenderAsSibling(NodeDependency dep)
|
||||
|
||||
// End this working state
|
||||
working_--;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
bool AudioRenderWorker::InitInternal()
|
||||
|
||||
Reference in New Issue
Block a user