#is a 0 second delay on a delay chip an actual time ingame?
72 messages · Page 1 of 1 (latest)
Np
No, its the next Cv2 tick
A 0 second delay will output on the next Cv2 tick
If you run a delay for 5 seconds, it will run for 5 seconds, and after those 5 seconds, it will execute on the next Cv2 tick
Maybe they're referring to the 60hz thing everyone talks about where you use both outputs of a 0s delay?
I've been soooort of told that if you do it once it outputs at 60hz, as if it was delaying it by half a tick, but that if you do it any more than that it doesn't just keep improving and just attempts to do multiple executions in the same tick. Wasn't sure how it works but i stopped asking because nobody was able to explain why it works that way to me.
Yeah but CV2 ticks occur 60 times per second
Not entirely true
You will never see delta time be perfectly at 1/60 or 1/30
which is why its better to say “Next tick” not “In 1/60 of a second”
Oh, so CV2 is 60hz?
around 60hz
I always thought it was supposed to be 30hz and some weird jank allowed it to be 60hz
Update 30hz doesnt update 30 times a second
It updates once every other cv2 tick
It's supposed to update at 30hz though, but i get that it doesn't always work
No, Cv2 is supposed to be 60hz
Event Receiver (Update 30hz) is half of the tick speed
which, in theory, should be 30hz
i'm saying the Update 30hz is supposed to update 30 times per second
but in reality its around 20-40
It updates around 20-40 times a second
It outputs a signal once Every Other Cv2 Tick
It's supposed to be 30 though and just can't always be accurate, which is what i'm saying
Yeah, thats why the delta time of 1 / 30 is stupid
It is physically impossible for the chip to update perfectly 30 times a second in perfect order
Oh i was about to ask that, is the delta time not accurate?
it is disgustingly innacurate
its not delta time, at all
I thought it was meant to change with the frequency as it fluctuates
its 1 / 30
its litterally the reciprocal of 30
I believe this will be fixed next cv2 update, giving us working delta time
So it's just set to 0.03~ constantly
ahh okie
because yeah that literally has as much use as a random float variable or parse float 😆
Is there a particular reason it's been like that for so long? Or have they just not gotten around to it?
they didnt know about it
Or atleast they forgot about it until I brought it up lol
I've heard others mention making their own somehow, but i'm not sure how that would work, increment a variable by 1 constantly and then divide 1 by it at the change of each second?
ooooooof, i've heard people complain about it LOTS
Though that would give you results a little late
delta time is the time between executions
so you need a way to calculate the time between executions
Right, what i just said would be the average at the end of each second
you dont want the average
you want the time between the last frame and the current frame
Yeah, so how do people do it?
Time Get Precise Seconds, Float Variable, Event Receiver (Update 30hz), Subtract
and a delay chip?
why would you need a delay chip?
thats only if you want to calculate 60hz delta time
ah okie
So, save the current precise seconds, and in the following tick compare the current precise seconds to the saved one, rinse repeat?
Also random question, is there any benefit to making a "120hz" or higher execution? I understand that it'd just be double-executing each tick (or at least trying) but would there be any general use for that?
120hz doesnt exist
you cant go above tick speed
"120hz" just means "Execute twice every tick"
which also means double CPU
where as 60hz uses no more heat than 30hz, because they are both less than or equal to tickspeed, the only difference is that 60hz uses X amount of heat every Cv2 tick, and 30hz uses X amount of CPU heat every other CPU tick
That's what i said 😅
I'm asking if there's any general use for it, i just like knowing weird bits of information for stuff
doubling your cpu heat
You know what
a use is a use 😆
Too sketchy to be anything i'd wanna use in my own circuits but it's something i know now
One use could be for example having smoother movements, but yeah it would be more heat
It wouldn't make anything smoother, as it's not actually updating at twice the rate, just updating twice each tick at the same rate, so it would actually make movements more janky, having them stutter
Oh I thought u were talking about having a 120hz