<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to build a BVH – part 7: Consolidate	</title>
	<atom:link href="https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/feed/" rel="self" type="application/rss+xml" />
	<link>https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/</link>
	<description>Links, Code &#38; Articles</description>
	<lastBuildDate>Mon, 20 May 2024 12:49:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Patrick Towles		</title>
		<link>https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/#comment-2792</link>

		<dc:creator><![CDATA[Patrick Towles]]></dc:creator>
		<pubDate>Fri, 03 Jun 2022 21:18:29 +0000</pubDate>
		<guid isPermaLink="false">https://jacco.ompf2.com/?p=1273#comment-2792</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/#comment-2791&quot;&gt;Patrick Towles&lt;/a&gt;.

He handled it using bitwise or, I will play around with it some more tonight.]]></description>
			<content:encoded><![CDATA[<p>He handled it using bitwise or, I will play around with it some more tonight.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick Towles		</title>
		<link>https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/#comment-2791</link>

		<dc:creator><![CDATA[Patrick Towles]]></dc:creator>
		<pubDate>Fri, 03 Jun 2022 21:04:50 +0000</pubDate>
		<guid isPermaLink="false">https://jacco.ompf2.com/?p=1273#comment-2791</guid>

					<description><![CDATA[Pretty much, I noticed it was similar to Matt Godbolt issue at the end of his talk https://youtu.be/HG6c4Kwbv4I.
From my understanding basically, the branch predictor has to make 2 guesses, is &quot;a&quot; greater than almost zero, and is &quot;a&quot; less than almost zero, it&#039;s screwed either way it guesses most of the time, the second way is it is only predicting is &quot;a&quot; almost zero.

Though I could be completely wrong, in which case I welcome the chance to learn more.]]></description>
			<content:encoded><![CDATA[<p>Pretty much, I noticed it was similar to Matt Godbolt issue at the end of his talk <a href="https://youtu.be/HG6c4Kwbv4I" rel="nofollow ugc">https://youtu.be/HG6c4Kwbv4I</a>.<br />
From my understanding basically, the branch predictor has to make 2 guesses, is &#8220;a&#8221; greater than almost zero, and is &#8220;a&#8221; less than almost zero, it&#8217;s screwed either way it guesses most of the time, the second way is it is only predicting is &#8220;a&#8221; almost zero.</p>
<p>Though I could be completely wrong, in which case I welcome the chance to learn more.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jbikker		</title>
		<link>https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/#comment-2790</link>

		<dc:creator><![CDATA[jbikker]]></dc:creator>
		<pubDate>Fri, 03 Jun 2022 13:57:50 +0000</pubDate>
		<guid isPermaLink="false">https://jacco.ompf2.com/?p=1273#comment-2790</guid>

					<description><![CDATA[I am surprised that it makes such a big difference, but indeed, the abs should help: the amount of branches is reduced from two to one. Does that match your assumption?]]></description>
			<content:encoded><![CDATA[<p>I am surprised that it makes such a big difference, but indeed, the abs should help: the amount of branches is reduced from two to one. Does that match your assumption?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick Towles		</title>
		<link>https://jacco.ompf2.com/2022/05/20/how-to-build-a-bvh-part-7-consolidate/#comment-2789</link>

		<dc:creator><![CDATA[Patrick Towles]]></dc:creator>
		<pubDate>Fri, 03 Jun 2022 13:34:30 +0000</pubDate>
		<guid isPermaLink="false">https://jacco.ompf2.com/?p=1273#comment-2789</guid>

					<description><![CDATA[Following long in rust and found that if you change the early out in IntersectTriangle form:
if (a &#062; -0.0001f &#038;&#038; a &#060; 0.0001f) return;
to:
if (abs(a) &#060; 0.0001f) return;
it was 8% faster, I have a theory as to why, but want to see you see the same.

Love the series, thank you.]]></description>
			<content:encoded><![CDATA[<p>Following long in rust and found that if you change the early out in IntersectTriangle form:<br />
if (a &gt; -0.0001f &amp;&amp; a &lt; 0.0001f) return;<br />
to:<br />
if (abs(a) &lt; 0.0001f) return;<br />
it was 8% faster, I have a theory as to why, but want to see you see the same.</p>
<p>Love the series, thank you.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
