Commit efc3add
[MAPS3D-1719] Fix occlusion queries (#5486)
Address Adreno issues, which are seen as constant OpenGL error spamming when occlusion query count goes beyond a certain limit.
* limit number of OpenGL query objects
* introduce a delay between query finish and results retrieval
* issue occlusion queries via priority queue
* remove occlusion query from queue to prevent stall queries
* priorities work in a fifo order
* use plf_list as container, same guarantees as `std::list` but less allocations
* Modify occlusion fade: use constant acceleration fade to reduce flickering
GitOrigin-RevId: dc592f2823056b2a6aed7b7c9c7c3b5a6cffb9521 parent bd25609 commit efc3add
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
1764 | 1791 | | |
1765 | 1792 | | |
1766 | 1793 | | |
| |||
0 commit comments