rsx: Improve balancing of the offloader thread

- Use two counters to avoid atomic operations
- Yield instead of sleeping because some games are very sensitive to timing
This commit is contained in:
kd-11 2019-06-19 22:01:48 +03:00 committed by kd-11
parent 8249d51aa8
commit 4ff77a8555
4 changed files with 29 additions and 13 deletions

View file

@ -2241,6 +2241,9 @@ namespace rsx
// Fragment constants may have been updated
m_graphics_state |= rsx::pipeline_state::fragment_constants_dirty;
// DMA sync; if you need this, don't use MTRSX
// g_dma_manager.sync();
//TODO: On sync every sub-unit should finish any pending tasks
//Might cause zcull lockup due to zombie 'unclaimed reports' which are not forcefully removed currently
//verify (HERE), async_tasks_pending.load() == 0;