mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
For PC don't go higher than xbrz2 until performance is fixed
This commit is contained in:
@@ -367,6 +367,14 @@ EUpscalingFilter ScreenHandler::loadUpscalingFilter() const
|
|||||||
float scaleY = static_cast<float>(outputResolution.x) / logicalResolution.x;
|
float scaleY = static_cast<float>(outputResolution.x) / logicalResolution.x;
|
||||||
float scaling = std::min(scaleX, scaleY);
|
float scaling = std::min(scaleX, scaleY);
|
||||||
|
|
||||||
|
if (scaling <= 1.001f)
|
||||||
|
return EUpscalingFilter::NONE; // running at original resolution or even lower than that - no need for xbrz
|
||||||
|
else
|
||||||
|
return EUpscalingFilter::XBRZ_2;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Old version, most optimal, but rather performance-heavy
|
||||||
if (scaling <= 1.001f)
|
if (scaling <= 1.001f)
|
||||||
return EUpscalingFilter::NONE; // running at original resolution or even lower than that - no need for xbrz
|
return EUpscalingFilter::NONE; // running at original resolution or even lower than that - no need for xbrz
|
||||||
if (scaling <= 2.001f)
|
if (scaling <= 2.001f)
|
||||||
|
|||||||
Reference in New Issue
Block a user