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 the resolution issues when create full screen app #20043
Conversation
glfw can register callback for resolution changing, i think it is more reasonable to do some operation there. |
|
@Mee-gu @minggo 1024x640: borders on left and right. cant move the mouse to screen ends either. 1280x800: works fine 1440x900: works fine After this it gets weird especially with the fps 1680x1050: works fine... i think the display also loses sharpness you can see some on fonts. 1920x1280: works fine Screenshots: https://www.dropbox.com/sh/4mqxarh3bjj1usx/AADjhHhDqflSqdKvW3fI18AEa?dl=0 |
@Bilalmirza As for the black borders on both left and right, I try lots of methods but change nothing. So I create an issue in glfw GitHub hoping for a good workaround. |
@Mee-gu any idea why fps is so much better in higher resolutions. probably because of retina being disabled in last 2 i think. |
@Bilalmirza How did you get the fps? |
@Mee-gu Appdelegate
|
I think this is the issue |
I have a terrible fix for the fps. It also links the resolution to Display resolution.
in CCGLViewImpl-desktop.cpp
this prevents the call on updateFrameSize() // which really messes up the resolution. now everything is fixed. The higher the display resolution in system preference the better the resolution in game. |
fix the resolution issues when creating a full-screen app.
the issue is discussed here