Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Windows renderer: Nearest neighbor video scaling #85
This PR implements nearest neighbor video filtering/scaling for the Pixel Shader renderer used on Windows.
Nearest neighbor scaling is the conventional scaling used in emulators for older systems, as it results in the most accurate and crisp image. The lack of it was the first thing I noticed when I initially tried RetroPlayer, so I decided to take a crack at it.
It's implemented on Linux, but for windows it was only implemented in the software renderer. DXVA and the Pixel Shader renderer didn't support it. This PR implements it for the Pixel Shader renderer.
For a few implementation details, here's a copy of the main commit message:
Motivation and Context
For RetroPlayer, this was without a doubt needed eventually.
How Has This Been Tested?
Tested in RetroPlayer by loading a Game Boy emulator and a game. The difference is quite obvious :)
Screenshots (if appropriate):
(more obvious full-screen)
Types of change
I think it's needed because we need to keep this state to detect/compare (