[Script] NoSlowDown
-
@As丶One I think
timer.hasTimePassed(80)
can be replaced with!(mc.thePlayer.tickExisted & 3)
PS: &3 equals %4, this means when tickExisted is 4, 8, 12, 16... return true, and 1 tick == 20ms -
1 tick = 50ms
-
@Kasumi_Scarlet But why would you use BITWISE AND instead of Remainder, we're not a freakin' computers to do 010101010 operations in our minds. You literally have to search it up to use it instead of just using Remainder that doesn't make the code longer and keeps it readable. It only makes sense using BITWISE NOT to me with indexOf since ~-1 will return false every other number true.
-
@Aftery said in [Script] NoSlowDown:
@CzechHek said in [Script] NoSlowDown:
@Kasumi_Scarlet But why would you use BITWISE AND instead of Remainder, we're not a freakin' computers to do 010101010 operations in our minds. You literally have to search it up to use it instead of just using Remainder that doesn't make the code longer and keeps it readable. It only makes sense using BITWISE NOT to me with indexOf since ~-1 will return false every other number true.
CzechHek
Afteri
-
@CzechHek Oh I think it's true. I use
~array.indexOf(e)
too.
My opinion is just that make codes run more faster(although a little). Maybe we have different habit about using byte operators& | ^ ~
. And that's why I use SHL, SHR, OR on Colors, insteadof calculate strange numbers and to Strings -
Are you sure that it matters when you are running low-performance Nashorn?
-
This post is deleted!