This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -279,11 +279,6 @@ - (IOSurface*)createIOSurface {
279279
280280- (FlutterTexture*)nextTexture {
281281 @synchronized (self) {
282- // IOSurface.isInUse to determine when compositor is done with the surface.
283- // That a rather blunt instrument and we are probably waiting longer than
284- // we really need to. With triple buffering at 120Hz that results in about
285- // 2-3 milliseconds wait time at beginning of display link callback.
286- // With four buffers this number gets close to zero.
287282 if (_totalTextures < 3 ) {
288283 ++_totalTextures;
289284 IOSurface * surface = [self createIOSurface ];
@@ -304,7 +299,7 @@ - (FlutterTexture*)nextTexture {
304299 // Make sure raster thread doesn't have too many drawables in flight.
305300 if (_availableTextures.count == 0 ) {
306301 CFTimeInterval start = CACurrentMediaTime ();
307- while (_availableTextures.count == 0 && CACurrentMediaTime () - start < 0.1 ) {
302+ while (_availableTextures.count == 0 && CACurrentMediaTime () - start < 1.0 ) {
308303 usleep (100 );
309304 }
310305 CFTimeInterval elapsed = CACurrentMediaTime () - start;
You can’t perform that action at this time.
0 commit comments