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

Reduce memory usage by shrinking size of DOOM1.WAD #4

Open
FrenkelS opened this issue Aug 29, 2023 · 7 comments
Open

Reduce memory usage by shrinking size of DOOM1.WAD #4

FrenkelS opened this issue Aug 29, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@FrenkelS
Copy link
Owner

FrenkelS commented Aug 29, 2023

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 FrenkelS added the enhancement New feature or request label Aug 29, 2023
@kilrah
Copy link

kilrah commented Sep 2, 2023

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...

@FrenkelS
Copy link
Owner Author

FrenkelS commented Sep 2, 2023

Around 226 kB.

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

@kilrah
Copy link

kilrah commented Sep 2, 2023

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

@FrenkelS
Copy link
Owner Author

FrenkelS commented Sep 18, 2023

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

@fragglet
Copy link

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

https://github.com/fragglet/squashware

@FrenkelS
Copy link
Owner Author

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

@FrenkelS
Copy link
Owner Author

FrenkelS commented Oct 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants