This commit is contained in:
parent
98dd3da915
commit
000907087c
|
|
@ -449,7 +449,9 @@ namespace JianGongYun.TRTC
|
||||||
vw.Write(temp);
|
vw.Write(temp);
|
||||||
temp.Dispose();
|
temp.Dispose();
|
||||||
stopwatch.Stop();
|
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时间
|
var sleep = delay - (int)stopwatch.ElapsedMilliseconds;//每帧时间减去每帧处理时间为sleep时间
|
||||||
if (sleep < 0)//如果处理时间超过了每帧时间,记录下来
|
if (sleep < 0)//如果处理时间超过了每帧时间,记录下来
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace JianGongYun.TRTC.Windows
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
NoticeManager.Initialize();
|
NoticeManager.Initialize();
|
||||||
//AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出
|
AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出
|
||||||
LiveWindowViewModel = new ViewModels.LiveWindowViewModel();
|
LiveWindowViewModel = new ViewModels.LiveWindowViewModel();
|
||||||
SettingWindowViewModel = ViewModels.SettingWindowViewModel.GetInstance();
|
SettingWindowViewModel = ViewModels.SettingWindowViewModel.GetInstance();
|
||||||
this.DataContext = LiveWindowViewModel;
|
this.DataContext = LiveWindowViewModel;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue