#How to make a 30 hz receiver send executions slower

13 messages · Page 1 of 1 (latest)

slow tusk
#

Divide (1/n)

n being the Frequency/Executions Per Second

Float Variable
Greater or Equal (the chip, not either)
If
Time Get Precise Seconds
Subtract
Event Reciever (Update 30Hz)

Event Reciever wired into the If (exec)

Greater or Equal wired into the If (condition)

Time Get Precise Seconds wired into the Float Variable and top of Subtract

Float Variable wired into the bottom of Subtract

Subtract wired into the top of Greater or Equal

Divide wired into bottom of Greater or Equal

If (Then) wired into Float Variable
Else into nothing

#

@sleek crane

barren oyster
#

@sleek crane

#

The value on the Add chip is how often it executes

tight dew
#

Heres an easier way to do this, and a cheaper way, @slow tusk @sleek crane @barren oyster

Lets say you want something to run at 1/60th tickspeed (aka 1/60th of 60hz)

An easy way to do this would be to set an Int Variable to itself + 1, modulo 60
Them, you can use an Exec Integer Switch with the output 0
Failed will output at 59/60th of tickspeed
0 will output at 1/60th of tickspeed

This works for alot of other things

For example, if you want 1/2 tickspeed from tickspeed, set the int variable to itself + 1 mod 2, and then use both Failed and 0 will output at 1/2 tickspeed

This is how I get my 2 15hz, 2 30hz, and 1 60hz channels
I set an int variable to itself + 1 mod 4
Failed, 0, 1, 2 all output at 1/4 tickspeed

teal mulch
#

is there something wrong with the delay cancel method?

tight dew
teal mulch
#

oh really?

tight dew
#

I say "hertz" in my method, but its not hertz
its just dividing tickspeed, this is why I call it tickspeed

By splitting it into 4 channels, you turn tickspeed into 1/4 tickspeed
If you are using 30hz, aka, half tickspeed, and split it into 4 channels, its 1/8 tickspeed

pastel sentinel
#

why exactly are we not using a delay

barren oyster
pastel sentinel
#

uh ok

barren oyster