Commit Graph

17 Commits

Author SHA1 Message Date
easyaspi314
f3a164076d Cut VRAM usage roughly in half
Memory manufacturers and AAA game studios hate her!

With some clever rearranging, PTGB now uses only 36 KiB of the 64 KiB
BG VRAM. This means the remaining 28 KiB is free to use in the future.

Caveats: The flex tileset must not use more that 6 KiB. There is a check
for it added.

VRAM Map
  06000000 - 06000800 ( 2K): Eternal backdrop and textbox tileset
  06000800 - 06002000 ( 6K): Flex BG tileset
  06002000 - 06002400 ( 2K): BG0: Backdrop tilemap
  06002800 - 06003000 ( 2K): BG1: Flex BG tilemap
  06003000 - 06003800 ( 2K): BG2: Textbox tilemap
  06003800 - 06004000 ( 2K): BG3: Text tilemap
  06004000 -~06009000 (20K): Text rendering bitmap
  06009000 - 06010000 (28K): Free work RAM
  06010000 - 06018000 (32K): Sprite tileset

Additionally:
- Explicitly clear VRAM on boot
- Dirty workaround to fix box drawing buffer overflow.
- Flex backgrounds use a table instead of a huge switch statement
- Textbox tile IDs are now const u16[] instead of int[]
2026-07-02 16:20:19 -04:00
Adri1
8038762577 Some translations for openingBG 2026-06-18 15:30:05 +02:00
Adri1
b35bed93ef Moved openingBG to languages 2026-06-18 14:31:17 +02:00
Adri1
8202bc418e And why not some Chinese 2026-05-11 00:36:49 +02:00
Adri1
d2cfcdd914 Moar Japanese and Korean 2026-05-10 21:26:28 +02:00
Adri1
0cc1e31f71 Logo for ES-LA 2026-05-10 20:45:57 +02:00
Adri1
1744ae7e19 More transalted images 2026-05-10 20:21:28 +02:00
Adri1
6336653f56 More translations 2026-05-10 02:24:33 +02:00
Adri1
9d3d18d413 Pixel correction on English "Dragon" 2026-04-22 19:52:04 +02:00
Adri1
0547da909e Type icons translations for latin alphabet languages 2026-04-22 19:51:23 +02:00
Philippe Symons
e5ef89a2be Fix mistake with button_no.grit file -> it was not copied/moved to the language-specific folders
This caused the button_no.png file to no longer get compressed.

Fixing this gains about 2KB.
2026-03-10 14:34:46 +01:00
GearsProgress
95c6af63e4 Changing the folders back 2026-03-07 10:12:59 -05:00
The Gears of Progress
184b9f99ef Updating folder names for language graphics 2026-03-06 21:46:26 -05:00
GearsProgress
d17371ed1c Updating pt-br implementation 2026-03-05 18:11:16 -05:00
Adri1
024ff55d66 Palette correction 2026-03-02 22:14:08 +01:00
Adri1
6ff2d55543 French translation for images 2026-03-02 21:27:56 +01:00
GearsProgress
a4c4826322 Modifying build process to have language specific graphics 2026-03-01 22:08:09 -05:00