<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>allegro 4.4 ASM build possible ?</title>
		<link>http://www.allegro.cc/forums/view/603730</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 11 Apr 2010 23:31:12 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I used to build allegro 4.0 and 4.2 with MSCV6 and djgpp for the assembler stuff. Is it possible to setup 4.4 the same with cmake ? I have small problems with my old game code which is working perfectly fine with 4.0/4.2 ASM builds but not with a C only build. I tried 4.2 and 4.4 C only builds without success.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Larkin)</author>
		<pubDate>Sat, 10 Apr 2010 13:26:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The assembler stuff has not been maintained in so long, the C code is faster, and can be broken occasionally. Which is why it was removed from 4.4. There is no more ASM in 4.4 afaik. At least not in the Windows port.</p><p>You&#39;ll have to make sure you recompile your game when you switch allegro versions. That should get rid of the issues. And if it doesn&#39;t, try defining ALLEGRO_NO_ASM+ALLEGRO_USE_C (though that should be the default in 4.4).</p><p>After all that, and it still doesn&#39;t work, please describe the problems you are having in detail.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Sat, 10 Apr 2010 14:22:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603730/860141#target">Larkin</a> said:</div><div class="quote"><p>Is it possible to setup 4.4 the same with cmake ?</p></div></div><p>
Maybe if you modify the CMake files. You really shouldn&#39;t though.<br />As I asked in the other thread, do the Allegro examples show the same problem you&#39;re experiencing?<br />Matthew pointed out something I hadn&#39;t thought of: do you use any additional libraries and external addons? Does the problem show up with vanilla Allegro? Did you recompile all the external addons you&#39;re using for 4.4?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sat, 10 Apr 2010 17:25:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I use the alfont library and did recomple everything. Examples do not show same problems. </p><p>I have some 3D code, written by a friend which is creating a 3D landscape. I can view the landscape from different angles, redrawing the map. I did put this on different keys. If I toggle between these two views very fast I get a black landscape sometimes. The behavior is not consistent though, as often the map is drawn correctly but sometimes it is not. This is with C only builds of 4.2 and 4.4, with ASM builds of 4.0 and 4.2 the problem <u>does not arise</u>.</p><p>Here are screenshots. First two show map on different angles, the black hex fields are ok as I use fog of war. Third shows what happens if it fails to redraw correctly. Notice that the sprites on top of the landscape are drawn, just the 3D stuff is missing. The map bitmap is cleared to black before drawing stuff.</p><p><span class="remote-thumbnail"><span class="json">{"name":"scape1ok.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/4\/d48188d2a664058bd512debb8449060b.png","w":806,"h":625,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/4\/d48188d2a664058bd512debb8449060b"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/d/4/d48188d2a664058bd512debb8449060b-240.jpg" alt="scape1ok.png" width="240" height="186" /></span><br /><span class="remote-thumbnail"><span class="json">{"name":"scape2ok.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/f\/1f821ebacd05550bf8b3c17c826b7cdb.png","w":806,"h":625,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/f\/1f821ebacd05550bf8b3c17c826b7cdb"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/1/f/1f821ebacd05550bf8b3c17c826b7cdb-240.jpg" alt="scape2ok.png" width="240" height="186" /></span><br /><span class="remote-thumbnail"><span class="json">{"name":"scape3bad.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/b\/4bcbe4f876d16ef41d35da1af5941a58.png","w":806,"h":625,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/b\/4bcbe4f876d16ef41d35da1af5941a58"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/4/b/4bcbe4f876d16ef41d35da1af5941a58-240.jpg" alt="scape3bad.png" width="240" height="186" /></span></p><p>The 3D code is ugly and I&#39;m bad in 3D math so a friend had to do it for me.<br />It is too big to be included here (64k limit), here is the link. </p><p><a href="http://www.viciousbyte.de/files/3dmap.c"> C source</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Larkin)</author>
		<pubDate>Sun, 11 Apr 2010 11:50:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603730/860254#target">Larkin</a> said:</div><div class="quote"><p>It is too big to be included here (64k limit), here is the link.</p></div></div><p>
Unfortunately that&#39;s not a complete program that someone can compile and run to try and duplicate the problem. Looking at a section of your source code will not be enough to find the problem, I think.<br />For someone to even attempt to debug this, we&#39;ll need a program that we can run and test. Preferably the smallest one we can get.<br />I know it&#39;s a hassle and annoying, but could you check whether the problem can be reproduced by a program that just draws the 3D elements? Basically simplify the code as much as possible.<br />Is there some systematics to when the problem occurs? Specific viewing angles, say?<br />Try logging the output from the polygon drawing functions (warning: potentially lots of data, make sure you can reproduce the bug with, say, a single keypress after the program loads or you&#39;ll have a ton of data to wade through).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 11 Apr 2010 18:35:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I posted the code so someone can check which allegro functions are involved. I thought the fact that the ASM version of allegro made no problems is a hint that the problem is most likely allegro related. I will see wether I can isolate the critical code in a simple enough example but most likely it will take to much time compared to the small problem. Nobody will repeatedly press the keys to change the view angle so fast - except me. <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /></p><p>Thanks for listening.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Larkin)</author>
		<pubDate>Sun, 11 Apr 2010 20:54:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603730/860286#target">Larkin</a> said:</div><div class="quote"><p>I posted the code so someone can check which allegro functions are involved. I thought the fact that the ASM version of allegro made no problems is a hint that the problem is most likely allegro related.</p></div></div><p>
Oh, it probably is. But without a test case that shows the problem, it&#39;s still almost impossible to debug.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>Nobody will repeatedly press the keys to change the view angle so fast - except me. <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /></p></div></div><p>
You&#39;d be amazed. But the speed at which the angle is changed should make no different, because the drawing operation can only depend on the actual value of the angle, not on the time elapsed between its current value and the previous value.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 11 Apr 2010 22:07:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603730/860301#target">Evert</a> said:</div><div class="quote"><p>
You&#39;d be amazed. But the speed at which the angle is changed should make no different, because the drawing operation can only depend on the actual value of the angle, not on the time elapsed between its current value and the previous value.
</p></div></div><p>

I thought the same but I can reproduce the bug much better when repeatedly calling the drawing operation. I know it makes no sense if it is single threaded and no other thread can interfere but it is what I experience. I get the best bug reproduction when hammering the same key = drawing with same angle. <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /> </p><p>I destroy and recreate the map bitmap with every draw operation and would think it is a bug in my code but it worked flawlessly with allegro 4.0 ASM for nearly 7 years. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Larkin)</author>
		<pubDate>Sun, 11 Apr 2010 23:31:12 +0000</pubDate>
	</item>
</rss>
