clumsy icon indicating copy to clipboard operation
clumsy copied to clipboard

New feature interest, bandwidth limiting effect ("cap")

Open RobertMcCormack opened this issue 8 years ago • 2 comments

I am interested in a simple bandwidth limiting effect. I have uncommented a section of Clumsy that contained a "cap" effect. This effect seems to have the correct logic. One issue that I see is a packet is always pushed from the local "cap" buffer. There is a comment in the "cap" process loop indicating that the local buffer packet will get stuck if a packet is not pushed during a process cycle. This seems to be the case if the code is modified to not output a packet every cap::process cycle.

Any insight into this "cap" effect effort / removal would be appreciated. Thanks, Bob

RobertMcCormack avatar Nov 16 '16 20:11 RobertMcCormack

Hi Bob, the 'Cap' function on master is broken atm. I'll need some time to implement it, but it won't happen soon as I get stuck on my day job :( Pull requests is always welcomed. You can look up the other issue that has a reference implementation if I remembered correctly.

Meanwhile you can always use Lag to simulate a capped bandwidth. It worked for me previously.

jagt avatar Nov 17 '16 14:11 jagt

I created a PR for this:

https://github.com/jagt/clumsy/pull/70

wish it could be included.

skywind3000 avatar Apr 13 '20 14:04 skywind3000