Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vertical sync issues #87

Merged
merged 5 commits into from
Aug 27, 2018
Merged

Fix vertical sync issues #87

merged 5 commits into from
Aug 27, 2018

Conversation

elishacloud
Copy link
Contributor

@elishacloud elishacloud commented Aug 25, 2018

This pull request will fix #85. It might also be a fix for #47, but I don't have a G-Sync monitor so I cannot test is.

The issue is that the default presentation interval is D3DPRESENT_INTERVAL_DEFAULT in both d3d8 and d3d9. However in d3d9 when using this interval it does not do vertical sync. Changing this to D3DPRESENT_INTERVAL_ONE fixes the issue. See what Microsoft says about this here:

Added D3DPRESENT_INTERVAL_IMMEDIATE, which means that the presentation is not synchronized with the vertical sync. As in DirectX 8.x, D3DPRESENT_INTERVAL_DEFAULT is defined as zero and is equivalent to D3DPRESENT_INTERVAL_ONE.

Note: I think this is a bug in Windows 10 since D3DPRESENT_INTERVAL_DEFAULT and D3DPRESENT_INTERVAL_ONE are supposed to be the same even in d3d9. However apparently they are not. Manually changing this fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen tearing on Windows 10
2 participants