RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.47k stars 1.92k forks source link

Custom resolution does not work in windowed mode #11276

Closed NicknineTheEagle closed 2 years ago

NicknineTheEagle commented 2 years ago

Summary

Custom resolution setting does not seem to apply in windowed mode, it looks like the game still displays in 720p. It works fine in fullscreen mode, though. Tested multiple games (Need for Speed Carbon [BLES00020], Sonic the Hedgehog 4: Episode II [NPEB00717]). Issue is possibly driver-specific.

Logs

Log: RPCS3.log.gz RSX capture (windowed mode): BLES00020_20211221212234_capture.zip

Windowed screenshot: windowed

Fullscreen screenshot: fullscreen

PC specs

Megamouse commented 2 years ago

what did you expect from a 720p viewport?

nastys commented 2 years ago

Even though the window size is basically 720p, it should still look anti-aliased like in the fullscreen 1080p screenshot. Instead, it looks like it renders at native res (which is likely < 720p).

Megamouse commented 2 years ago

Compare the regular unscaled 720p image with your first screenshot and you will see a massive difference

NicknineTheEagle commented 2 years ago

Compare the regular unscaled 720p image with your first screenshot and you will see a massive difference

What massive difference? It looks same (internal resolution reset to 100%). image

Megamouse commented 2 years ago

This game is probably a bad example, but your 720p picture is a blurry mess compared to the windowed 4K image. I also have NV and I don't see such bad aliasing in my games 🤔

NicknineTheEagle commented 2 years ago

I can barely tell the difference; I had to directly compare them side-by-side and it kind of looks like the unscaled screenshot is slightly blurrier, mostly noticeable on details such as Audi logo. Still, one would expect a lot bigger difference between the two.

Megamouse commented 2 years ago

Btw, If anything then it's a downscale issue, not a resolution scale issue. You can use F12 to make a proper screenshot. It should be the full 4K image no matter how big your viewport is.

NicknineTheEagle commented 2 years ago

Btw, If anything then it's a downscale issue, not a resolution scale issue.

Yeah, that seems more likely.

You can use F12 to make a proper screenshot. It should be the full 4K image no matter how big your viewport is.

You're right, that indeed produces 4K image. BLES00020_screenshot_2021_12_21_22_11_10

NicknineTheEagle commented 2 years ago

Actually, here's 1080p windowed: image

It looks a little worse than 1080p fullscreen. I'm guess downscaling works differently in windowed and fullscreen?

nastys commented 2 years ago

It's probably because the viewport (what's inside the window) size is not exactly 1920x1080, so the scaling is a bit uneven.

Megamouse commented 2 years ago

you are comparing a native 1080p 1:1 pixel to pixel image with an image that is being downscaled from 1080p to some other resolution due to the borders.

In case you didn't know, the image will always look better if you have a higher display/window resolution. That's the reason why people buy 4K screens 😅

Megamouse commented 2 years ago

also, if 1:1 is not possible, then something like 2:1 is still better than something like 2.5:1 (which might be the case if you have a "windowed fullscreen")

NicknineTheEagle commented 2 years ago

In case you didn't know, the image will always look better if you have a higher display/window resolution. That's the reason why people buy 4K screen.

Gee, thanks, Captain Obvious, what would I do without you? The reason I got confused is because I've played games in 720p with anti-aliasing in the past and they tended to look better than this and downscaled custom resolution is essentially SSAA. Perhaps it's something about PAR to DAR ratio as was suggested before.

NicknineTheEagle commented 2 years ago

Here's 200% (1440p) downscaled to 720p which actually looks a lot better. So the issue definitely appears to be something about downscaling and ratios. image