added avg ms per frame