Skip to content
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

Total Warhammer 3 not using -H resolution #470

Closed
raaffaaeell opened this issue Apr 22, 2022 · 8 comments
Closed

Total Warhammer 3 not using -H resolution #470

raaffaaeell opened this issue Apr 22, 2022 · 8 comments

Comments

@raaffaaeell
Copy link

Hello, I'm not sure if I understand this correctly. but I'ld like to use FSR upscaling like so

gamescope -h 720 -H 1080 -f -e -U -- %command%

and

gamescope -w 1280 -W 1980 -h 720 -H 1080 -f -e -U -- %command%

When I get into the game and check the resolution it says 720p and the UI is like it's still 720, not 1080p

Am I doing something wrong ?

Cheers

@Samsagax
Copy link

I think you misunderstood the pipeline there. -h and -w lie to the game telling it is run on a smaller screen size. Then -H and -W are the output gamescope will upscale to. The FSR thecnique (or nearest neighbors by default) is applied by gamescope to upscale between the lowercase and uppercase options. The game doesn't see that and doesn't care about it.

@raaffaaeell
Copy link
Author

Sorry, but I still dont understand how I'ld go about using fsr with gamescope. How would I be able to have the 1080p being upscaled from a lower resolution.

Currently I have just 720p blurry UI, not 1080p blurry UI (if that makes any sense)

@Samsagax
Copy link

I'm not sure what are you trying to acomplish.
If you set h to 720 then the game will render at most to 720 native resolution. Then if you also set H to 1080 gamescope will upscale those 720 to 1080 using FSR.

@pmartiner
Copy link

@raaffaaeell the blurry UI is expected, since FSR will try to upscale it as well (you can try and remove -U to see the difference) due to how the FSR hack works. For the UI not to be upscaled and show it as if the game was running at 1080p, it would have to have a proper FSR implementation. You can read more about it here.

Caveats:

  • Only works in vulkan games (dxvk and vkd3d-proton included).
  • Some games upscale on their own, without using fshack, when you select a lower resolution in game. FSR won't work in those.
  • Obviously applying FSR to the final image is not ideal, it should be applied before the UI is drawn and before some post processing effects like film grain.

@raaffaaeell
Copy link
Author

This is how the game looks when I use the flags like in my first post and the resolution available

image

image

This is 1080p (without gamescope, fullscreen)

image

The unit cards in the gamescope are smaller than the ones without gamescope, despite being the same resolution. Does it make sense now ?

I understand why the UI is blurry, what I'm trying to understand is why I'm getting 720p blurry instead of 1080p blurry, or if I misunderstood how the gamescope implementation works

Thanks in advance, guys

@pmartiner
Copy link

pmartiner commented Apr 22, 2022

@raaffaaeell gamescope is behaving as expected: you're telling it to upscale a 720p UI to a 1080p resolution. The reason why you're seeing it so sharp without gamescope is because you're running it at native resolution, not upscaled from 720p.

You can try running it with gamescope -H 1080 -f -e -- %command% to see what I'm talking about. The game should look the same as the second image.

@raaffaaeell
Copy link
Author

@pmartiner It's not about the sharpness. The width of the unit cards is not the same between the screenshots, for example.

@Samsagax
Copy link

@pmartiner It's not about the sharpness. The width of the unit cards is not the same between the screenshots, for example.

I see your issue and that's nothing gamescope could help. Is a decision made from the game to render in 720 that UI element based on what the developer thought was right for that screen resolution. Since the game thinks the screen is 720, then it will render at 720 UI elements. Some games are more clever than it and provide a slide to scale UI elements, but I'm afraid this time the developer took the decision from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants