• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Save time complexity for saving a map

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Will the save time increase if I add say 200 custom objects to a map which before then had 0?

What I mean is, will future saves "cost" more time just because there are added custom objects, even though I only should have to "write" that information once, and then if it's never modified, I should never have to re-write the same, unmodified information between saves...
 
Level 4
Joined
May 15, 2014
Messages
67
Everytime you save, it will always save all the objects and things you have on map.. but however, saving is really short, even if you have really high ammount of objects, saving is like 2-3 seconds long.. The worse thing is when youre loading a map.. if you have really high ammount of objects, it will took more to load, but still not too long
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
My machine might notice a difference. Saving takes about 2-3 seconds on a map with almost no triggers, and on my current version without any custom objects, saving takes about 5 seconds.
 
My machine might notice a difference. Saving takes about 2-3 seconds on a map with almost no triggers, and on my current version without any custom objects, saving takes about 5 seconds.

It can often depend on the size of the map. When I was working on Ardent Heroes, it took 15-20 seconds to save the map, which is awful for working. Instead of doing all of the work on the main map, have separate maps that are 64x64, and do the work there. Make the code systematic so that it can be easily transferred, and then port it over.

Generally, it is better to have a separate testing environment. Otherwise you'll lose so much time just waiting for your map to save. As for your machine, I doubt mine is better. It is an old lenovo laptop from at least 8 years ago, with a burnt screen. It still saves decently fast. But obviously, as the map size goes up, the save times become a lot longer. Same thing happens as you add more objects on the map.

Imp Midna made a hack to speed up the process drastically, but it isn't compatible with JNGP:
http://www.hiveworkshop.com/forums/warcraft-editing-tools-277/vanilla-we-quick-save-hack-249003/
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
Yes I've made all my code and objects portable (nearly), but it's hard to feel a sense of progress without seeing everything come together.

Map is 256 x 256 which perhaps might be the cause?
 
Status
Not open for further replies.
Top