-
Notifications
You must be signed in to change notification settings - Fork 23
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
Implement scaling of rendered content to window/screen size #21
Comments
This feature is supposed to be implemented, but it needs recent wine patch (which you have with this repository) and recent enough mesa (18.3 at least) |
Ok, i did some more testing with mesa 19.0 and nine-standalone 0.5-dev-git. Using wine 4.4 with World of Warcraft 1.12 the scaling works correctly. With Vampire Bloodlines the main menu is unscaled, but when actually loading into the game everything but the UI seems to be scaled correctly. It looks like this: Probably because the game is totally broken anyways, I don't know if this'd even work on windows. Dragon's Dogma i tested with proton 4.2 and there the scaling doesn't work at all. So i assume the scaling requires wine > 4.2? If that's the case, feel free to close this and thank you. |
Actually thinking about it again: the fact that the scaling works 100% correct with wined3d and Vampire probably means there is some bug in nine-standalone's implementation. |
Yeah, there's something that needs to be fixed on our side. |
I used binkw32.dll 1.8.23.0 and renamed the Vampire/media dir, and it renders correctly with game res = screen res. |
Can you build standalone from the What's the game from your first screenshot? Does it fix that too? |
I'll test with that branch when i get home today. The first screenshot is Dragon's Dogma. |
With that branch a quarter of Vampire's output is now stretched across the screen and a screenshot produces this: The desktop was not actually visible, but appears in the screenshot. This is with wine 4.4 and "vampire.exe -full -width 1280 -height 720" on a 1080p monitor, my desktop is gnome/X11 if that matters. There is no change with Dragon's Dogma (proton 4.2). |
So vampire now works, it's just the screenshot that's borked? |
No, all i could see was the quarter of Vampire stretched across the screen, and when loading into the game the UI does the same thing as before. |
Huh, well that's weird. It works for me no matter how I try to break it... |
I get:
So for whatever reason that's still different on your setup. Was that with plain wine 4.4 and mesa 19? |
Yeah, plain wine 4.4 and mesa 19 (llvm8) from arch repos. |
I got the GOG version, which comes with the unofficial patch. Maybe that fixed something in that regard? Which version do you use? |
Also the gog version but i manually installed the unofficial patch 10.3. But if you don't launch the game with "-game Unofficial_Patch", it's not actually enabled. You can check if it's enabled in the rightmost tab of the options menu, it should say unofficial patch there. |
Yeah, I did the same, just with 10.2. The game loader and some patches still are in use even without that cmdline. But anyway, shouldn't matter since we're both using the unofficial patch |
Does it work if you try other resolutions, like 4:3. Or try to enable WINE's virtual desktop in winecfg and try then |
Will try later today when i'm back home. Any idea why it doesn't work with dragon's dogma. Won't it work with proton at all? |
No idea about that game, from the screenshot it looked like my patch could fix that too, but apparently it's another issue. |
I pushed another patch to that branch to add more debug output, let's hope there're some hints in there. Please use that for another log like above. |
Got the new logs with the updated branch: 1280x720: 1024x768 (also broken): 1280x720 with 1920x1080 virtual desktop: |
Did some more testing with games on proton 4.2: METAL GEAR RISING REVENGEANCE -> works as expected Also, wierdly, while retesting, Dragon's Dogma scaled correctly one time i launched it with nine but i can't reproduce it in any way, so there seems to be some randomness going on... Would an apitrace be of any help? |
With the added debug spew it looks like this on my end:
You're missing a I added another path to the branch, which restores the window on fullscreen mode changes. Does that fix it for you? |
I'm not seeing any issue with dragon's dogma either: https://imgur.com/mUGUm5P.png |
The new patch doesn't seem to change anything, but i found that i can make Vampire scale correctly if I minimize the game (just Alt-Tab doesn't work) and fullscreen it again. This workaround doesn't work with the games I tested on proton though. Anyways, I very much appreciate you taking the time trying to get this fixed. If this really only happens for my for some strange reason, I'm ok with just manually switching the monitor resolution for the very few dx9 games where i'd actually would like a lower rendering resolution, but maybe you or someone else will figure out what's going on someday ;) |
I'm not saying this isn't a bug on our end, but so far I've no idea how that is going wrong on your setup. I still have something to improve to maybe fix it, but without reproducing it on my end is like finding the needle in a haystack. There must be something you can do to fix it, and it'll help to hunt this down. |
Updated the branch again, any changes with that? |
Thank you for continuing to look into this. My wine prefix was a unmodified (except for nine-standalone ofc) 32bit prefix. I will try with a new clean prefix, the updated branch and Openbox wm later today. |
Trying again with a fresh wineprefix brought no changes, but both Vampire and Dragon's Dogma actually scale correctly with Openbox, even with the older version of the branch! So it must be something which gnome does, which causes nine's implementation to break. |
"cos DXVK doesnt" Actully DXVK just ignore WM behavior here, like with ATWMTCTW disabled... so nope, it just looks like it is working but that does not work too. 🤣 |
Probably good default for NINE is GDI and ATWMTCTW disabled, so that users does not see such issues by default 🤣 |
Can't replicate, neither on WD3D, nine or DXVK, on both GS and LXDE. Both D3D and nine behave exactly the same (as expected), did not test DXVK extensively. All defalut, only GPU scaling is enabled (it shouldn't matter, but it could). You are still not getting it, it's not about what works for you or others, if there's an issue, the goal is to resolve, instead of spamming, you should provide all the information about the issue you are facing now if you want to help, if don't, then remove yourself from the conversation. |
It is not spamming, i would rather recommend better defaults to users, than default with more issues. That is what i am thinking about here. 🤣 |
"Can't replicate, neither on WD3D, nine or DXVK, on both GS and LXDE." |
"Can't replicate, neither on WD3D, nine or DXVK, on both GS and LXDE." |
It could be done in different way, to start in window from a luancher. But this isnt from a launcher, this is from a game itself... TMNF version 2.11.26 🤣 |
"You are still not getting it, it's not about what works for you or others, if there's an issue, the goal is to resolve, instead of spamming, you should provide all the information about the issue you are facing now if you want to help, if don't, then remove yourself from the conversation." |
THIS IS NOT A FORUM! This is a bug report with main goal to fix the issue, not to work around it, your behaviour is counter productive (especially spamming and misdirecting, not to mention that you've did post insulting things that would matter for people who give a weight for opinions of other people, by calling people dumb "indirectly" - this IMO is enough to deserve a report function being used). In bug reports, there are few assumptions made that should always be the case:
As for the issue you are facing with this fixed branch, as I said, I can't replicate it, hence I can't help, that should be enough (there are only two ways to change it from fullscreen to windowed, either by clicking or by using alt+enter, version of the game is not that relevant for this, since .26 have fixes mainly IP related, and few crash fixes that could be related to the texture/shading issue, but if it will make it any better, can't replicate on .26 either). If you really wanted to help, you would mention all conditions and provide screenshots and whatever is needed in one comprehensive post. If it's any of your business, I've made a single post because I thought the issue I was facing back in 2019 is related to the issue Oschowa faced in MULTIPLE games, hence my response. It was not a priority issue for me at that time or now, the only reason is to help resolve it if I could. |
"THIS IS NOT A FORUM! This is a bug report with main goal to fix the issue, not to work around it, your behaviour is counter productive (especially spamming and misdirecting, not to mention that you've did post insulting things that would matter for people who give a weight for opinions of other people, by calling people dumb "indirectly" - this IMO is enough to deserve a report function being used)."
I amight do that, if you say FOR ME once 🤣 |
Low textures, image shifted up, and on the side... full featured like the one from you from before. |
Basically bug there is: if ATWMTCTW is enabled, NINE does not change to requested resolution. So instead of doing 640x480 window, when requested to go to window from a game, it does something wrongly - stretches window to near fullcreen 🤣 |
But there is more to it, because this does not happen even with stalone 0.7... if fulscreen is anything but not 1920x1080 🤣 |
Now with fixed branch it goes to right fullscreen resolution of 1920x1080, but going to window is still an issue if ATWMTCTW is enabled 🤣 |
All lesser 16:9 resolutions are not affected going to 640x480 so 4:3 resoltion windowed, only native 1920x1080 is affected. |
Anyway, let me explain why i dont care about all this? That is because game is really 4:3 and interface is stretched anyway, if you try to play it on any else aspect ratio 🤣 |
So, should this be fixed? No, nope. i dont think so. If you really want to push it to that, then go to the workaround and that is it 🤣 |
Same goes to NFSHP2, does the road looks bad? Nope, it looks fine to me. It looks the same as on Windows by default. |
@leipero Thanks for the testing, glad the subissue is solved @dungeon007 So to sum up the winecfg checkbox to allow the WM to control the window still gives issues (you see shifts) and apparently you have the same shifts with wined3d and not dxvk (but you have another problem with dxvk which makes you think the WM is not in control). Please refrain from giving your opinion here, a bug report should only contain information of test results. It's not helpful to have messages repeating the same information or giving your opinion or advising other users repeatidly with the same info. This would be more appropriate on a chat like the #d3d9 irc chan on freenode (gallium nine chat). I talked with Oschowa privately and the issue he faces is an issue with Valve's fullscreen hack (@dungeon007 I see you coming. For exemple it's not helpful to comment this fact or advise the user to do differently). Due to some issues with fullscreen window decorations, there is a (1, 1) offset detected which forces a path that clamps the output and prevents Valve's fullscreen hack from working. The (1, 1) offset is a bug, and DXVK faced it at some point and solved it by filtering a window message. Wined3d doesn't seem to have this issue, and as our code for window messages comes from wined3d, I'll try to update our code with last wined3d changes hoping this helps. I can replicate the border issue as when I go windowed from fullscreen with the game I have a 1-pixel wide white border on each side. |
That is it, i am done with this. |
I mean to sum it up, good bye 🤣 |
This is what i get when i run it in fullscreen: https://i.postimg.cc/mk6p0H28/99.jpg And to all GNOME extremists, i also on this day have one thing to say - Viva la RMS 🤣 |
Alright, the issue of this bug report should be fixed in |
Looks fine to me. If it works for OP and Dragon's Dogma, you could close bug. |
@axeldavy @dungeon007 |
"@dungeon007 |
GL does the same. Fixes the low texture quality issue of iXit/wine-nine-standalone#21 Signed-off-by: Axel Davy <davyaxel0@gmail.com>
GL does the same. Fixes the low texture quality issue of iXit/wine-nine-standalone#21 The are some indications it might not be the native behaviour (which makes sense, the native filtering of states seems more to not update internal states when the passed value is invalid). However it's better visually to have anisotropic filtering enabled in these buggy cases. Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Hi,
currently when using nine to run a game with render resolution < window size the content is not streched/scaled to fill up the window, but only occupies a part of it. This happens with vanilla wine and proton, some examples of what i mean:
Now i don't know if nine-standalone is the right place to implement this, or if this is even feasible, but this works nicely with dx11 games running through dxvk, so I thought it won't hurt to ask.
edit: forgot to add: this also works with wined3d
The text was updated successfully, but these errors were encountered: