Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify foliage rendering #7366

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Simplify foliage rendering #7366

merged 1 commit into from
Aug 28, 2024

Commits on Aug 27, 2024

  1. Simplify foliage rendering

    During `ReencodeDungeonCels`, extracts floor tile foliage into
    a triangle with the floor frame and a separate 16-px tall `TransparentSquare`.
    
    This means that the floor frames are now always triangles and
    the foliage can be rendered directly without masking.
    
    Dungeon graphics sizes:
    
    Map  | Frames | Foliage frames | Byte size  | Before PR | After PR
    -----|--------|---------------:|-----------:|----------:|----------:
    Town |  3,803 |             41 | 2,317,832  | 2,242,056 | 2,242,190
    L1   |  1,119 |             11 |   738,836  |   721,604 |   721,110
    L4   |  1,091 |              6 |   603,140  |   584,500 |   584,242
    
    RG99 binary size reduced by ~4 KiB: 2,426,380 bytes -> 2,421,388 bytes
    glebm committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    da994c2 View commit details
    Browse the repository at this point in the history