System Rain

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
If you want to do this.. either hooking or calling function is needed.

Disadvantage :
Hook : Make CreateUnit becomes slower.
GroupAddUnit : Ugly interface.
 

quraji

zap
Reaction score
144
Disadvantage :
Hook : Make CreateUnit becomes slower.
GroupAddUnit : Ugly interface.

>Hook

Who would use a hook for this?

>GroupAddUnit

Even if the interface was extremely ugly (which it's not), it's inside a system...so who cares?


We've totally hijacked this thread :p
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
How about let the rain drops scatter instead of getting stuck in one place.
 

Kenny

Back for now.
Reaction score
202
I decided to test this again to see how well my computer could run WC3, and to see how many projectiles (rain drops) it should be handling before it starts to lag.

So at 400 rain drops, I had an amazing 13.9 frames per second (FPS drop of about 60.0). :thup:

This came as quite a relief to me, as now I know that even the most efficient system for moving units in quite a basic manner drops my frame rate that low. I also now know that my WIP projectile system isn't as terrible as I thought it was.

Oh and I tried this with 1000 rain drops and got an incredible, amazing, ridiculous... 0.2 frames per second!

Anywho, this system is really really cool. I could actually see if being used for a spell...

Attach a +hp% regen aura and a -hp% degen aura to the rain drops, set the rect to something small around the target area of the spell, and you have yourself a cool healing/damaging magical downpour.
 

Hatebreeder

So many apples
Reaction score
381
I wonder if the FPS drops, if you don't see all the rain drops...

Like, if you have 1000 drain drops going on but only see like 400 due to your restricted sight range.

Else, I'd only be seeing this system be used on games that have some effect on the environment.
 

Executor

I see you
Reaction score
57
Hm, I think in this case not to see all wouldn't help. As I experienced you can have 2 types of lag: One caused by the graphic board and one by the processor.

You (I ^^) gain graphic lags if there are to much visible (in your camera) heavy/big effects.

The other type is caused by to heavy calculations in the background and thats the case here.
 

Hero

─║╣ero─
Reaction score
250
Just for the author.

Set it to 2000 for testing purposes.

JASS:
private constant integer LIFESPAN_TICKS=2000 // Max raindrops, also.


2000Raindrops.png
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top