mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 12:58:27 +00:00
use different value for default max fps on mobile
This commit is contained in:
parent
17db595e4c
commit
1d8677654a
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue