DirectX video recording and frames per second counter