-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Editor window doesn't display properly #453
Comments
What is your desktop environment and display server? If it's wayland, try on the X11 and see how it goes. |
I made a quick fix (?), could you please check again on latest? (Use this guide to update the engine). |
What will happen if you try to resize the window manually, will this fix the bug? |
Do you have hi-dpi monitor or maybe you have system scaling more than 100%? I'm trying to collect as much info as possible to find the actual cause of the bug. |
That's it! I use a custom font dpi of 85, reverting to the default fixes the issue. With that said, I would rather not have to change my configuration just to run the editor. |
You can run the fyrox editor with an environmental setting:
|
This does not seem to work. While specifying the dpi with |
Thanks! Now I understand what I did wrong - I didn't take DPI scaling into account when creating/resizing GL surface. I'll try to fix this today. |
@naratna could you please re-check if the bug is fixed? |
Unfortunately, this does not fix the issue |
Could you please run the |
Where would I find that example? I couldn't find anything in the fyrox source or the website referring to that. I did find that my shiny, new project looks just fine when I execute it with the executor package, as well as the platformer example and fps example from the book. The problem seems to be limited to the editor application itself --- or maybe the UI code? (The RPG tutorial had an issue where the whole screen was blank, and changing the text scale factor had no effect.) The images below were all taken with a text scale factor of 0.8 (80%). |
I found a workaround that should help others out. Basically, I set the scale factor to 100% until the Fyrox editor loads, then immediately set it back to 80%, even while Fyrox is running. The editor doesn't glitch, even when I resize it / maximize it. I made a bash function to do this for me; and if you're using bash and Gnome Desktop, you can use this function directly. Others can probably adapt it to their window manager and shell.
Edit: I updated the script to keep cargo/fyrox running in the foreground, so you can shut it down with Ctrl+C. |
@jpaugh Hi, I did yet another potential fix for the editor. Could you please check if it works? I'm on Windows and it works fine here. |
Unfortunately, that didn't change the outcome. I tried by adding the nightly build to a fresh project (built with the released fyrox-template 0.10.0), and also tried running the standalone editor directly from the latest on main (811a134). I did some more analysis with the first run. The screenshot at the bottom is with text scaling set to 80%. I also recorded the editor's stdout. Didn't see anything notable there, but it's attached (run.log). FWIW, the window_size setting seems to be mostly correct in the settings.ron, although it's a few pixels smaller from the size of my screenshot. Probably comes down to window decoration (i.e. border and the title bar). BTW, I also had to fix a compile error in the project as generated. The |
Thanks so much for your support! I'm personally comfortable with the workaround I suggested, and I might be able to dig in a little more and debug things after I figure out how to build my own UI in Fyrox. 🤞 |
Probably was broken in the 811a134 commit for the FyroxEngine#453 issue, but issue still not fixed. The window_size field is used as the PhysicalSize in all other cases.
Probably was broken in the 811a134 commit for the FyroxEngine#453 issue, but issue still not fixed. The window_size field is used as the PhysicalSize in all other cases.
After initializing a new Fyrox project with
fyrox-template init --name fyrox_test --style 2d
and running the editor withcargo run --package editor --release
I encountered an issue where the editor window wouldn't display properly, with the window being cut off by black bars (See image below).I'm on Arch Linux. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: