Browse Source

修改帧率为45

LiuQilin 8 years ago
parent
commit
4efdde956e

+ 6 - 6
Assets/Resource/Sprite/SpriteUI/游戏界面.png.meta

@@ -51,7 +51,7 @@ TextureImporter:
   textureFormatSet: 0
   platformSettings:
   - buildTarget: DefaultTexturePlatform
-    maxTextureSize: 2048
+    maxTextureSize: 1024
     textureFormat: -1
     textureCompression: 1
     compressionQuality: 50
@@ -59,7 +59,7 @@ TextureImporter:
     allowsAlphaSplitting: 0
     overridden: 0
   - buildTarget: Standalone
-    maxTextureSize: 2048
+    maxTextureSize: 1024
     textureFormat: -1
     textureCompression: 1
     compressionQuality: 50
@@ -68,20 +68,20 @@ TextureImporter:
     overridden: 0
   - buildTarget: iPhone
     maxTextureSize: 1024
-    textureFormat: 33
+    textureFormat: -1
     textureCompression: 1
     compressionQuality: 50
     crunchedCompression: 0
     allowsAlphaSplitting: 0
-    overridden: 1
+    overridden: 0
   - buildTarget: Android
     maxTextureSize: 1024
-    textureFormat: 47
+    textureFormat: -1
     textureCompression: 1
     compressionQuality: 50
     crunchedCompression: 0
     allowsAlphaSplitting: 0
-    overridden: 1
+    overridden: 0
   - buildTarget: WebGL
     maxTextureSize: 2048
     textureFormat: -1

+ 1 - 1
Assets/Script/Manage/Initializer.cs

@@ -39,7 +39,7 @@ public class Initializer : MonoBehaviour
             DataEyeGA.Init("ADE884FAAF61A2CB45B02431A70932B8", DataEyeGA.PlatformType.WP, "Official", "Windows");
         }
 
-        Application.targetFrameRate = 60;
+        Application.targetFrameRate = 45;
 
         DontDestroyOnLoad(gameObject);
 

+ 8 - 8
Assets/Script/Manage/ManaDebug.cs

@@ -37,16 +37,16 @@ public class ManaDebug : MonoBehaviour
 
     public void Update()
     {
-        //Timer += Time.deltaTime;
-        //Counter++;
+        Timer += Time.deltaTime;
+        Counter++;
 
-        //if (Timer >= 1)
-        //{
-        //    Log("FrameRate " + Counter);
+        if (Timer >= 1)
+        {
+            Log("FrameRate " + Counter);
 
-        //    Timer = 0;
-        //    Counter = 0;
-        //}
+            Timer = 0;
+            Counter = 0;
+        }
     }
 
 

+ 7 - 9
Assets/Script/Manage/ManaIAP.cs

@@ -319,21 +319,19 @@ public class ManaIAP : MonoBehaviour, IStoreListener
 
     public static void ShareCallback(int reqID, ResponseState state, PlatformType type, Hashtable result)
     {
-        ManaDebug.Log("Share " + state + " " + result);
+        if (!string.IsNullOrEmpty(ImagePath))
+        {
+            ManaReso.SetActive("P_Open", true);
+            ManaReso.SetActive("P_Share", true);
+
+            ImagePath = null;
+        }
 
         if (state == ResponseState.Success)
         {
             ManaCenter.ShareAmt++;
             
             Bubble.Show(null, Language.GetStr("Common", "ShareSuccess"));
-
-            if (!string.IsNullOrEmpty(ImagePath))
-            {
-                ManaReso.SetActive("P_Open", true);
-                ManaReso.SetActive("P_Share", true);
-
-                ImagePath = null;
-            }
         }
         else if (state == ResponseState.Fail)
         {

+ 32 - 0
Assets/Script/Tool/FrameRateUtility.cs

@@ -0,0 +1,32 @@
+using UnityEngine;
+
+using System.Collections;
+using System.Collections.Generic;
+
+public class FrameRateUtility : MonoBehaviour 
+{
+    #region Variable
+
+    public static int FrameRate;
+
+    private int Counter;
+    private float Timer;
+    
+    #endregion
+
+    public void Update()
+    {
+        Timer += Time.deltaTime;
+
+        if (Timer >= 1)
+        {
+            Timer = 0;
+
+            FrameRate = Counter;
+        }
+        else
+        {
+            Counter++;
+        }
+    }
+}

+ 12 - 0
Assets/Script/Tool/FrameRateUtility.cs.meta

@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 9bd6f008f7b251544b1302b9c40898ce
+timeCreated: 1503394877
+licenseType: Pro
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 3 - 3
ProjectSettings/ProjectSettings.asset

@@ -122,13 +122,13 @@ PlayerSettings:
     16:9: 1
     Others: 1
   bundleIdentifier: com.dashgame.garden
-  bundleVersion: 1.1.1
+  bundleVersion: 1.1.2
   preloadedAssets: []
   metroInputSource: 0
   m_HolographicPauseOnTrackingLoss: 1
   xboxOneDisableKinectGpuReservation: 0
   protectGraphicsMemory: 0
-  AndroidBundleVersionCode: 7
+  AndroidBundleVersionCode: 8
   AndroidMinSdkVersion: 16
   AndroidPreferredInstallLocation: 1
   aotOptions: 
@@ -136,7 +136,7 @@ PlayerSettings:
   stripEngineCode: 0
   iPhoneStrippingLevel: 0
   iPhoneScriptCallOptimization: 0
-  iPhoneBuildNumber: 1
+  iPhoneBuildNumber: 2
   ForceInternetPermission: 0
   ForceSDCardPermission: 1
   CreateWallpaper: 0

+ 1 - 1
ProjectSettings/QualitySettings.asset

@@ -155,7 +155,7 @@ QualitySettings:
     softVegetation: 1
     realtimeReflectionProbes: 1
     billboardsFaceCameraPosition: 1
-    vSyncCount: 1
+    vSyncCount: 0
     lodBias: 2
     maximumLODLevel: 0
     particleRaycastBudget: 4096

+ 1 - 1
ToDoList.txt

@@ -1,4 +1,4 @@
-截屏分享失败也要显示按钮
+修改帧率
 
 Facebook 新浪微博不能分享