]> git.sesse.net Git - nageru/commit
Rework the queue drop algorithm again.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 25 Jun 2017 14:41:47 +0000 (16:41 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 25 Jun 2017 15:42:49 +0000 (17:42 +0200)
commitafe163c940b7239cab0577fa390796175cdc94a6
tree1586a3ce3e87725f7ab66ed18648a80229de56d3
parent7c26af1581077cb63dc0bd76942f1f4262312f7f
Rework the queue drop algorithm again.

The old one worked fine for most cases, but when two cards drift
very slowly out of sync (and one of them is the master), it's inadequate;
we should simply drop one frame at the right moment and be done with it.
Of course, knowing what the right moment is can be tricky, due to jitter,
which we now explicitly model.

Also include a separate program that tests various properties of different
possible policies (used to determine which one to use), based on replaying
real event logs.
experiments/queue_drop_policy.cpp [new file with mode: 0644]
mixer.cpp
mixer.h