File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
LuaProfiler/LuaProfilerClient Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,6 @@ public static void OnStartGame()
7676 go . AddComponent < HookLuaSetup > ( ) ;
7777 NetWorkClient . ConnectServer ( setting . ip , setting . port ) ;
7878 }
79- if ( setting . isDeepMonoProfiler )
80- {
81- GCSettings . LatencyMode = GCLatencyMode . LowLatency ;
82- }
8379 }
8480
8581 private void Awake ( )
@@ -129,7 +125,7 @@ private void OnApplicationQuit()
129125 NetWorkClient . Close ( ) ;
130126#endif
131127 }
132-
128+ #if UNITY_EDITOR
133129 int desotryCount = 0 ;
134130 private void WaitDestory ( )
135131 {
@@ -141,7 +137,7 @@ private void WaitDestory()
141137 desotryCount = 0 ;
142138 }
143139 }
144-
140+ #endif
145141 }
146142
147143 public class Menu : MonoBehaviour
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public static void InjectAllMethods()
161161 var projectPath = System . Reflection . Assembly . Load ( "Assembly-CSharp" ) . ManifestModule . FullyQualifiedName ;
162162 var profilerPath = ( typeof ( LuaProfiler ) . Assembly ) . ManifestModule . FullyQualifiedName ;
163163
164- InjectAllMethods ( projectPath , profilerPath , true ) ;
164+ InjectAllMethods ( projectPath , profilerPath , false ) ;
165165 }
166166
167167 private static void InjectAllMethods ( string injectPath , string profilerPath , bool needMdb )
You can’t perform that action at this time.
0 commit comments