WaitForRenderThread wastes 2ms of Performance

In the testing place for our game (Starlit Isles), we’ve noticed that WaitForRenderThread wastes about 2ms of Performance.

Game Link: Starlit Isles Testing Place - Roblox

Attached is the Microprofiler Dump as well as a Screenshot.


microprofile-20240530-233408.html (4.8 MB)

5 Likes

WaitForRenderThread seems like a misleading name, because it actually perfectly lines up with the Prepare tag of the Main/Render thread, which isn’t the actual render thread, so it doesn’t seem like 2ms are being “wasted” here.

Main/Render:

GPU (the actual thread used for rendering, it runs in parallel to everything else so it should never line up):

2 Likes

Thanks for the report! I filed a ticket in our internal database and we’ll follow up when we have an update for you.

4 Likes

Also experiencing this issue at [V3.9.3 Patch] T ang County, Hebei - Roblox

2 Likes

Hello, this is as designed exactly as @Judgy_Oreo describes it. The thread must wait for the render thread to complete its step before progressing.

I would add that if you are seeing an excessively long period here then you may be doing something pathological with regards to updating avatars, as we’ve seen this could be the case in other experiences.

1 Like

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