Skip to content

glthread: determine global locking once every 64 batches to fix get_time perf

Marek Olšák requested to merge mareko/mesa:fix-glthread-gettime-perf into main

What does this MR do and why?

glthread: determine global locking once every 64 batches to fix get_time perf

This mitigates a large perf degradation when the clock source is HPET instead of TSC. Just call get_time less frequently.

Fixes: 3ed141e9 - glthread: add a heuristic to stop locking global mutexes with multiple contexts Closes: #8910 (closed)

Merge request reports

Loading