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:
@@ -16,12 +16,12 @@ public:
|
||||
void SetParameters(const VideoRenderingParams& video_params);
|
||||
|
||||
public slots:
|
||||
virtual void RenderAsSibling(NodeDependency dep) override;
|
||||
virtual QVariant RenderAsSibling(NodeDependency dep) override;
|
||||
|
||||
void Download(NodeDependency dep, QByteArray hash, QVariant texture, QString filename);
|
||||
|
||||
signals:
|
||||
void CompletedFrame(NodeDependency path, QByteArray hash);
|
||||
void CompletedFrame(NodeDependency path, QByteArray hash, QVariant value);
|
||||
|
||||
void CompletedDownload(NodeDependency path, QByteArray hash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user