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

PreloadGenStart

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
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.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
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.
Top