-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/engine
#32773Closed
Copy link
Labels
c: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
SyncSwitch will be used for both frame rasterization on the Raster thread and texture upload on the IO thread.
But SyncSwitch uses std::mutex internally, which means only one thread can access it at a time. This poses a potential risk to the performance of raster threads.
It looks like we can fix this issue by replacing the mutex in SyncSwitch with a read-write lock.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
