mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
Disable xbrz by default on mobile platforms till performance issues are
fixed
This commit is contained in:
@@ -356,6 +356,10 @@ EUpscalingFilter ScreenHandler::loadUpscalingFilter() const
|
|||||||
return filter;
|
return filter;
|
||||||
|
|
||||||
// else - autoselect
|
// else - autoselect
|
||||||
|
#ifdef VCMI_MOBILE
|
||||||
|
// to help with performance - only if player explicitly enabled xbrz
|
||||||
|
return EUpscalingFilter::NONE;
|
||||||
|
#else
|
||||||
Point outputResolution = getRenderResolution();
|
Point outputResolution = getRenderResolution();
|
||||||
Point logicalResolution = getPreferredLogicalResolution();
|
Point logicalResolution = getPreferredLogicalResolution();
|
||||||
|
|
||||||
@@ -371,6 +375,7 @@ EUpscalingFilter ScreenHandler::loadUpscalingFilter() const
|
|||||||
return EUpscalingFilter::XBRZ_3; // resolutions below 2400p (including 1440p and 2160p / 4K)
|
return EUpscalingFilter::XBRZ_3; // resolutions below 2400p (including 1440p and 2160p / 4K)
|
||||||
|
|
||||||
return EUpscalingFilter::XBRZ_4; // Only for massive displays, e.g. 8K
|
return EUpscalingFilter::XBRZ_4; // Only for massive displays, e.g. 8K
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenHandler::selectUpscalingFilter()
|
void ScreenHandler::selectUpscalingFilter()
|
||||||
|
Reference in New Issue
Block a user