Comments (19)
@Seegras Interesting, I will take a look at this when I have a chance.
from luxtorpeda.
@Seegras I believe I have this fixed, let me know if the build here fixes it: https://github.com/luxtorpeda-dev/luxtorpeda/actions/runs/1511819525
If not, please provide logs, as I added some traces for what it sets for the dpi scaling.
These changes will also be on the next public build.
window is on display_index: 0
found dpi: (143.66042, 143.43529, 144.37895)
using dpi scaling of 1.8705784
from luxtorpeda.
version 48 has been released as well.
from luxtorpeda.
looking good.
from luxtorpeda.
I tested luxtorpeda from git using the aur package and it seems too small (I have a big TV). Perhaps it is caused by using gnome scaling? (300%)
from luxtorpeda.
Could you try the latest official release in the github releases (https://github.com/luxtorpeda-dev/luxtorpeda/releases/tag/v52)? Just to make sure you're on the latest code.
If that does not change anything, please open steam in a terminal window and provide the output when running luxtorpeda with a game that provides choices. You're looking for something similar to this:
window is on display_index: 0
found dpi: (143.66042, 143.43529, 144.37895)
using dpi scaling of 1.8705784
The dpi scaling is calculated from the DPI found from sdl2, so it's possible that calculation may need to be changed.
from luxtorpeda.
I'm testing this with wetlands
creating: "/run/user/1000/luxtorpeda/1367160.pid"
luxtorpeda version: 52.0.0
steam_app_id: "1367160"
original command: ["/home/g/.local/share/Steam/steamapps/common/Wetlands/DOSBox/DOSBox.exe", "-conf", "dosbox_fs.conf", "-noconsole", "-exit"]
working dir: Ok("/home/g/.local/share/Steam/steamapps/common/Wetlands")
tool dir: "/usr/share/steam/compatibilitytools.d/luxtorpeda"
user_packages_file not found
game info using default
user_packages_file not found
game info using default
showing engine choices
8 joysticks available
Attempting to open controller 0
controller name is USB BFM GAMEPAD
Success: opened "USB BFM GAMEPAD"
Controller connected mapping: 03000000c31100000455000011010000,USB BFM GAMEPAD,a:b0,b:b1,x:b3,y:b4,back:b10,guide:b12,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,lefttrigger:a2,righttrigger:a3,platform:Linux
controller assumed to be xbox
window is on display_index: 0
found dpi: (68.661476, 288.0, 288.0)
using dpi scaling of 0.8940297
found dpi: (68.661476, 288.0, 288.0)
In case is useful, my current resolution from xrandr:
$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
HDMI-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 1420mm x 800mm
3840x2160 30.00 + 59.94* 50.00 29.97 25.00 23.98
from luxtorpeda.
That's interesting, normally the DPI tuple has had the three numbers at roughly the same value. It's the diagonal, horizontal, and then vertical DPI (https://wiki.libsdl.org/SDL_GetDisplayDPI).
Currently, it's using only the diagonal version in its calculation. I've made a possible fix that has it use the largest value instead. Could you try this build and see if it fixes it for you? As well, if you could provide the latest log information on this version.
from luxtorpeda.
@neuromancer
luxtorpeda.tar.xz.zip
Above is an updated build, had one more fix that should help with it.
from luxtorpeda.
I test this potential fix using the dpi-fix
branch and this is the result (still very small):
from luxtorpeda.
The dpi scaling number looks a lot better although it seems like the window itself is too small. The high dpi setting from sdl is enabled so there may need to be another change to scale the resolution of the window itself. I'll take another look and let you know.
from luxtorpeda.
Can you try the following build out? It tries to scale the width and height of the window itself based on the DPI given.
luxtorpeda.tar.xz.zip
from luxtorpeda.
It looks a little better: the window is larger, but the font is tiny (which is the main issue here)
from luxtorpeda.
I tried something in addition, which also scales the dpi scaling based on the new window width, it should cause the dpi scaling value to be 9, which should make the text bigger. Let me know how that goes, thanks. If that does not improve it, let me know what the logs say.
from luxtorpeda.
It works!
Btw, I cannot move the window for some reason. I will try to reproduce this with master, because it is annoying, but the GUI is now large enough. Thanks!
from luxtorpeda.
Great that's looking alot better. Are you on x11 or wayland? On my system it centers the window so not sure why that's happening. If it's on x11 I can trigger a window centering once it's created.
from luxtorpeda.
Can you try this build? I added an sdl2 command to center the window position once it's open. The window is always centered already on my systems but it may help with what you are seeing.
The window isn't movable on purpose but it should be centered
from luxtorpeda.
Yeap, the window is centered (the screenshot was took cutting the rest of the screen). The latest build works fine AFAIK.
from luxtorpeda.
Thanks for the help in testing, I've released those fixes with version 53.
from luxtorpeda.
Related Issues (20)
- Reporting a vulnerability HOT 1
- Handle Rust Panics Better HOT 1
- Please allow for Luxtorpeda to install its default configs over a customized one. HOT 7
- Steam Deck Virtual Keyboard not working in game HOT 26
- Cleanup/Improvement Items
- The Apogee Throwback Pack Extraction Error HOT 3
- Investigate VRAM Optimization HOT 8
- Manually deleting files causing game to fail to launch due to hash check HOT 1
- Launching Doom 3 causes "no directory" error HOT 10
- Update GZDoom Version HOT 2
- Is it possible to have the game official version (native or proton) as an option in the engine selection menu? HOT 16
- Make Luxtorpeda download required Steam files HOT 54
- Old luxtorpeda repository is confusing users HOT 1
- Engine not showing when launching game (UT2004, non steam game) HOT 1
- please support oldest "ubuntu" that steam supports. or atleast not the latest: glibc 2.29 HOT 8
- Descent Freespace FS1 Engine Option (the non FS2Open one) gives error HOT 4
- On usage of reverse engineering for creating open-source game engines HOT 5
- Odamex SDL version conflict HOT 1
- %name% in config.vdf HOT 1
- Add support for "additional_remote_packages" config parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luxtorpeda.