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
Option to upscale game by nearest neighbour #7629
Comments
Technically speaking, I think this could be "annoying" to do, and would probably have to be implemented in the video driver rather than anywhere else. In other words, it would be a per-platform feature not necessarily available or working the exact same way on Windows, Mac, Linux. There could also be some technical challenges with getting the mouse to behave right. (What should the mouse cursor size even be, scaled along or unscaled? Should it be able to move and be positioned at "half pixels"?) |
One game engine I use just does it with a frag shader (opengl). You can
specify a "game size" and this can then be scaled to the window/screen size
with the shader, cross platform.
As for mouse behaviour, I'd say if this scalling method is being used then
keep the native sensitivity.
…On Thu, 27 Jun 2019, 08:21 Niels Martin Hansen, ***@***.***> wrote:
Technically speaking, I think this could be "annoying" to do, and would
probably have to be implemented in the video driver rather than anywhere
else. In other words, it would be a per-platform feature not necessarily
available or working the exact same way on Windows, Mac, Linux.
There could also be some technical challenges with getting the mouse to
behave right. (What should the mouse cursor size even be, scaled along or
unscaled? Should it be able to move and be positioned at "half pixels"?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7629?email_source=notifications&email_token=AATMJPBQRSQV2P56XCJ6NXLP4RS6ZA5CNFSM4H3Y4NR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWGFUA#issuecomment-506225360>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATMJPGS2BJCAE4IL64IHB3P4RS6ZANCNFSM4H3Y4NRQ>
.
|
Sure, but we don't use OpenGL, nor DirectX :-) |
Of course, we should replace the multiple drivers with a single cross-platform accelerated driver... but nobody's done that yet. |
Proof of concept implementation for OpenTTD#7629
There's https://github.com/michicc/OpenTTD/tree/opengl, but it's Windows only for now. |
@PeterN Doesn't SDL already fit that description? It is cross-platform and allows you to create contexts for OpenGL, Vulkan, etc. @michicc It seems like the windows specific part is the initialisation. |
Proof of concept implementation for OpenTTD#7629
Proof of concept implementation for OpenTTD#7629
Thanks for this. There's been no activity on this for some time, and as it stands, it doesn't look likely that it will go any further. I'm closing it as we try to keep the issue count low for OpenTTD, it helps us focus on things that are important and fun. Feel free to discuss in irc or request re-opening if you disagree. Thanks for contributing! |
Presently if you set the game resolution to half the screen resolution, for example, the upscaling is very blurry when it doesn't need to be.
I'm not a fan of the increased UI size and wish to play on a 1440p monitor, so I would rather set the game size to half and just upscale everything. A nearest neighbour scaling method would be far preferable and prevent the blur that currently occurs.
The text was updated successfully, but these errors were encountered: