<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>allegro timer effeciency</title>
		<link>http://www.allegro.cc/forums/view/514778</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 01 Aug 2005 02:35:10 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>do the allegro timers create much overhead ?<br />if i dont use them at all could i expect much better timing in the rest of the app ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Sun, 31 Jul 2005 15:08:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Uneducated guess: no to both questions.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Sun, 31 Jul 2005 15:11:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Since Allegro timers use threads and are executed at most as fast as OS swiches tasks then I think they might not be the best thing to time stuff. Afaik on XP and most *nixes timers run around evert 10msec at most, not much faster. The speed impact they have is probably quite small unless you have vast amount of timers updating hudreds of times per second.</p><p>If all you need is some number that automatically gets incremented as fast and accurately as possible then best bet would be to use system specific things like gettimeofday and query_performance counter.</p><p>[edit]<br />It&#39;s somewhat-educated guess. I haven&#39;t done exact timings but allegro timers didn&#39;t give me enough precision for profiling so I used alternatives I said earlier.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Sun, 31 Jul 2005 15:21:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>if i dont use them at all could i expect much better timing in the rest of the app ?</p></div></div><p>
If you don&#39;t ever call install_timer, or call anything that needs a timer (keyboard, mouse, sound, midi.. anything that processes in the background), then you&#39;ll probably save on the creation of a thread. Though it won&#39;t do much for performance since the thread is going to be sleeping more often than not, anyway. All the other background processes are going to have a significantly bigger impact than that one thread.</p><p>In otherwords, the savings would be negligible.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Sun, 31 Jul 2005 15:55:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro&#39;s timers on Win32 are very inaccurate but do have a low overhead.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gillius)</author>
		<pubDate>Sun, 31 Jul 2005 22:40:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hmm, doesnt the keyboard driver use a timer? I&#39;m pretty sure that the timer system is inited even if you dont ask it to.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 01 Aug 2005 00:29:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">I said:</div><div class="quote"><p>If you don&#39;t ever call install_timer, or call anything that needs a timer (<b>keyboard</b>, mouse, sound, midi.. anything that processes in the background)</p></div></div><p>
<img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Mon, 01 Aug 2005 02:33:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oops <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 01 Aug 2005 02:35:10 +0000</pubDate>
	</item>
</rss>
