Skip to content

Severe rendering degradation (LVGL v8) #653

@JontyLi0312

Description

@JontyLi0312

Summary
Severe rendering degradation (LVGL v8) after migrating from Keil AC6 to ATfE

To Reproduce

  1. Prepare a project running the official LVGL v8 music demo.
  2. Baseline Test: Compile and flash the project using Keil MDK with the AC6 compiler.
    Observe smooth performance.
  3. Issue Test: Migrate the build system to CMake and compile the same LVGL source code using the ATfE toolchain linked with picolibc.
  4. Flash and run on the target hardware.
  5. Compare the FPS and CPU load.

Expected behavior

  1. FPS: Approximately 33 ~ 55 FPS.
  2. CPU Usage: Approximately 3% ~ 60%.
  3. Display: Smooth rendering with no visual artifacts.

Actual behavior

  1. FPS: Dropped to 5 ~ 12 FPS.
  2. CPU Usage: Increased to 87% ~ 92%.
  3. Display: Visible screen flickering and tearing.

Environment

  1. ATfE 21.1.1
  2. windows 11 pro for workstation 25H2 x86

[Additional context]

  1. The project source code logic remains unchanged between the two builds; the primary variables are the compiler and the C library.
  2. I suspect the issue might be related to specific compiler optimizations in ATfE or the integration efficiency of picolibc with LVGL's rendering loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions