latest Unity 2021.3.0
GLES3.2
Graphics Analyzer Version: 5.13.0.6d7b7c21
GPU processing budget approach to game development - Graphics, Gaming, and VR blog - Arm Community blogs - Arm Community
After reading the above article, I plan to follow the methods mentioned in the article to create a function that can automatically perform statistics through a script. However, I encountered the following problems.
I encountered two problems.
1.I want to capture frames of a Unity game using cmd-line instead of GUI. I used the following command: ".\aga-headless.bat -d f031bf6f --process com.unity.srpbatcherbench -t 10 --trace-file-output D:\trace.mgd --frames-with-fragment-count 10". Then an error occurred.
February 27, 2024 9:29:45 PM com.arm.mgd.core.util.CoreLogging info
Information: Using Mali-T880 r2p0 (Mali-T600_r13p0-00rel0) for shader compilation.
Maximum ESSL version: 320.
Supported extensions: GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_EXT_shader_pixel_local_storage GL_OES_EGL_image_external GL_OES_gpu_shader5 GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_ANDROID_extension_pack_es31a GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float GL_KHR_blend_equation_advanced GL_OES_sample_variables GL_OES_shader_image_atomic GL_OES_shader_multisample_interpolation GL_OES_texture_storage_multisample_2d_array GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_tessellation_shader GL_EXT_texture_buffer GL_EXT_texture_cube_map_array.
Information: Checking for headless mode authorization...
Information: ADB location retrieved from saved preferences: C:\Users\lizhirui01\AppData\Local\Android\Sdk\platform-tools\adb.exe
Information: Checking for install directory at: D:\Program Files\Arm\Arm Performance Studio 2024.0\graphics_analyzer\gui\..
Information: Device manager initialized.
February 27, 2024 9:30:01 PM com.arm.mgd.core.util.CoreLogging info
Information: Installing tracing components to device - please wait...
Information: Installation/removal progress: Installing interceptors
February 27, 2024 9:30:04 PM com.arm.mgd.core.util.CoreLogging info
Information: Installation/removal progress: Installing GA daemon
February 27, 2024 9:30:05 PM com.arm.mgd.core.util.CoreLogging info
Information: Installation/removal progress: Launching GA daemon
Information: Tracing components installed onto device
February 27, 2024 9:30:10 PM com.arm.mgd.core.util.CoreLogging info
Information: Failure occurred. Removing tracing components from device - please wait...
Information: Installation/removal progress: Stopping GA daemon
February 27, 2024 9:30:11 PM com.arm.mgd.core.util.CoreLogging info
Information: Installation/removal progress: Removing GA daemon
Information: Installation/removal progress: Removing layers
February 27, 2024 9:30:12 PM com.arm.mgd.core.util.CoreLogging info
Information: Removal of tracing components complete
February 27, 2024 9:30:12 PM com.arm.mgd.core.util.CoreLogging log
Warning: Connection to ADB failed.
Connection refused when connecting to OnePlus KB2000.
No input received when trying to read the trace version. Is the interceptor daemon running?
February 27, 2024 9:30:12 PM com
2.After I execute the command "adb shell settings put global gpu_debug_app com.unity.srpbatcherbench", I directly open the game on the phone, and the game will crash directly.
Is there a solution to these two problems? Or is there a new approach to perform a time-consuming statistics on game scenes for VS and PS?
Thanks in advance