Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a0006c9

Browse files
committed
Remove outdated comment
1 parent 87116be commit a0006c9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

shell/platform/darwin/ios/framework/Source/FlutterMetalLayer.mm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)