Skip to content

huge refactor#20

Merged
vadosnaprimer merged 2 commits intox64from
refactor
Jul 2, 2022
Merged

huge refactor#20
vadosnaprimer merged 2 commits intox64from
refactor

Conversation

@vadosnaprimer
Copy link
Copy Markdown
Collaborator

@vadosnaprimer vadosnaprimer commented Jun 11, 2022

also address #17

Legend:

Smallest TV console height we have is 192, biggest handheld height we have is 384. Also there can be tons of windowed PC games that don't need aspect ratio correction but need different prescaling. So I excluded aspect ratio correction from the formula and tried to only deduce upscale factor from height alone.

So I divide 768 by height and then round the result down to be a multiple of 2, so 3 becomes 2, 5 becomes 4, etc. That way resolution below 192p goes 4x, which is most our handhelds. And 480p kinda footage remains 1x. And if Dolphin outputs something small, we have manual override.

All the rest is just refactoring so should be functionally identical, but needs testing.

also address #17
@vadosnaprimer vadosnaprimer requested review from despoa and fsvgm777 June 11, 2022 08:39
@vadosnaprimer vadosnaprimer merged commit e2df95d into x64 Jul 2, 2022
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

Successfully merging this pull request may close these issues.

1 participant