mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
See example app in https://github.com/flutter/flutter/issues/135458 Because tessellation is generally nlogn best case (with allocation complexity as well), we can actually make it faster by breaking it into smaller pieces. For non zero fill modes, the contours can be tessellated individually without losing fidelity. In cases where this isn't possible, we need to check if we exceed the max uint16 index and fall back to no index buffer. Fixes https://github.com/flutter/flutter/issues/135458 I Benchmarked signing my name. ### Before worst raster time 3+ seconds. Visual glitches  ### After worst raster time 30 ms, looks correct (though my signature is still wrong) 