use different value for default max fps on mobile

This commit is contained in:
in0finite 2019-07-21 20:18:54 +02:00
parent 17db595e4c
commit 1d8677654a
2 changed files with 6 additions and 2 deletions

View file

@ -20,6 +20,7 @@ namespace SanAndreasUnity.Behaviours {
public GameObject barPrefab;
[SerializeField] [Range(10, 100)] private int m_defaultMaxFps = 60;
[SerializeField] [Range(10, 100)] private int m_defaultMaxFpsOnMobile = 25;
public Vector2 cursorSensitivity = new Vector2(2f, 2f);
@ -34,7 +35,10 @@ namespace SanAndreasUnity.Behaviours {
if (null == Instance)
Instance = this;
SetMaxFps(m_defaultMaxFps);
if (Application.isMobilePlatform)
SetMaxFps(m_defaultMaxFpsOnMobile);
else
SetMaxFps(m_defaultMaxFps);
}

View file

@ -27,7 +27,7 @@
- Chat
- Android: touch input is required ; set default fps to 25 ; add some predefined folders in file browser ; HUD must run before other UI scripts ; load config from resources ; when build is finished, don't try to copy Data folder ;
- Android: touch input is required ; set default fps to 25 ; add some predefined folders in file browser ; HUD must run before other UI scripts ; add perms for read/write access to storage ;
- Play sounds: horn ; empty weapon slot ; ped damage ; footsteps in run and sprint states ;