Eu construí um jogo que deve rodar constantemente a 60 fps. No entanto, o fps do jogo oscila entre 45 e 60 fps, principalmente na faixa dos 50 inferiores. Isso não tem nenhuma influência no jogo, porém me pergunto por que isso acontece.
eu uso 1/Time.deltaTime
para obter a taxa de quadros e reduzi-la para exibir números inteiros.
Eu uso um URP padrão, sem pós-processamento.
No editor mostra 60 fps constantes, raramente caindo abaixo de 58, mas na construção (Samsung Galaxy A 40) ocorre o comportamento estranho.
Editar:
Tentei construir e rodar o jogo no celular conforme escrito no website, mas encontrei o seguinte erro:
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.Cellular.AndroidUtilities.GetApkDownloadSize (System.String applicationPath) (0x001b8) in .LibraryPackageCache(e-mail protected)EditorMobileAndroidUtilities.cs:256
at Unity.BuildReportInspector.Cellular.AndroidUtilities.GetArchitectureInfo (System.String applicationPath) (0x000ca) in .LibraryPackageCache(e-mail protected)EditorMobileAndroidUtilities.cs:128
at Unity.BuildReportInspector.Cellular.MobileAppendix..ctor (System.String applicationPath) (0x000ad) in .LibraryPackageCache(e-mail protected)EditorMobileMobileAppendix.cs:90
at Unity.BuildReportInspector.Cellular.MobileHelper.GenerateMobileAppendix (System.String applicationPath, System.String guid) (0x00017) in .LibraryPackageCache(e-mail protected)EditorMobileMobileHelper.cs:77
UnityEngine.Debug:LogError (object)
Unity.BuildReportInspector.Cellular.MobileHelper:GenerateMobileAppendix (string,string) (at ./Library/PackageCache/(e-mail protected)/Editor/Cellular/MobileHelper.cs:83)
Unity.BuildReportInspector.Cellular.MobileHelper:GenerateAndroidAppendix (string,string) (at ./Library/PackageCache/(e-mail protected)/Editor/Cellular/MobileHelper.cs:27)
Unity.BuildReportInspector.Cellular.PostBuildSetup:BuildPostProcess (UnityEditor.BuildTarget,string) (at ./Library/PackageCache/(e-mail protected)/Editor/Cellular/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.Cellular.AndroidUtilities.GetApkDownloadSize (System.String applicationPath) (0x001b8) in .LibraryPackageCache(e-mail protected)EditorMobileAndroidUtilities.cs:256
at Unity.BuildReportInspector.Cellular.AndroidUtilities.GetArchitectureInfo (System.String applicationPath) (0x000ca) in .LibraryPackageCache(e-mail protected)EditorMobileAndroidUtilities.cs:128
at Unity.BuildReportInspector.Cellular.MobileAppendix..ctor (System.String applicationPath) (0x000ad) in .LibraryPackageCache(e-mail protected)EditorMobileMobileAppendix.cs:90
at Unity.BuildReportInspector.Cellular.MobileHelper.GenerateMobileAppendix (System.String applicationPath, System.String guid) (0x00017) in .LibraryPackageCache(e-mail protected)EditorMobileMobileHelper.cs:77
Construct accomplished with a results of 'Failed' in 253 seconds (252908 ms)
2 errors
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)