- Joined
- May 11, 2008
- Messages
- 1,198
does it improve loading time to do [n] after array declarations
example:
i have more than these, these were just the ones in one section of the map, although this is most of them...
anyway what are the differences between say doing the above and doing numbers for them, like this:
integer array RUNNERTYPEID[26]
integer array CHASERTYPEID[10]
they both are compiling and functioning just fine.
i am pretty sure picking numbers that are too low is a problem, but numbers that are the right count of entries in the arrays or just a little bit above the count of the entires in the array are better to have than leaving it all blank, isn't it? and if so, what are the differences?
example:
JASS:
globals
camerasetup array customCAM
real array customCAMrotatereal
real array customCAMrollreal
real array customCAManglereal
real array customCAMdistancereal
real array CAMX
real array CAMY
integer array earngold5
camerasetup array CAM
string array ICON
string array RANDOMTIP
integer array RUNNERTYPEID
integer array CHASERTYPEID
integer array SPECIALCRITTER
integer array diadifint
unit array runnerSERVANT
unit array RUNNER
unit array CHASER
button array diadifbut
//...more globals which are irrelevant to the discussion
endglobals
anyway what are the differences between say doing the above and doing numbers for them, like this:
integer array RUNNERTYPEID[26]
integer array CHASERTYPEID[10]
they both are compiling and functioning just fine.
i am pretty sure picking numbers that are too low is a problem, but numbers that are the right count of entries in the arrays or just a little bit above the count of the entires in the array are better to have than leaving it all blank, isn't it? and if so, what are the differences?