mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
only use threaded rendering for animation frames
when not in an animation the latency reduction doesnt really matter and we save some thread overhead this way
This commit is contained in:
parent
2673c6349c
commit
0d0f41341e
1 changed files with 0 additions and 2 deletions
|
@ -10,8 +10,6 @@ static pthread_t g_render_threads[MAX_RENDER_THREADS];
|
|||
static uint32_t g_used_threads = 0;
|
||||
|
||||
void join_render_threads() {
|
||||
static int count = 0;
|
||||
printf("%d Threaded!\n", count++);
|
||||
for (int i = 0; i < g_used_threads; i++)
|
||||
pthread_join(g_render_threads[i], NULL);
|
||||
g_used_threads = 0;
|
||||
|
|
Loading…
Reference in a new issue