leoetlino / project-restoration

A Majora's Mask 3D patch that restores some mechanics from the original game to get the best of both worlds
https://zora.re/storation
GNU General Public License v2.0
693 stars 24 forks source link

Hud mod looks bad at 2x scale #208

Closed jvook closed 2 years ago

jvook commented 2 years ago

Untitled

I don't think it would take much to modify the layout so that it scales well on 2x resolution. It's really only the button labels and the d-pad icon, otherwise it looks good.

leoetlino commented 2 years ago

It looks like the custom HUD texture is missing:

https://zora.re/dl/tex1_512x256_E2CEBCB19DA2608F_13.png

Right click on the game in the Citra game list and select Open Custom Texture Location.

Download this texture and put it there.

By the way, 2x does not give you an HD resolution -- you'll want to use 3x (for ~720p) or 5x (for ~1080p). Using the HD HUD mod at lower resolutions is not supported because you'll always get aliasing artifacts when you try to cram small HD widgets on a screen that isn't HD at all.

jvook commented 2 years ago

I am running 2x because I couldn't avoid dropping frames at higher multiples. The thing is that the HUD mod looks very good at 2x otherwise and it is just the button labels and d-pad icon that doesn't scale down and looks glitchy. I don't think it would take much to make the texture an even multiple that scales down to 2x. You were right I accidentally deleted that texture when I was trying to improve my framerates. Untitled

leoetlino commented 2 years ago

I don't think it would take much to make the texture an even multiple that scales down to 2x

Well, the problem isn't the texture (not that you can arbitrarily resize the texture anyway -- you're limited by the original texture shape and layout).

The issue is that the HUD uses fractional scaling to simulate a higher resolution viewport, and in your case there literally aren't enough pixels to avoid aliasing issues. It might be possible to move the D-Pad one pixel to the left/right to try to get it to look better but I don't think this is worth the effort when (a) it's still going to look imperfect (and will never look as well as at higher resolutions); (b) this will almost certainly break if the layout is updated for whatever reason in the future, and require extra effort to fix; (c) this will not fix ugliness elsewhere, e.g. for the item buttons, and as I said earlier the HD HUD mod is only supported at HD resolutions.

Are you using integrated graphics? 3x should be quite doable even on an entry-level GPU... I think you'll get a much better experience after upgrading your hardware if performance is the only thing keeping you from running the game at 720p+. Even ignoring the UI issues in your screenshots there's still some very obvious aliasing and blurriness. It'd be a shame to run the game at 480p when you seemingly have a 4k display...

leoetlino commented 2 years ago

Closing because there's not much I can do about this.