Repository: flutter
Issue: Regular spikes in frame rendering time using LeafRenderObjectWidget, RenderBox and a Ticker.
Labels: framework,c: performance,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-framework,triaged-framework

## Details
Regular spikes in frame rendering time during continuous rendering using LeafRenderObjectWidget, RenderBox and a Ticker. The spikes happen even if nothing is actually drawn on the canvas.

The spike visible in the profiler:
![3](https://user-images.githubusercontent.com/4655592/209179715-040a9650-e6e3-4d35-a2e4-c16a9b3f813f.png)

Exported timeline:
[3.zip](https://github.com/flutter/flutter/files/10288609/3.zip)

Simplified example main.dart:
https://gist.github.com/vendik/f9a257d64769348d7a023330802347cd

Simplified example project: 
[test_game.zip](https://github.com/flutter/flutter/files/10288591/test_game.zip)




<!--
1.  Please tell us exactly how to reproduce the problem you are running into.

2.  Please attach a small application (ideally just one main.dart file) that
     reproduces the problem. You could use https://gist.github.com/ for this.

3.  Switch flutter to master channel and run this app on a physical device
     using profile mode with Skia tracing enabled, as follows:
       flutter channel master
       flutter run --profile --trace-skia

     The bleeding edge master channel is encouraged here because Flutter is
     constantly fixing bugs and improving its performance. Your problem in an
     older Flutter version may have already been solved in the master channel.

4.  Record a video of the performance issue using another phone so we
     can have an intuitive understanding of what happened. Don’t use
     "adb screenrecord", as that affects the performance of the profile run.

5.  Open Observatory and save a timeline trace of the performance issue
     so we know which functions might be causing it. See "How to Collect
     and Read Timeline Traces" on this blog post:
       https://medium.com/flutter/profiling-flutter-applications-using-the-timeline-a1a434964af3#a499
     Make sure the performance overlay is turned OFF when recording the
     trace as that may affect the performance of the profile run.
     (Pressing ‘P’ on the command line toggles the overlay.)
-->

<!--
     Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
     Which target OS version, for Web, browser, is the test system running?
     Does the problem occur on emulator/simulator as well as on physical devices?
-->

**Target Platform:** Android
**Target OS version/browser:** Android 11 (also happens on Android 12)
**Devices:** OnePlus 6 (also happens on Samsung S21)

## Logs

<details>
<summary>Logs</summary>

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
No issues found! (ran in 1.6s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here, with your device plugged in. -->

```
[âˆš] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 6.3.9600], locale en-GB)
    â€¢ Flutter version 3.3.8 on channel stable at C:\Users\Admin\flutter
    â€¢ Upstream repository https://github.com/flutter/flutter.git
    â€¢ Framework revision 52b3dc25f6 (6 weeks ago), 2022-11-09 12:09:26 +0800
    â€¢ Engine revision 857bd6b74c
    â€¢ Dart version 2.18.4
    â€¢ DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\Admin\AppData\Local\Android\sdk
    • Platform android-31, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] IntelliJ IDEA Community Edition (version 2019.2)
    • IntelliJ at C:\Users\Admin\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2019.2.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (3 available)
    • ONEPLUS A6003 (mobile) • 7d061cf2 • android-arm64  • Android 11 (API 30)
    • Windows (desktop)      • windows  • windows-x64    • Microsoft Windows [Version 6.3.9600]
    • Chrome (web)           • chrome   • web-javascript • Google Chrome 108.0.5359.125

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

```

</details>