Doom8088 icon indicating copy to clipboard operation
Doom8088 copied to clipboard

Reduce memory usage by shrinking size of DOOM1.WAD

Open FrenkelS opened this issue 2 years ago • 8 comments

Copy and change GbaWadUtil

  • add to WAD HELP2.LMP, STBAR.LMP, TITLEPIC.LMP, WIMAP0.LMP
  • lower details of pictures by only using even columns and letting odd columns point to the previous column. See WADptr
  • shave of some unused bytes in posts, map textures and map patches
  • replace texture names by numbers in sidedefs and sectors
  • change the palette values in the WAD so it's not necessary to do (*palette++) >> 2 in i_system.c

FrenkelS avatar Aug 29 '23 08:08 FrenkelS

What would be the lowest storage requirement if e.g. the WAD only contaned E1M1? Just got a neat industrial device using a 386-based microcontroller that runs everything off (currently) 1M of flash EEPROM... would be fun to at least get something going :D I've ordered chips to hopefully double that but not sure it'll work...

kilrah avatar Sep 02 '23 20:09 kilrah

Around 226 kB.

Check out miniwad.wad https://github.com/fragglet/miniwad https://www.doomworld.com/forum/topic/108721-miniwadwad-a-minimalist-iwad/

FrenkelS avatar Sep 02 '23 20:09 FrenkelS

Woo this might work, "just" need to wrangle my way into transferring data onto it...

kilrah avatar Sep 02 '23 21:09 kilrah

Note to self: See RP2040 Doom for more compression tips.

FrenkelS avatar Sep 18 '23 05:09 FrenkelS

Hi! You might also want to try Squashware Doom which I put together earlier this year:

https://github.com/fragglet/squashware

fragglet avatar Aug 19 '24 15:08 fragglet

yeah, I put a link to it in the Jaguar levels issue.

FrenkelS avatar Aug 20 '24 06:08 FrenkelS

WAD lump merging, Sidedef packing, Graphic squashing and Blockmap stacking are implemented. See the wadptr manual for more information.

FrenkelS avatar Oct 07 '24 20:10 FrenkelS