<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.openlighting.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=195.146.245.223</id>
		<title>wiki.openlighting.org - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.openlighting.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=195.146.245.223"/>
		<link rel="alternate" type="text/html" href="https://wiki.openlighting.org/index.php/Special:Contributions/195.146.245.223"/>
		<updated>2026-09-11T01:11:41Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://wiki.openlighting.org/index.php?title=Port_Throttling&amp;diff=3973</id>
		<title>Port Throttling</title>
		<link rel="alternate" type="text/html" href="https://wiki.openlighting.org/index.php?title=Port_Throttling&amp;diff=3973"/>
				<updated>2011-10-25T20:42:33Z</updated>
		
		<summary type="html">&lt;p&gt;195.146.245.223: /* Current Throttled Ports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Sometimes the frame rate from Output Ports has to be rate limited. The ''ThrottledOutputPortDecorator'' allows rate limits to be configured on OutputPorts using a [http://en.wikipedia.org/wiki/Token_bucket Token Bucket Algorithm].&lt;br /&gt;
&lt;br /&gt;
The following example shows applying the ''ThrottledOutputPortDecorator'' to an Output port to rate limit the output.&lt;br /&gt;
&lt;br /&gt;
Before (no throttling):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OutputPort *output_port = new UsbProOutputPort(this, 0, &amp;quot;&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After (throttle to 190 frames per second)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
OutputPort *output_port = new ThrottledOutputPortDecorator(&lt;br /&gt;
      new UsbProOutputPort(this, 0, &amp;quot;&amp;quot;),  // the port to throttle&lt;br /&gt;
      plugin_adaptor-&amp;gt;WakeUpTime(),  // the select server wake up time&lt;br /&gt;
      10,  // start with 10 tokens in the bucket                                                                                                                  &lt;br /&gt;
      190);  // throttle to 190 frames per second&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When port throttling is in place, messages will appear at log level 4 similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PortDecorators.h:48: Port rated limited, dropping frame&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Current Throttled Ports ===&lt;br /&gt;
&lt;br /&gt;
* [[DMX USB Pro]] - 190 frames/second&lt;br /&gt;
* [[Arduino RGB Mixer]] - 20 frames/second&lt;br /&gt;
* [[DMX-TRI]] - 40 frames/second&lt;br /&gt;
&lt;br /&gt;
For some devices, values can be changed in ~/.ola/ola-usbserial.conf&lt;/div&gt;</summary>
		<author><name>195.146.245.223</name></author>	</entry>

	</feed>