summaryrefslogtreecommitdiff
path: root/src/rmd_initialize_data.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-11-11 23:44:15 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-11-12 23:14:05 -0800
commitc265f13978fbd68f295d99b2fe4720fe4866d64c (patch)
treea08822aa66dd16bb3ef79d7e46706386db02ddcc /src/rmd_initialize_data.c
parent7281dc6fdc4f345c9c1c7bcda20e3bef3003c140 (diff)
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.
Diffstat (limited to 'src/rmd_initialize_data.c')
-rw-r--r--src/rmd_initialize_data.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rmd_initialize_data.c b/src/rmd_initialize_data.c
index 19a91ee..6e1a294 100644
--- a/src/rmd_initialize_data.c
+++ b/src/rmd_initialize_data.c
@@ -101,7 +101,6 @@ int rmdInitializeData(ProgData *pdata, EncData *enc_data, CacheData *cache_data)
pdata->aborted = FALSE;
pdata->pause_state_changed = FALSE;
pdata->capture_frameno = 0;
- pdata->time_frameno = 0;
if (!pdata->args.nosound) {
if (!pdata->args.use_jack) {
© All Rights Reserved