AGamePlayer
AGamePlayer

Reputation: 7734

How do I dig deeper in the Performance panel for a function call that consumes a long time but 90% of the time was just waiting?

I am trying to improve my INP. As I am checking the performance panel and notice there is a function takes a very long time to complete, while itself only consumes 0.41ms, and in the timeline chart, the function is doing nothing.

Why it takes so long just to wait? And why this period is not considered "idle"?

Can somebody explain? Thanks!

enter image description here

update:

May I know which one should I choose?

enter image description here

Upvotes: 0

Views: 74

Answers (0)

Related Questions