Long stall before present when adding shadow pass #78
Unanswered
DGriffin91
asked this question in
Q&A
Replies: 1 comment 10 replies
-
There are some improvements to swapchain synchronization in #75 (see src/driver/swapchain.rs). That branch changes Try adding lots of
You've probably already found those though. I'll see if I can learn anything from these screenshots over the next few days. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a renderer that does
shadow pass
>main pass
>blit to swapchain
>present
.All the passes use the same graph, and the main pass depends on the depth texture output of the shadow pass.
When I add the shadow pass I end up stalled at "wait for presentation" (assuming waiting on fences) for around 1ms. It seems like during this time both the CPU and GPU are fairly idle. This is with vsync disabled. Total cpu frame time without the shadow pass is around 1.8ms vs 3ms with it (when measuring without nsight/tracy).
If I remove the shadow pass, the stall seems to completely go away.
Any thoughts on what to look at or try to see what could be causing the stall?
Here's tracy:
And nsight
nsight just shows this barrier
and then the next thing is present
Beta Was this translation helpful? Give feedback.
All reactions