summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-07-23 01:36:59 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-07-23 01:36:59 -0400
commita8ab4b97085ac2e68282a1db225222deb737bfae (patch)
tree1b459f7d3cffdf981c2c583420b65a29ab0df896
parent41f62a13bc677f18692379c5be8eb8e258211556 (diff)
tools/free_space.awk
-rw-r--r--Remove-Pokémon-sprite-animations.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Remove-Pokémon-sprite-animations.md b/Remove-Pokémon-sprite-animations.md
index f9c788d..2d09250 100644
--- a/Remove-Pokémon-sprite-animations.md
+++ b/Remove-Pokémon-sprite-animations.md
@@ -613,3 +613,5 @@ Let's go over what trim_animation.sh is doing. Before, this was the workflow whe
Anyway, trim_animation.sh takes each front.animated.2bpp file and removes the animation tiles, keeping only the transposed tiles for the first frame. It reads front.dimensions to know how many tiles the first frames uses. Then each tile uses 16 bytes, so it keeps that many bytes of the head of the file.
That's it, we're done! This change frees up 102 KB of a 2 MB ROM: nearly 5% of the total space. Considering that an original Crystal ROM has 20% of its space unused, we've increased the free space by nearly 25%.
+
+(As of July 23, 2018, you can measure free space after building a ROM with `make` by running `tools/free_space.awk pokecrystal.map`. The script [tools/free_space.awk](../blob/master/tools/free_space.awk) parses a .map file and adds up all the unused "slack" space.)