The UDMF format is made of text. Surely that is inefficient?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
wolfboyft
Posts: 15
Joined: Fri Jul 01, 2016 4:33 am
Contact:

The UDMF format is made of text. Surely that is inefficient?

Post by wolfboyft »

Forgive my newness-induced need to even ask such a question, but I'm making my very first WAD with little to no experience of actual editing (but I'm getting there.)

So, I wanted to make a mirror at some point to test some stuff, and I realised I needed the UDMF format to make it. I used it, made the mirror and looked in the UDMF Map Data lump in the WAD out of interest. It's literally text. Is this not inefficient? If it is, why is it used as much as it is (a lot, from what I gather?)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: The UDMF format is made of text. Surely that is ineffici

Post by Gez »

Efficiency is not as important as extensibility, and the format was created for maximum extensibility. Text compresses well, and ZDoom can load compressed WADs without problems. Even better, the PK3 archive format is compressed by default (since it's just a zip file).

You may have noticed if you pay attention to the wider world of IT that formats such as XML and JSON are very popular, and shock horror, they are text too. In our era of broadband Internet and terabyte harddrives, the advantages of a text format outweighs its drawbacks.
User avatar
wolfboyft
Posts: 15
Joined: Fri Jul 01, 2016 4:33 am
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by wolfboyft »

Of course. Compression. Thanks for reminding me of that :oops:
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by Nash »

A 50 MB UDMF .wad map compresses into like 10 KB when zipped. How's THAT for compression!
User avatar
Ixnatifual
Posts: 2287
Joined: Fri Dec 12, 2003 6:44 pm
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by Ixnatifual »

It's pretty good.
User avatar
wolfboyft
Posts: 15
Joined: Fri Jul 01, 2016 4:33 am
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by wolfboyft »

The more I know.

BTW, are WADs compressed by default? I'm using SLADE 3.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: The UDMF format is made of text. Surely that is ineffici

Post by Gez »

WADs aren't compressed. You can zip them though, and then load the zip with the wad inside.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: The UDMF format is made of text. Surely that is ineffici

Post by Graf Zahl »

... which wastes a lot of RAM because it needs to keep the uncompressed WAD in memory in order to use it. Especially for UDMF this is definitely not recommended.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by NeuralStunner »

Since that's the only way to put maps in a PK3, there's not really any other option. (Unless you like dealing with cross-dependent files.)
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: The UDMF format is made of text. Surely that is ineffici

Post by InsanityBringer »

Probably not too much of a problem as long as the map wads in the PK3 only contain maps
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: The UDMF format is made of text. Surely that is ineffici

Post by Graf Zahl »

Maps in the Maps/ directory are handled differently.
Only WADs in the root have to be loaded into memory.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: The UDMF format is made of text. Surely that is ineffici

Post by NeuralStunner »

Okay, that makes more sense.
Post Reply

Return to “General”