Performance testing is a critical aspect of game development, ensuring that your games run smoothly and provide an excellent user experience. PerfDog, a robust performance testing tool, offers in-depth analysis for Android platforms. This guide will walk you through the process of testing PC games with PerfDog on Android platforms.
For games compiled in UE full version, please follow these steps:
1. Compile the Game: Ensure that the game you're testing is the development/test version.
2. Run the Game: Launch the game on your device.
3. Enable In-depth Analysis: In PerfDog, enable in-depth analysis and select Systrace mode.
4. Select Game to Test: Choose the game you've launched for testing.
5. Obtain More Stat Data: Use the following command to obtain more stat data: adb shell "am broadcast -a android.intent.action.RUN -e cmd 'stat namedevents'".
For games or applications of versions UE4.24 and later, follow these steps:
1. Compile the Game: Ensure that the game you're testing is the development/test version.
2. Create Configuration File: The current client has automatically pushed the configuration file. Create the "UE4CommandLine.txt" file in the "/sdcard/UE4Game/game project name/" directory on the phone and fill in the following content: -tracehost=127.0.0.1 -trace=cpu,frame -cpuprofilertrace.
3. Turn on In-depth Analysis: In PerfDog, turn on in-depth analysis, select Unreal mode, and select the test application to start testing.
For Unity games, follow these steps:
1. Compile the Game: Ensure that the game you're testing is the development version.
2. Run the Game: Launch the game on your device.
3. Enable In-depth Analysis: In PerfDog, enable in-depth analysis and select the corresponding mode.
4. Select Game to Test: Choose the game you've launched for testing.
For non-game apps, follow these steps:
1. Compile the App: Ensure that the app you're testing is a debug version.
2. Run the App: Launch the app on your device.
3. Enable In-depth Analysis: In PerfDog, enable in-depth analysis and select Systrace mode.
4. Select App to Test: Choose the app you've launched for testing.
PerfDog provides comprehensive and in-depth analysis for games and apps on Android platforms, making it an indispensable tool for developers. By following this guide, you'll be able to effectively test your PC games and ensure optimal performance. Elevate your game development process with PerfDog today!