You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
RG99 profile-guided optimization
The RG99 build must be PGO'd for reasonable performance.
Here are the instructions for producing a PGO'd build.
-
Install https://github.com/diasurgical/devilutionx-mpq-tools
-
Build the OPK for profiling data collection:
TOOLCHAIN=/opt/rs90-toolchain Packaging/OpenDingux/build.sh rg99 --profile-generate -
Copy the OPK to RG99 (
rg99is 10.1.1.3):scp -O build-rg99/devilutionx-rg99.opk rg99:/media/sdcard/apps -
Now, run the OPK. It will run the timedemo instead of the actual game and will take about 1 hour (due to heavy swapping).
-
Copy the profiling data from RG99:
rm -rf /tmp/devilutionx-profile scp -r -O rg99:/media/data/local/home/devilutionx-profile /tmp/devilutionx-profile -
Build the OPK use the collected profiling data:
TOOLCHAIN=/opt/rs90-toolchain Packaging/OpenDingux/build.sh rg99 --profile-use --profile-dir /tmp/devilutionx-profile -
The final package is at
build-rg99/devilutionx-rg99.opk.