mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-01 12:57:51 +02:00
Disable xbrz by default on mobile platforms till performance issues are
fixed
This commit is contained in:
parent
0a30e86f10
commit
69eac2f943
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user