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
Dear imgui renders in low resolution on a hdpi / retina display #1562
Comments
Same issue on Windows (I have a 2560x1600 pixels screen resolution), switching to full screen makes it even more noticeable as the font does not render well in high DPI. And it looks like Imgui ignores the console font and console font size settings as well. |
You can now separately set the ImGui font and font size. Is the rendering also better now? |
OK, so are you saying that the font setting only works in windowed mode? Or do you mean the anti-aliasing only works in windowed mode? |
The anti-aliasing seems to only work in windowed mode. Another issue I didn't mention earlier is that the mouse cursor will just vanish in fullscreen mode but reappear and stay available when in windowed mode.
|
It's a bit of a tricky combination. In fullscreen, you don't want to see the host cursor. But on the other hand, you need that cursor to control the menu. So, at full screen, the cursor will appear when it (invisibly) reaches the menu bar at the top. Just move up blindly and the menu will activate and the cursor will be shown. If you have a suggestion on how to improve things, please put it under a new issue. It's not related to hdpi displays. |
Coming back to fullscreen: I think at fullscreen, the image is just scaled up by hardware. There's no more detailed rendering, the application 'window' is the same size. That may explain what you see in full screen, i.e. the image not being as sharp as in windowed mode. |
I'd like to report a minor issue. The Dear imgui UI does not render in high definition on retina displays. The fonts look significantly more "jaggy" than in other applications. Given that the font is tiny by design, it is quite hard to read. The old interface, using Qt, handled the hdpi resolution well.
I noticed that the info.plist already contains the
tag. I saw an open issue on the dear imgui repo. It looks like some people found a solution, but the topic is not closed yet. I guess it is not easy to solve.
ocornut/imgui#3757
system:
os: macOS 14
cpu: Apple Silicon M2
Figure 1: On the left: Standard macOS app in hdpi. On the right: Part of imgui interface, rendered in low resolution.
The text was updated successfully, but these errors were encountered: