Skip to content

Dynamically switch between pick culling and pick caching

Daniel van Vugt requested to merge vanvugt/mutter:fix-1554-v2 into master

To get the best of both worlds.

Performance stats (rounded down):

Action Hits 🏎 Misses 🚲 Culling 🚗
Moving the cursor over the desktop 100% 0% 0%
Dragging a window 0% 0% 100%
Moving the cursor over a Terminal 83% 6% 9%
Moving the cursor over an idle window 100% 0% 0%
Dragging a scrollbar in a window 0% 0% 100%
Moving the cursor over the icon grid 13% 5% 80%
Dragging the icon grid 0% 0% 100%

Key:

  • Hits: Cache was reused. This is the fastest path.
  • Misses: Cache was rebuilt. This is the slowest path.
  • Culling: Caching was disabled and culling used instead. This is faster than a cache miss but slower than a cache hit.

Merge request reports