Timeline for Method that calculates the estimated number of attacks
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 12, 2018 at 13:43 | answer | added | Flater | timeline score: 2 | |
Apr 10, 2018 at 19:33 | comment | added | Smith | Not using Unity. Did a bit of math and was able to change the whiles into ifs. Thank you both. | |
Apr 10, 2018 at 8:28 | comment | added | maxb |
If you're using Unity, I'd suggest using Mathf instead of Math , since it is designed for 32 bit floats. Other than that, your while loops are the only bottlenecks, as @juvian noted. Without them, my guess is that the code runs in <1ms.
|
|
Apr 9, 2018 at 20:20 | comment | added | juvian | while (endDuration < unit.ForeSwing) loop can be removed with a bit of math, not sure how many times can the loop iterate to check if its worth removing | |
Apr 9, 2018 at 18:24 | history | tweeted | twitter.com/StackCodeReview/status/983410259980103680 | ||
Apr 9, 2018 at 14:03 | review | First posts | |||
Apr 9, 2018 at 14:50 | |||||
Apr 9, 2018 at 13:58 | history | asked | Smith | CC BY-SA 3.0 |