<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>When using &#39;line()&#39; , the allegro app is bugging.</title>
		<link>http://www.allegro.cc/forums/view/589529</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 16 Jan 2007 00:00:06 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello all , </p><p>I&#39;m evert , and new to allegro. But i&#39;m using allegro for my school project that needs to be finished in a few weeks. I&#39;ve followed some allegro tutorials and I feld ready to start on my game.</p><p>So i started with selection stuff : drawing a selection box to select the units. But here comes the problem ; I&#39;m drawing that box with 4 lines(). </p><p>My code is allright and i&#39;m having the same problems on code that some people from the irc channel have written for me.</p><p>The &#39;game&#39; is just lagging like hell when i draw my selection box , also there is a big latency on the time my mouse moves , and the selection box is drawn on the screen. When i try it on a ubuntu live cd , it all works great.</p><p>So my code is just all-right <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />.</p><p>I&#39;m using gentoo linux , but I really don&#39;t know a solution or fix for this. Is there a list of required packages ? So i can check i&#39;m not missing a stupid package ?</p><p>Already thanks , evert
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Thu, 11 Jan 2007 23:19:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Install your grafic card driver.</p><p>You have an Nvidia, Ati ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Thu, 11 Jan 2007 23:21:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m drawing that box with 4 lines()
</p></div></div><p>
Why not a <span class="source-code"><a href="http://www.allegro.cc/manual/rect" target="_blank"><span class="a">rect</span></a><span class="k2">(</span><span class="k2">)</span></span>? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Thu, 11 Jan 2007 23:25:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>And do not draw directly to screen.</p><p>Draw to a buffer and blit the buffer onto the screen !
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Thu, 11 Jan 2007 23:28:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Wow , a lot of answers in a short period of time <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />. Thanks already.</p><p>I&#39;m having installed nvidia drivers , and it&#39;s working on the live cd wich even doesn&#39;t has got nvidia drivers.
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
evert@localhost ~/C++/GIP $ glxinfo |grep direct<br />direct rendering: Yes
</p></div></div><p>
So that&#39;s ok.</p><p>I&#39;m ofcourse using a buffer , so not directly drawing to the screen. And without a buffer it also wouldn&#39;t have worked on that live cd.</p><p>Why not using a rect() ? The same problem is going on with a rect (only a bit less lagging) , and i&#39;m going to implement in the future still some elements why i need that line in place of rect().
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Thu, 11 Jan 2007 23:35:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m evert
</p></div></div><p>
Prove it! <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>Anyway, do you have some example code that shows the problem (the smallest code sample you can write that compiles)? It&#39;s hard to say what&#39;s wrong without actually seeing the code in question.</p><p>Aside, what version of Allegro are you using?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Fri, 12 Jan 2007 02:27:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Evert+1 !</p><p>Yeah. Now we do need some code to see what is going wrong.</p><p>_
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Fri, 12 Jan 2007 14:54:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok , here some code what normally needs to work. Like i said , the problem isn&#39;t the code ... Because it is working on other systems / live cd&#39;s.</p><p><a href="http://www.pastebin.be/5164/">http://www.pastebin.be/5164/</a></p><p>edit : Hmm i see i&#39;m not using &#39;line()&#39; in this code (it isn&#39;t even my code , i got it from mimix on irc for testing) but this code has got the same lagging problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Fri, 12 Jan 2007 23:30:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can&#39;t reproduce the problem on my system (KDE/gentoo with an oldish kernel).<br />I&#39;m inclined to say it&#39;s a problem with the way your system is set up rather than a problem with your code. Are there any other processes using up CPU time in the background?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Fri, 12 Jan 2007 23:43:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I know it&#39;s a problem with my gentoo install, because with a live cd and by other people it is working....</p><p>There is no other proces using my cpu power , direct rendering is enabled , ... So i really can&#39;t see what&#39;s the problem <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Sat, 13 Jan 2007 00:04:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It worked fine for me, so I don&#39;t know what your problem is, but try:</p><p>1.) Compile with -O3<br />2.) Update your whole system<br />3.) Allegro uses software rendering, not OpenGL, so your graphics drivers are irrelevant (AFAIK...)<br />4.) Show us the compile command you are using
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (James Stanley)</author>
		<pubDate>Sun, 14 Jan 2007 14:58:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I hope you haven&#39;t re-emerged your GUI library like I told you on IRC, because I understood you were talking about selection boxes in GTK / Qt.</p><p>In case, I&#39;m sorry for my misunderstanding <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marco Radaelli)</author>
		<pubDate>Sun, 14 Jan 2007 16:31:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m compiling it with the following command : <br /> g++ main.cpp unit.cpp 2dmath.cpp input.cpp gui.cpp game.cpp `allegro-config --cflags --static` -o risk</p><p>Hehe no problem about the miscomprehension , i&#39;ve got recompiled my whole KDE , but that was not only and just for allegro. I needed it to do for some new use-flags etc.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Mon, 15 Jan 2007 22:27:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why are you static linking?</p><p>I&#39;m not saying it&#39;s bad, just asking why. I usually only static link when I distribute a binary.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (James Stanley)</author>
		<pubDate>Mon, 15 Jan 2007 22:42:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>To be honest , i did it at the very first , when i got the &#39;compile command&#39; from the allegro IRC channel. I was new to allegro and i didn&#39;t knew how to compile stuff with it.</p><p>After that i kept using the static , because it&#39;s easy to test that executable somewhere else. It&#39;s not doing some bad stuff as far as I know ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Mon, 15 Jan 2007 23:30:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>so is it the mouse causing the delay or the drawing?</p><p>I suggest you remove stuff and retry to narrow it down, e.g. is it the timer, the rect, the drawing buffer, the mouse, etc.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Mon, 15 Jan 2007 23:53:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>But the same problem is happening with real basic test code they gave me at the Allegro IRC channel , so the problem isn&#39;t the code , neither my system. (I guess something in my gentoo).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (evert edel)</author>
		<pubDate>Tue, 16 Jan 2007 00:00:06 +0000</pubDate>
	</item>
</rss>
