{"author_name": "GreaseMonkey", "cat": "LD #23", "comments": [], "epoch": 1334905260, "likes": 0, "metadata": {"p_key": "58954", "p_author": "GreaseMonkey", "p_authorkey": "2396", "p_urlkey": "94703", "p_title": "Got some AVX practice in", "p_cat": "LD #23", "p_event": "LD23", "p_time": "1334905260", "p_likes": "0", "p_comments": "0", "p_status": "UPD5", "us_key": "2396", "us_name": "GreaseMonkey", "us_username": "greasemonkey", "event_start": "1334880000", "event_key": "10", "event_name": "LD23"}, "text": "<p>So I made an incomplete 2d grid caster engine (as in, you can&#8217;t actually move around because I cannot be bothered relearning how to do events yet). My use of AVX (read: SSE but better) wasn&#8217;t particularly helpful, but being able to code with AVX compiler intrinsics might come in handy for if I make a ridiculously spammy bullet hell shooter.</p>\n <p>So here it is: <a title=\"AVX LOL\" href=\"https://gist.github.com/2427184\">https://gist.github.com/2427184</a></p>\n <p>Just look at the code for a bit and read the render_raycast_avx() function. Tell me if it makes any sense. Thanks.</p>\n <p>If you would like to compile this: gcc -mavx -O2 -g sdlavx2cgridcast.c -o sdlavx2cgridcast `sdl-config &#8211;cflags &#8211;libs`</p>\n <p>The -mavx is important because otherwise there are no compiler intrinsics available, and the -O2 is important because otherwise the AVX compilation is really piss-poor.</p>\n <p><strong>I highly recommend a 64-bit OS for this one.</strong></p>\n <p>&nbsp;</p>", "time": "April 20th, 2012 2:01 am", "title": "Got some AVX practice in"}