-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vblank: better workaround for NVIDIA duplicate MSCs
We used to teardown the whole vblank thread and restart it every time we got a duplicate msc. This used to work OK, but newer NVIDIA drivers broke this. And to recap, simply wait for vblank again upon reception of duplicate MSCs _does not_ work either, and will just stuck us in an infinite loop. After some experimentation, I found that rendering a new frame gets us out of the infinite duplicate msc loop. So that's what we do now, i.e. inserting a synthetic vblank to trigger a new frame. Some care is taken to make sure synthetic vblanks' msc numbers don't conflict with real ones. Fixes #1265 Signed-off-by: Yuxuan Shui <[email protected]>
- Loading branch information
Showing
1 changed file
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters