add histogram frame averaging, lock renderengine during updates, fix ffmpeg btn booby