render: further simplified job times
Outside of silly mistakes, this should be significantly faster and more stable.
This commit is contained in:
@@ -27,7 +27,6 @@ RenderTicket::RenderTicket() :
|
||||
has_result_(false),
|
||||
finish_count_(0)
|
||||
{
|
||||
SetJobTime();
|
||||
}
|
||||
|
||||
void RenderTicket::WaitForFinished(QMutex *mutex)
|
||||
|
||||
@@ -38,16 +38,6 @@ class RenderTicket : public QObject
|
||||
public:
|
||||
RenderTicket();
|
||||
|
||||
JobTime GetJobTime() const
|
||||
{
|
||||
return job_time_;
|
||||
}
|
||||
|
||||
void SetJobTime()
|
||||
{
|
||||
job_time_.Acquire();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the ticket's current state
|
||||
*
|
||||
@@ -137,8 +127,6 @@ private:
|
||||
|
||||
QWaitCondition wait_;
|
||||
|
||||
JobTime job_time_;
|
||||
|
||||
};
|
||||
|
||||
using RenderTicketPtr = std::shared_ptr<RenderTicket>;
|
||||
|
||||
Reference in New Issue
Block a user