Welcome to Open Carnage

A resource for gamers and technology enthusiasts, with unique means of rewarding content creation and support. Have a wander to see why we're worth the time!

Kavawuvi

TiaraCE Map Parser

15 posts in this topic

zlib is now only an optional dependency. If you do not wish to link zlib, define WITHOUT_ZLIB when compiling the src/map.cpp file. Note that doing so will remove these features:

  • Loading compressed maps (skips decompression code and throws an exception error)
  • Compressing loaded maps with TiaraMap::compress (instead calls std::terminate)
  • Calculating the CRC32 of loaded maps with TiaraMap::crc32 (instead calls std::terminate)
WaeV likes this

status.png?customhost=ProtonNebula.com:1

status.png?customhost=ProtonNebula.com:2

status.png?customhost=ProtonNebula.com:2

competent.png

Share this post


Link to post
Share on other sites

It's been a while since I worked on this (other stuff happened), so I figured I'd share a few benchmarks. Specs for the machine tested are: Intel Core i7-6700K, 16 GB DDR4, Samsung 850 EVO SSD.

 

As a worst-case, here's With_Whiteness.map which is under 0.84 seconds:

Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\With_Whiteness.map (796558 kB) took 0.393546 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\bitmaps.map (123547 kB) took 0.06261 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\sounds.map (41718 kB) took 0.0215847 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\loc.map (391 kB) took 0.000333924 seconds.
Reading all maps from disk took 0.483417 seconds.
TiaraCE::Map instantiation time: 0.353964 seconds.
Total time: 0.838726 seconds.

 

As a best-case, here's Blood Gulch which is under 0.18 seconds:

Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\bloodgulch.map (13936 kB) took 0.00748735 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\bitmaps.map (123547 kB) took 0.062807 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\sounds.map (41718 kB) took 0.0217566 seconds.
Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\loc.map (391 kB) took 0.00024297 seconds.
Reading all maps from disk took 0.0983064 seconds.
TiaraCE::Map instantiation time: 0.0739545 seconds.
Total time: 0.172989 seconds.

 

ST34MF0X likes this

status.png?customhost=ProtonNebula.com:1

status.png?customhost=ProtonNebula.com:2

status.png?customhost=ProtonNebula.com:2

competent.png

Share this post


Link to post
Share on other sites

I updated the above post - turns out I totally forgot to specify an optimization level for the compiler, and I've also been working on the code a little bit. So rather than With_Whiteness and Blood Gulch taking 1.456 seconds and 0.30 seconds, respectively, With_Whiteness actually takes 0.84 seconds and Blood Gulch takes 0.18 seconds.

 

This includes loading everything (loc, bitmaps, sounds, and the map file) into RAM, not just the map file itself. However, if I were to load these maps without bitmaps.map, loc.map, or sounds.map (such as for a dedicated server):
 

With_Whiteness takes under 0.68 seconds (-19%):

Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\With_Whiteness.map (796558 kB) took 0.383308 seconds.
Reading all maps from disk took 0.385347 seconds.
TiaraCE::Map instantiation time: 0.28488 seconds.
Total time: 0.672336 seconds.

 

Blood Gulch takes under 0.03 seconds (-84%):

Opening C:\Program Files (x86)\Microsoft Games\Halo Custom Edition\maps\bloodgulch.map (13936 kB) took 0.00753896 seconds.
Reading all maps from disk took 0.00936774 seconds.
TiaraCE::Map instantiation time: 0.0168858 seconds.
Total time: 0.0272645 seconds.

 


status.png?customhost=ProtonNebula.com:1

status.png?customhost=ProtonNebula.com:2

status.png?customhost=ProtonNebula.com:2

competent.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.