[4.7.2] No affect MobileContentScaleFactor on Android device

Hey guys.

I found an issue for screen resolution on android device.

I’m trying to make my game playing on ACTUAL resolution for any device. so I set +CVars=r.MobileContentScaleFactor=0 in DefaultDeviceProfile.ini as following.

[Android DeviceProfile]
+CVars=r.MobileContentScaleFactor=0

because, if r.MobileContentFactor is 0, it can be set actual resolution on android device as following code AndroidWIndow.cpp

// CSF is a multiplier to 1280x720
static IConsoleVariable* CVar = IConsoleManager::Get().FindConsoleVariable(TEXT("r.MobileContentScaleFactor")); 
float RequestedContentScaleFactor = CVar->GetFloat();

// 0 means to use native size
int32 Width, Height;
if (RequestedContentScaleFactor == 0.0f)
{
	Width = MaxWidth;
	Height = MaxHeight;
	UE_LOG(LogAndroid, Log, TEXT("Setting Width=%d and Height=%d (requested scale = 0 = auto)"), Width, Height);
}

but, IT DIDN’T WORK.

so, I followed the log using logcat and found wrong sequence of initializing. (my device’s resolution is 1920x1200)

I think this is wrong sequence of initialization.

anyway I’ve solved this problem temporarily to set r.MobileContentScaleFactor value to DefaultEngine.ini.

[/Script/Engine.RendererSettings]
r.MobileContentScaleFactor=0

It works. but it is removed when I modify DefaultEngine.ini in Project Setting Window. so this is not comfortable way.

is there any solution except modifying DefaultEngine.ini?

Howdy JakeChoe,

Thank you for reporting this issue. I am going to need a bit more information before I begin investigating this issue. Would you be able to clarify if you are using the Source or Binary build of UE4? Also, would you be seeing the same error on 4.7.3?

Any additional information would be greatly appreciated.

Thanks and have a great day!

I’m using both of Source and Binary build of UE4.
and it is same on 4.7.3. (and same on both of source and binary)

Thank you!

and there is also same issue on r.MobileHDR setting.

Howdy JakeChoe,

Just wanted to let you know that I have reached out to a fellow developer for a bit more information on this issue and will let you know when I get a response back.

Thanks for your patience!

Howdy JakeChoe,

Thank you for your patience. I have just ran a search in our Jira database and found that a Bug Report (UE-13406) has been written for r.MobileContentScaleFactor is not working on Android devices. It is marked as a critical bug and worked on being fixed for the 4.8 release of UE4. At this time, I am uncertain as to is it will make it for that release or when that release will be but I will be sure to keep you posted as I know more.

Thanks and have a great day!