• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

PreloadGenStart

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,100
Since I am not so sure if this is known and I still do not know the purpose of all Preload natives:

I always thought files created by PreloadGenEnd spat some random number in their last PreloadEnd line because they were quite arbitrary. It's simply that PreloadGenStart marks the starting point of some async timer that runs across different games and even considers the gap of wc3 being closed.

Therefore you can use this to benchmark any action in a map: call PreloadGenStart, do your stuff, call PreloadGenEnd.

though I know of no possibility to retrieve the value from inside wc3.
 
For me, it was quite consistent. It's not that the number is imprecise (although it shows only one decimal place), but the real execution time might not always be exactly the same. Anyway, of course you should repeat the action a big multiple of times in order to obtain some significance.
 
Status
Not open for further replies.
Back
Top