From c265f13978fbd68f295d99b2fe4720fe4866d64c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Nov 2020 23:44:15 -0800 Subject: timer: remove unnecessary timer thread This removes the timer thread entirely in favor of a coordinated delay loop directly within rmdGetFrame. When there's an audio stream to synchronize with, avd is maintained by the pcm buffer updates, and the fps-derived frametimes synchronize with the audio that way. When there's no audio stream (--no-sound), avd is now maintained synthetically via clock_gettime(CLOCK_MONOTONIC) coordinating with the clock instead. There's been some reworking of frame sampling/reusing and cloning logic, which may need some refinement. But for now the tests seem to show promise. The old timer approach just increased the non-determinism by adding more scheduler latency and influence unnecessarily. --- src/Makefile.am | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index ba429cb..78b8d7e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -61,8 +61,6 @@ recordmydesktop_SOURCES = \ rmd_specsfile.h \ rmd_threads.c \ rmd_threads.h \ - rmd_timer.c \ - rmd_timer.h \ rmd_types.h \ rmd_update_image.c \ rmd_update_image.h \ -- cgit v1.2.3