If I click the button object quickly, CPU usage becomes very high!

Description

If I don’t do anything, CPU usage is only 0.2%-0.5%
If I click the button object quickly, CPU usage goes up tp 20%-30%

What MCU/Processor/Board and compiler are you using?

HISI 3531D

Code to reproduce

Official button example

What happens when you stop clicking the button? It’s normal for CPU usage to be higher while you’re interacting with the UI, but it should go to nearly zero when the UI is idle.

Yes, I run the button example just now, only one button on the screen, and don’t deal with any event.
CPU usage goes up to 25% when I click the button quickly, goes back to 0 if I don’t click it.
I think CPU usage is too high

I’m pretty sure this is normal behavior. As long as the UI isn’t lagging I don’t think there’s any issue here. The CPU will idle normally as soon as the screen stops being touched.

Thank you, I only just want to make sure this is normal behavior.