Non-retardedly slow sprite rendering
This commit is contained in:
@@ -83,6 +83,10 @@ public:
|
||||
{
|
||||
job.CalculateHash();
|
||||
m_Jobs.push_front(std::shared_ptr<T>(new T(job)));
|
||||
}
|
||||
|
||||
void Sort()
|
||||
{
|
||||
m_Jobs.sort();
|
||||
}
|
||||
|
||||
@@ -115,6 +119,12 @@ struct RenderQueuePair
|
||||
Deferred.Clear();
|
||||
Forward.Clear();
|
||||
}
|
||||
|
||||
void Sort()
|
||||
{
|
||||
Deferred.Sort();
|
||||
Forward.Sort();
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RenderQueue_h__
|
||||
|
||||
Reference in New Issue
Block a user