fixed: no need to lock if only checking for a closed socket
added: reduce output timing jitter by setting the display thread to SCHED_FIFO, and by passing the timestamps through a low pass filter