@@ -46,7 +46,7 @@ public void Initialize()
46
46
LogLevel = LogLevel . Debug ,
47
47
LogOutput = ":debug" ,
48
48
#endif
49
- UIRefresh = false ,
49
+ UIRefresh = true ,
50
50
UICurTimePerSecond = true ,
51
51
} ;
52
52
Engine . Start ( engineConfig ) ;
@@ -57,15 +57,15 @@ public void Initialize()
57
57
var config = new Config ( ) ;
58
58
config . Subtitles . Enabled = true ;
59
59
config . Player . SeekAccurate = true ;
60
- config . Decoder . ZeroCopy = ZeroCopy . Auto ;
61
60
config . Video . VideoProcessor = SettingsToolkit . ReadLocalSetting ( SettingNames . VideoProcessor , VideoProcessors . D3D11 ) ;
62
61
config . Video . VideoAcceleration = SettingsToolkit . ReadLocalSetting ( SettingNames . VideoAcceleration , true ) ;
63
62
config . Video . SwsForce = SettingsToolkit . ReadLocalSetting ( SettingNames . DecodeType , DecodeType . HardwareDecode ) == DecodeType . SoftwareDecode ;
64
63
config . Video . SwsHighQuality = true ;
65
- config . Video . VSync = 1 ;
64
+ config . Video . VSync = 0 ;
66
65
config . Video . ClearScreenOnOpen = true ;
67
66
config . Video . Swap10Bit = true ;
68
- config . Player . MinBufferDuration = TimeSpan . FromSeconds ( 5 ) . Ticks ;
67
+ config . Player . MinBufferDuration = TimeSpan . FromSeconds ( 10 ) . Ticks ;
68
+ config . Decoder . LowDelay = true ;
69
69
70
70
var player = new Player ( config ) ;
71
71
player . PropertyChanged += OnPlayerPropertyChanged ;
@@ -150,7 +150,7 @@ public void Play()
150
150
public void SeekTo ( TimeSpan time )
151
151
{
152
152
if ( time . TotalMilliseconds >= Duration . TotalMilliseconds
153
- || Math . Abs ( time . TotalSeconds - Position . TotalSeconds ) < 1 )
153
+ || Math . Abs ( time . TotalSeconds - Position . TotalSeconds ) < 2 )
154
154
{
155
155
return ;
156
156
}
0 commit comments