-
Notifications
You must be signed in to change notification settings - Fork 98
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
Incorrect Render Size on Macbook Pro M1 #63
Comments
Extra note: Particle effects aren't fixed with just this and move around 2x as quickly on the rasterized image when moving the camera. |
would it be a difficult process to enable rendering on Metal rather than openGL ES ? |
Not if I knew the required flag for premake :) |
I am able to fix the particles by changing this Lines 232 to 233 in 373f839
to
it's a messy hack (and again isn't portable) but this does reinforce my thoughts that this is DPI related. |
I've created a very rudimentary "getDPIScale" function in the device for OpenGL. |
When building another project of yours that uses librw on the Macbook Pro M1, the in-game rendered world is incorrectly sized. It is roughly twice the width and height vs the actual framebuffer. This is probably due to Retina.
I was able to fix it by changing the following
librw/src/gl/gl3device.cpp
Lines 1256 to 1257 in 373f839
to
and by changing
librw/src/gl/gl3device.cpp
Lines 1400 to 1401 in 373f839
to
I'm not knowledable enough in your engine or OpenGL to see why this happens, but if you are unable, or unwilling, I can try to investigate the root cause, if there is one.
The text was updated successfully, but these errors were encountered: