This commit is contained in:
lxmou666 2021-01-05 21:58:29 +08:00
parent 98dd3da915
commit 000907087c
2 changed files with 4 additions and 2 deletions

View File

@ -449,7 +449,9 @@ namespace JianGongYun.TRTC
vw.Write(temp);
temp.Dispose();
stopwatch.Stop();
Debug.Print($"video frame run {stopwatch.ElapsedMilliseconds}");
var aa = $"video frame run {stopwatch.ElapsedMilliseconds}";
Debug.Print(aa);
Console.WriteLine(aa);
var sleep = delay - (int)stopwatch.ElapsedMilliseconds;//每帧时间减去每帧处理时间为sleep时间
if (sleep < 0)//如果处理时间超过了每帧时间,记录下来
{

View File

@ -33,7 +33,7 @@ namespace JianGongYun.TRTC.Windows
{
InitializeComponent();
NoticeManager.Initialize();
//AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出
AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出
LiveWindowViewModel = new ViewModels.LiveWindowViewModel();
SettingWindowViewModel = ViewModels.SettingWindowViewModel.GetInstance();
this.DataContext = LiveWindowViewModel;