-
Notifications
You must be signed in to change notification settings - Fork 90
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
HiDPI scaling #301
Comments
Short overview on existing solutions:
Option 1Quite bad for coding, since Option 2Has issues as well: |
Maybe for starters we could just change the resolution? We don't really need to run gothic at 4k |
For MacOS I just used scale factor, but it is rather dirty hack until we can change resolution. /lib/Tempest/Engine/system/api/macosapi.mm void Detail::ImplMacOSApi::onDidResize(void* hwnd, void* w) {
auto cb = reinterpret_cast<Tempest::Window*>(hwnd);
NSWindow* wnd = reinterpret_cast<NSWindow*>(w);
NSRect fr = windowRect(wnd);
fr = [wnd convertRectToBacking:fr];
double scaleFactor = [wnd backingScaleFactor];
SizeEvent sz{int32_t(fr.size.width/scaleFactor),int32_t(fr.size.height/scaleFactor)};
MacOSApi::dispatchResize(*cb,sz);
} |
Is there any way to scale dialogs for a starter? Any settings for that? |
We are missing
Except auto-scaling here is questionable - dpi based sceling, seems to be way better option. |
@Try maybe I can set resolution to 1360×768 or something? I really don't need a high res gothic 2. When I try to change resolution in settings, it changes something, but making the game kinda blurry, not squary. |
it changes only rendering resolution for 3D and upscales it a bit during tonemapping phase. |
Just my 2 cents here. If you choose 1024x768 as base, why don't you just let it auto scale from that with DPI in mind? https://www.reddit.com/r/vulkan/comments/8jlgt2/surface_capabilities_and_dpi_scaling/ so it would be possible to get a DPI value to include in your calculation. For crazy ppl you could even add Scale=2 for manual factor setting and another value for your favorite factor. Everyone would be happy by that. Maybe I am not gaming enough anymore, but I barely ever heard of a game that decided to follow the DPI factor Windows is set to. |
@lectricas as a temporary workaround I can suggest switching your whole system to a lower res before starting the game; OpenGothic will reuse the current system resolution. |
@Nindaleth I've downlaoded EasyRes from app store to change resolution and set 1280x800 and run the game. Then I got the white screen. Turning resolution back to default reversed the problem. Have you done this procedure? Any steps how to make it work 100%? |
App Store? Is it not possible on macOS to change the system resolution from an official system dialog? |
Ok, guys, I gave it another try and put @wiktorskowronski fix and it works, although all the items are messed up: UPD:
together with a fix from @wiktorskowronski What we've done here is increased the position and size of the items by 2, because with @wiktorskowronski fix we scaled down everything.
|
It would be good if it possible to have a fractional scaling for texts/dialogs, menus and health/mana indicators on HiDPI screens.
The text was updated successfully, but these errors were encountered: