emootootoo
Top Banana
- Reaction score
- 51
So, I'm using this system I found:
http://www.thehelper.net/forums/showthread.php?t=98352&highlight=preloading
That's me preloading my hero, his abilities, dummy abilities and dummy units used in abilities. I used some debug messeges to make sure it was preloading, and it was.
So the problem is, when I use one of my spells (which has the dummy unit/spell itself preloaded) it lags the first time it is cast.
I would of though preloading them would fix that... Is this system just a failure or am I missing something?
Note: If I stop the spell from creating the dummy units (which I have preloaded!), there is no lag at all on the first cast.
http://www.thehelper.net/forums/showthread.php?t=98352&highlight=preloading
JASS:
function InitTrig_Preloader takes nothing returns nothing
set gg_trg_Preloader = CreateTrigger( )
call UnitPreload(039;H001039;)
call AbilityPreload(039;A001039;)
call AbilityPreload(039;A002039;)
call AbilityPreload(039;A003039;)
call AbilityPreload(039;A004039;)
call AbilityPreload(039;A009039;)
call UnitPreload(039;h004039;)
call UnitPreload(039;h005039;) //this is the dummy used in the spell
call FlushCustomPreloader()
endfunction
That's me preloading my hero, his abilities, dummy abilities and dummy units used in abilities. I used some debug messeges to make sure it was preloading, and it was.
So the problem is, when I use one of my spells (which has the dummy unit/spell itself preloaded) it lags the first time it is cast.
I would of though preloading them would fix that... Is this system just a failure or am I missing something?
Note: If I stop the spell from creating the dummy units (which I have preloaded!), there is no lag at all on the first cast.