move cache saving to renderprocessor

In my testing, this doesn't seem to help performance whatsoever, but at least the code is cleaner.
This commit is contained in:
itsmattkc
2022-05-16 17:02:18 -07:00
parent 9ba3f24f3b
commit 5539440e7f
6 changed files with 18 additions and 91 deletions
+4 -4
View File
@@ -241,12 +241,12 @@ bool RenderTask::Render(ColorManager* manager,
bool RenderTask::DownloadFrame(QThread *thread, FramePtr frame, const rational &time)
{
RenderTicketWatcher* watcher = new RenderTicketWatcher();
PrepareWatcher(watcher, thread);
//RenderTicketWatcher* watcher = new RenderTicketWatcher();
//PrepareWatcher(watcher, thread);
IncrementRunningTickets();
//IncrementRunningTickets();
watcher->SetTicket(RenderManager::instance()->SaveFrameToCache(viewer_->video_frame_cache(), frame, time));
//watcher->SetTicket(RenderManager::instance()->SaveFrameToCache(viewer_->video_frame_cache(), frame, time));
// NOTE: Doesn't reflect the actual return result of SaveFrameToCache
return true;