Open Zyzyl opened 12 months ago
It appears that all pulses sent when there are no bucketed impulses (CurrentCapacity
of 0) will always output through the overflow instead of the pulse.
SHIFTY-LAPTOP - 2024.1.31.744 - 2024-02-01 15_43_57.log
It doesn't appear that there is any relevant information recorded in the log file.
Hopefully this should be an easy fix. This issue otherwise seems to have everything it needs now, @Frooxius @ProbablePrime.
agreed, ill take a look
Describe the bug?
The behaviour of the
Pulse
andOverflow
pulse outputs is incorrect if both are connected to downstream nodes. Specifically, theOverflow
output pulses incorrectly if theCurrentCapacity
is 0 and theTrigger
input receives a pulse. The pulse in this situation should come fromPulse
instead, as it does if only thePulse
output is connected to a downstream node. The incorrect pulse fromOverflow
also doesn't occur if only theOverflow
output is connected to downstream nodes - of course, it's impossible to test if thePulse
output fires correctly in this context.To Reproduce
Spawn a LocalLeakImpulseBucket node and set the
Interval
input to 1 second and theMaximumCapacity
to 3.Pull out a pulse display node from both the
Pulse
output and theOverflow
output of the LocalLeakyImpulseBucket node. Pulsing theTrigger
input once causes one immediate output (assuming current capacity is 0) from theOverflow
output. Compare this incorrect behaviour to the expected behaviour if a pulse output is only connected to one of eitherPulse
orOverflow
.This behaviour can be conveniently explored in this simple world: resrec:///U-Zyzyl/R-1121af3e-6e58-47ec-9978-180113430a42
Expected behavior
The
Overflow
output should only pulse when theTrigger
input is pulsed and theCurrentCapacity
is equal toMaximumCapacity
. This should not depend on the specific configuration of downstream connections.Screenshots
No response
Resonite Version Number
2023.10.13.743
What Platforms does this occur on?
Windows
What headset if any do you use?
HP Reverb G2, Desktop mode
Log Files
No response
Additional Context
No response
Reporters
Zyzyl (zyzylian on Discord) marsmaantje