Tuesday, December 24, 2024
spot_img

unity – Inconsistent body charge (45 – 60 fps)


I’ve construct a sport, that ought to run on 60 fps consistently. Nevertheless, the sport fps swings between round 45 to 60 fps, principally within the decrease 50s. This does not have any affect on the sport, nonetheless I’m wondering why this occurs.

I exploit 1/Time.deltaTime to get the body charge and ground it to show complete numbers.

I exploit a regular URP, no put up processing.

Within the editor it reveals fixed 60 fps, hardly ever dropping under 58, however on construct (Samsung Galaxy A 40) the bizarre behaviour happens.

Edit:

I attempted construct and working the sport on cell as written on the web site, nonetheless I et the next error:

System.Exception: apkanalyzer did not estimate the apk measurement. Output:
Fehler: Hauptklasse FilesUnityHubEditor2022.3.45f1EditorDataPlaybackEnginesAndroidPlayerSDKcmdline-tools6.0bin.. konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: FilesUnityHubEditor2022/3/45f1EditorDataPlaybackEnginesAndroidPlayerSDKcmdline-tools6/0bin//

 

  at Unity.BuildReportInspector.Cell.AndroidUtilities.GetApkDownloadSize (System.String applicationPath) [0x001b8] in .LibraryPackageCache[email protected]EditorMobileAndroidUtilities.cs:256 
  at Unity.BuildReportInspector.Cell.AndroidUtilities.GetArchitectureInfo (System.String applicationPath) [0x000ca] in .LibraryPackageCache[email protected]EditorMobileAndroidUtilities.cs:128 
  at Unity.BuildReportInspector.Cell.MobileAppendix..ctor (System.String applicationPath) [0x000ad] in .LibraryPackageCache[email protected]EditorMobileMobileAppendix.cs:90 
  at Unity.BuildReportInspector.Cell.MobileHelper.GenerateMobileAppendix (System.String applicationPath, System.String guid) [0x00017] in .LibraryPackageCache[email protected]EditorMobileMobileHelper.cs:77 
UnityEngine.Debug:LogError (object)
Unity.BuildReportInspector.Cell.MobileHelper:GenerateMobileAppendix (string,string) (at ./Library/PackageCache/[email protected]/Editor/Cell/MobileHelper.cs:83)
Unity.BuildReportInspector.Cell.MobileHelper:GenerateAndroidAppendix (string,string) (at ./Library/PackageCache/[email protected]/Editor/Cell/MobileHelper.cs:27)
Unity.BuildReportInspector.Cell.PostBuildSetup:BuildPostProcess (UnityEditor.BuildTarget,string) (at ./Library/PackageCache/[email protected]/Editor/Cell/PostBuildSetup.cs:44)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Error constructing Participant: System.Exception: apkanalyzer did not estimate the apk measurement. Output:
Fehler: Hauptklasse FilesUnityHubEditor2022.3.45f1EditorDataPlaybackEnginesAndroidPlayerSDKcmdline-tools6.0bin.. konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: FilesUnityHubEditor2022/3/45f1EditorDataPlaybackEnginesAndroidPlayerSDKcmdline-tools6/0bin//

 

  at Unity.BuildReportInspector.Cell.AndroidUtilities.GetApkDownloadSize (System.String applicationPath) [0x001b8] in .LibraryPackageCache[email protected]EditorMobileAndroidUtilities.cs:256 
  at Unity.BuildReportInspector.Cell.AndroidUtilities.GetArchitectureInfo (System.String applicationPath) [0x000ca] in .LibraryPackageCache[email protected]EditorMobileAndroidUtilities.cs:128 
  at Unity.BuildReportInspector.Cell.MobileAppendix..ctor (System.String applicationPath) [0x000ad] in .LibraryPackageCache[email protected]EditorMobileMobileAppendix.cs:90 
  at Unity.BuildReportInspector.Cell.MobileHelper.GenerateMobileAppendix (System.String applicationPath, System.String guid) [0x00017] in .LibraryPackageCache[email protected]EditorMobileMobileHelper.cs:77 

Construct accomplished with a results of 'Failed' in 253 seconds (252908 ms)
2 errors
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles