fixup - Improve invalidated region checks for performance
This commit is contained in:
@@ -1280,16 +1280,19 @@ namespace rsx
|
||||
{
|
||||
if (!in_begin_end)
|
||||
{
|
||||
reader_lock lock(m_mtx_task);
|
||||
if (!m_invalidated_memory_ranges.empty())
|
||||
{
|
||||
writer_lock lock(m_mtx_task);
|
||||
|
||||
for (const auto& range : m_invalidated_memory_ranges)
|
||||
{
|
||||
on_invalidate_memory_range(range.first, range.second);
|
||||
}
|
||||
|
||||
lock.upgrade();
|
||||
m_invalidated_memory_ranges.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//std::future<void> thread::add_internal_task(std::function<bool()> callback)
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user