improved renderer reliability
The renderer backend can now distinguish between jobs. Previously if two jobs of the same frame were started (which is legal if the user made a change while frames were still being rendered), an earlier job in some situations could finish AFTER a later job, and the backend would have no way of distinguishing between them. This meant a frame could be erroneously set to an old value rather than the newest. This commit introduces job identification so that old jobs are automatically discarded.
This commit is contained in:
@@ -39,13 +39,10 @@ public:
|
||||
|
||||
void Truncate(const rational& time);
|
||||
|
||||
QList<rational> DeferredMapsWithHash(const QByteArray& hash);
|
||||
|
||||
private:
|
||||
void RemoveHashFromCurrentlyCaching(const QByteArray& hash);
|
||||
|
||||
QMap<rational, QByteArray> time_hash_map_;
|
||||
QMap<rational, QByteArray> deferred_maps_;
|
||||
|
||||
QMutex currently_caching_lock_;
|
||||
QVector<QByteArray> currently_caching_list_;
|
||||
|
||||
Reference in New Issue
Block a user