| Summary: | OpenGL VSYNC not working when in fullscreen on external monitor. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | akakubiyaro |
| Component: | main | Assignee: | akakubiyaro |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | akakubiyaro |
| Version: | 2.0.7 | ||
| Hardware: | x86 | ||
| OS: | macOS 10.13 | ||
| Attachments: | I went ahead and attached the basic test program I created to showcase the issue. | ||
|
Description
akakubiyaro
2018-01-26 19:21:37 UTC
Created attachment 3157 [details]
I went ahead and attached the basic test program I created to showcase the issue.
If you compile this test program agains the latest SDL and run it on an external monitor, you should see screen tearing even tho vsync is on. At least that's what happens to me :(
PS. Just in case it's not clear from the code, you can use the WASD keys to scroll the screen around. Hit ESCAPE to quit. Ugh. I resolved this. I noticed that in the test program I attached I omited two lines from my original program: SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, ...); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, ...); I had passed in some bad values to these and apparently it results in weird inconsistent frame rate and screen tearing! Sorry for the faulty bug report. Ah, glad to hear it. Thanks for the update! |