What is the "delayed thread" in Script Profiler


What causes these “delayed thread”?

3 Likes

delayedThreads is a phase in a frame where anything delayed is resumed, like threads involving task.wait() or task.delay(). Similarly, defered parts would be resumed in the deferedThreads phase. All of this happens during Heartbeat.

A single script usually handles more than one coroutine (e.g. Heartbeat callback, a while loop, a remote event callback, a Touched callback) and those are resumed at multiple points in a frame.

Even in an empty baseplate, CoreScripts produce lots of those threads, topbar, chat, main menu, and so on.

2 Likes

These delayed threads can cause some lag ?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.