<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>question to allegro developpers</title>
		<link>http://www.allegro.cc/forums/view/586284</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 07 Jul 2006 21:44:44 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello, I m using allegro as graphical library for a theatre applications, remoting lights on stage.<br />( adress in signature)</p><p>I m working under windows and using mingw32 and dev-cpp.<br />I notice that going to another application was freezing timers and action of my program. I need to point and click on it to unfreeze it....</p><p>So i have 2 questions:<br />First, is there a way to unavoid this fact ?<br />Second, I want to use now the OSC protocol wich using UPD and permits to interact in real time with other programms ( on same computer or other computers):<br /><a href="http://www.audiomulch.com/~rossb/code/oscpack/">http://www.audiomulch.com/~rossb/code/oscpack/</a></p><p>I want my program to be a server, waiting from orders in this protocol. As my program is controlling lights, it needs to be activ everytime. THATS THE MAIN POINT.<br />I want to be sure before working on this part  that allergo structure do not make inherent troubles.</p><p>So, this is a real question.</p><p>I m very happy to use allegro. It permits me to design and create an application wich is beautifull by aspect and by use. That must be said to community of developpers from time to time ( <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /> )</p><p>sincerely yours, christoph
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (karistouf)</author>
		<pubDate>Wed, 05 Jul 2006 13:15:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Take a look at <span class="source-code"><a href="http://www.allegro.cc/manual/set_display_switch_mode" target="_blank"><span class="a">set_display_switch_mode</span></a><span class="k2">(</span><span class="k2">)</span></span><br />[edit]<br />And for the second question, maybe you want to looks for threads if your server is going to answer <b>separately</b> different requests
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marco Radaelli)</author>
		<pubDate>Wed, 05 Jul 2006 13:23:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>See here in the documentation: <a href="http://alleg.sourceforge.net/onlinedocs/en/alleg008.html#set_display_switch_mode">http://alleg.sourceforge.net/onlinedocs/en/alleg008.html#set_display_switch_mode</a></p><p>What you want is something like:
</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">if</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/set_display_switch_mode" target="_blank"><span class="a">set_display_switch_mode</span></a><span class="k2">(</span>SWITCH_BACKGROUND<span class="k2">)</span><span class="k2">)</span>
    <a href="http://www.allegro.cc/manual/set_display_switch_mode" target="_blank"><span class="a">set_display_switch_mode</span></a><span class="k2">(</span>SWITCH_BACKAMNESIA<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 05 Jul 2006 13:23:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>thanks !!!</p><p>it s good to know this answer.</p><p>definitively allegro is surprising ....<br /><img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (karistouf)</author>
		<pubDate>Wed, 05 Jul 2006 13:45:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>excuse my frenglish <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>use  set_display_mode()  for constant running application, but be aware that allegro is a single threaded application, and not good for data processing of UDP and OSC  when doing graphics at the same time.</p><p>This type of application would be better suited to multi-threaded, so that allegro will not effect your data processing,  allegro would be useful as a graphical interface only.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Thu, 06 Jul 2006 01:24:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>excuse also my enfrench <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /><br />sometimes I m not exactly understanding everything...
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
be aware that allegro is a single threaded application, and not good for data processing of UDP and OSC when doing graphics at the same time.
</p></div></div><p>

In fact, It will run as server, receive orders. <br />Real Time here with this protocol takes the time of:<br />- emitting an ascii bundle order, from the client<br />- receiving the bundle and slaching it in key words from server<br />- interpreting the key word and doing them after the time_wait specified in the bundle ( time_wait for letting the server its time to read the string)</p><p>my program will be server and is already refreshing at 50/sec minimum. All graphics are informations, not complex treatment. Yes, i m using allegro as graphical GUI ( and its very confortable and easy) and I m using its function of timer. Only one in  use.</p><p>So, after all my bla bla <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />  I would like to understand why you are talking about multithreading ? A single explanation ( not technical) would very interresting.<br />I did nt put my eyes inside udp for the moment, and will use the osc as ressource.</p><p>I m very interrested by your advise.</p><p>waiting for news <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>pleasure, christoph
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (karistouf)</author>
		<pubDate>Thu, 06 Jul 2006 22:23:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>are you sending data from the timer handler ?</p><p>how can you have accurate times for OSC packets if your busy drawing allegro graphics.</p><p>How time critical is sending the data ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Fri, 07 Jul 2006 21:44:44 +0000</pubDate>
	</item>
</rss>
