<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>dmurph.com posts</title>
    <link>https://www.dmurph.com/</link>
    <description>Projects, thoughts, and rambling by Daniel Murphy.</description>
    <language>en</language>
    <pubDate>Wed, 24 Jun 2026 00:00:00 GMT</pubDate>
    <atom:link href="https://www.dmurph.com/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Physics of Memory</title>
      <link>https://www.dmurph.com/posts/2026/06/ecs_vs_oop_benchmark/ecs_vs_oop_benchmark.html</link>
      <description>&lt;p&gt;I’ve heard that many algorithms, like sorting, are improved quite a bit when the accessed data has high memory-locality (e.g. the CPU can load all of the relevant information in it’s L1/L2 cache for processing, instead of hitting RAM). A common way to work with this is using the Entity Component System (ECS) software architecture. However, it can be difficult to achieve this memory layout for interpreted or OOP languages (Java, Python, Javscript), as they often don’t offer the developer as much control over their object memory location. My question is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Is it possible to use an ECS-style architecture in Javascript? And for applicable operations, does that actually do better than objects + V8’s garbage collection?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;To test this, I created a complex-enough benchmark of… “balls bouncing around in a box”! This follows standard 2d physics engine techniques:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A “&lt;strong&gt;broad-phase&lt;/strong&gt;” collision step (AKA “do bounding boxes intersect?”)&lt;/li&gt;
&lt;li&gt;A “&lt;strong&gt;narrow-phase&lt;/strong&gt;” collision step (AKA “given these intersecting boxes, resolve collisions!”)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And of course, I got very carried away and ended up creating a ton of benchmark types below. Try it!&lt;/p&gt;
&lt;!--more--&gt;
&lt;h2 id=&quot;background-what-is-ecs&quot; tabindex=&quot;-1&quot;&gt;Background - What is ECS?&lt;/h2&gt;
&lt;p&gt;If you’ve spent any time in game development, you’ve probably heard of &lt;strong&gt;Entity Component System (ECS)&lt;/strong&gt;. If OOP is a row-based database (where each object stores every attribute in one memory chunk), ECS is a column-based database, storing each attribute (or collection of attributes) in separate column arrays.&lt;/p&gt;
&lt;p&gt;Put another way (and ou can probably find much better descriptions of ECS elsewhere)… instead of building complex class hierarchies like a &lt;code&gt;GameEntity&lt;/code&gt; that inherits from &lt;code&gt;MovingObject&lt;/code&gt; which inherits from &lt;code&gt;PhysicalObject&lt;/code&gt; etc, ECS breaks everything down into three distinct concepts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Entities&lt;/strong&gt;: These are nothing more than unique integer IDs. They don’t contain any data or behavior.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Components&lt;/strong&gt;: Plain data structures that represent individual facets of state (e.g. &lt;code&gt;Position&lt;/code&gt;, &lt;code&gt;Velocity&lt;/code&gt;, &lt;code&gt;Color&lt;/code&gt;). They contain no logic. Each entity can have a dynamic set of components, from 0 to all.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Systems&lt;/strong&gt;: Functions or loops that execute the game logic. They query entities given a specific set of components to then operate on that data.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;benchmark-choices&quot; tabindex=&quot;-1&quot;&gt;Benchmark Choices&lt;/h2&gt;
&lt;p&gt;I went overboard and tested across five dimensions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Language&lt;/strong&gt;: &lt;strong&gt;Javascript&lt;/strong&gt; (testing V8 engine optimizations &amp;amp; TypedArrays) vs. &lt;strong&gt;WASM&lt;/strong&gt; (AssemblyScript for extreme memory control).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Architecture&lt;/strong&gt;: &lt;strong&gt;Traditional OOP&lt;/strong&gt; (arrays of object references) vs. &lt;strong&gt;ECS&lt;/strong&gt; (cache-friendly Structure of Arrays).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Broad-phase&lt;/strong&gt;: &lt;strong&gt;Spatial AVL Tree&lt;/strong&gt; ( &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mi&gt;log&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N &#92;log N)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.1667em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mop&quot;&gt;lo&lt;span style=&quot;margin-right:0.0139em;&quot;&gt;g&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.1667em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; balanced tree) vs. &lt;strong&gt;Sweep &amp;amp; Prune&lt;/strong&gt; (sort on X-axis, sweep for overlaps).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sorting Strategy (for S&amp;amp;P)&lt;/strong&gt;: Tested &lt;strong&gt;Insertion Sort&lt;/strong&gt; (the textbook favorite for nearly-sorted data), &lt;strong&gt;Hybrid Quicksort&lt;/strong&gt;, a zero-copy &lt;strong&gt;Hybrid Mergesort&lt;/strong&gt;, and JS &lt;strong&gt;Native&lt;/strong&gt; &lt;code&gt;Array.sort()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Motion Coherence&lt;/strong&gt;: &lt;strong&gt;Wandering&lt;/strong&gt; (smooth movement; array stays nearly sorted), &lt;strong&gt;Erratic&lt;/strong&gt; (random teleporting; extreme cache thrashing), and &lt;strong&gt;Static&lt;/strong&gt; (zero motion but with permanent collisions; isolates pure memory read speed with some collisions).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Anyways, let’s see how it works! This is hosted on &lt;a href=&quot;https://github.com/dmurph/ecs-on-web&quot;&gt;GitHub&lt;/a&gt; if you want to play around with it.&lt;/p&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://www.dmurph.com/posts/2026/06/ecs_vs_oop_benchmark/ecs.css&quot; /&gt;
&lt;div class=&quot;ecs-iframe-container&quot;&gt;
  &lt;iframe src=&quot;https://dmurph.github.io/ecs-on-web/?embed&quot; class=&quot;ecs-iframe&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;script&gt;
  console.log(&#39;[BLOG-PARENT] Initializing iframe message listener&#39;);
  window.addEventListener(&#39;message&#39;, (event) =&gt; {
    console.log(&#39;[BLOG-PARENT] Received postMessage:&#39;, event.data);
    if (event.data &amp;&amp; event.data.type === &#39;resize-iframe&#39;) {
      const iframe = document.querySelector(&#39;.ecs-iframe&#39;);
      if (iframe) {
        console.log(&#39;[BLOG-PARENT] Resizing iframe to:&#39;, event.data.height);
        iframe.style.height = (event.data.height + 20) + &#39;px&#39;;
      } else {
        console.error(&#39;[BLOG-PARENT] Could not find .ecs-iframe element&#39;);
      }
    }
  });
&lt;/script&gt;
&lt;h2 id=&quot;macbook-m4-results&quot; tabindex=&quot;-1&quot;&gt;Macbook M4 Results&lt;/h2&gt;
&lt;p&gt;Running all these configurations locally on my &lt;strong&gt;Apple M4 Pro chip&lt;/strong&gt; (plugged in, 200 frames) creates a lot of numbers. If you want the full dataset of all 6 runs, check out the &lt;a href=&quot;https://www.dmurph.com/posts/2026/06/ecs_vs_oop_benchmark/ecs_vs_oop_benchmark.html#full-benchmark-dataset&quot;&gt;Appendix: Full Benchmark Dataset&lt;/a&gt; below.&lt;/p&gt;
&lt;p&gt;To cut through information overload, let’s focus on 3 main hypotheses:&lt;/p&gt;
&lt;h3 id=&quot;h1-spatial-trees-vs-sweep-prune&quot; tabindex=&quot;-1&quot;&gt;H1: Spatial Trees vs. Sweep &amp;amp; Prune&lt;/h3&gt;
&lt;h4 id=&quot;contiguous-1d-memory-sweeps-consistently-outperform-hierarchical-2d-spatial-trees-even-when-both-are-stored-in-flat-arrays&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Contiguous 1D memory sweeps consistently outperform hierarchical 2D spatial trees, even when both are stored in flat arrays.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;At 15,000 wandering entities, the flat array Sweep &amp;amp; Prune (&lt;code&gt;WASM ECS S&amp;amp;P Quick&lt;/code&gt;) runs in &lt;strong&gt;1.81 ms&lt;/strong&gt; (a 9.02x speedup over the baseline), while the flat array spatial tree (&lt;code&gt;ECS Tree&lt;/code&gt;) runs in &lt;strong&gt;9.97 ms&lt;/strong&gt; (only a 1.64x speedup).&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Broad-phase System&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Architecture&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Avg Frame Time&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;99th Percentile&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Speedup vs OOP Tree&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;WASM ECS S&amp;amp;P (Quick)&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Flat 1D Array&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;1.809 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;2.031 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;9.02x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;ECS (Custom SoA) S&amp;amp;P (Quick)&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Flat 1D Array&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;4.668 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;6.111 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;3.50x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;ECS Tree&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;2D Spatial BVH&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;9.970 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;43.666 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1.64x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;OOP Tree&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;2D Spatial BVH&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;16.321 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;40.756 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1.00x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Why is the tree so much slower, even though it uses flat arrays and avoids JavaScript heap objects?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Nested Indirection&lt;/strong&gt;: While Sweep &amp;amp; Prune has a single layer of index indirection (&lt;code&gt;posX[indices[i]]&lt;/code&gt;), the AABB Tree requires &lt;strong&gt;nested indirection&lt;/strong&gt;. During traversal, the CPU must look up a child index (&lt;code&gt;treeLeft[idx]&lt;/code&gt;) and then use that to look up the node’s bounds (&lt;code&gt;treeMinX[leftChild]&lt;/code&gt;). This non-linear jumping across arrays prevents the CPU’s hardware prefetcher from predicting the next memory address.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Branch Misprediction&lt;/strong&gt;: The tree traversal loop is filled with conditional branches (e.g., deciding whether to descend left, right, or both based on overlap). At 15,000 moving entities, these branches are highly unpredictable, causing frequent CPU instruction pipeline flushes. Sweep &amp;amp; Prune, by contrast, is a simple, highly predictable linear sweep.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Temporal Coherence&lt;/strong&gt;: Because entities only move a tiny amount frame-to-frame (high spatial coherence), the sorted &lt;code&gt;indices&lt;/code&gt; in Sweep &amp;amp; Prune remain nearly contiguous. This keeps index lookups highly localized in the cache, whereas tree traversal always jumps across distant nodes.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;h2-javascript-vs-webassembly&quot; tabindex=&quot;-1&quot;&gt;H2: JavaScript vs. WebAssembly&lt;/h3&gt;
&lt;h4 id=&quot;webassembly-is-not-required-to-realize-the-cache-locality-benefits-of-data-oriented-design-but-it-provides-a-major-secondary-boost-by-enabling-unchecked-memory-access&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;WebAssembly is not required to realize the cache-locality benefits of Data-Oriented Design, but it provides a major secondary boost by enabling unchecked memory access.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Simply migrating from OOP (Arrays of Objects) to ECS (flat TypedArrays) in pure JavaScript yields a &lt;strong&gt;1.58x to 24.9x speedup&lt;/strong&gt; depending on spatial coherence.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Runtime &amp;amp; Memory Layout&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Contender&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Avg Frame Time&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Speedup vs OOP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;WebAssembly (SoA)&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;WASM ECS S&amp;amp;P (Quick)&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;2.141 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;3.91x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;JavaScript (SoA)&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;ECS (Custom SoA) S&amp;amp;P (Quick)&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;5.318 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1.58x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;JavaScript (AoS)&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;OOP S&amp;amp;P (Quick)&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;8.380 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1.00x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Moving to AssemblyScript WASM provides an additional ~2.5x speedup (down to &lt;strong&gt;2.11 ms&lt;/strong&gt;). The primary driver of this boost is the ability to use the &lt;code&gt;unchecked()&lt;/code&gt; operator. This tells the compiler to bypass array boundary checks, allowing it to emit highly optimized vector instructions and maximize CPU instruction throughput.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;interesting-learnings&quot; tabindex=&quot;-1&quot;&gt;Interesting Learnings&lt;/h2&gt;
&lt;p&gt;There were a number of interesting things I discovered while making this!&lt;/p&gt;
&lt;h3 id=&quot;1-the-spatial-coherence-sorting-trap-why-we-need-hybrid-sorts&quot; tabindex=&quot;-1&quot;&gt;1. The Spatial Coherence Sorting Trap (Why we need Hybrid Sorts)&lt;/h3&gt;
&lt;h4 id=&quot;textbook-insertion-sort-is-a-performance-trap-for-real-time-physics-a-hybrid-sort-is-required-to-prevent-worst-case-frame-jank&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Textbook Insertion Sort is a performance trap for real-time physics; a hybrid sort is required to prevent worst-case frame jank.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Under &lt;strong&gt;Wandering&lt;/strong&gt; (high coherence), the array remains nearly sorted, and Insertion Sort is extremely fast (&lt;strong&gt;4.21 ms&lt;/strong&gt;). However, under &lt;strong&gt;Erratic&lt;/strong&gt; (low coherence) workloads (such as explosions or teleporting), the array becomes fully unsorted. Insertion Sort collapses to its quadratic worst-case (&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N^2)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1.0641em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;msupsub&quot;&gt;&lt;span class=&quot;vlist-t&quot;&gt;&lt;span class=&quot;vlist-r&quot;&gt;&lt;span class=&quot;vlist&quot; style=&quot;height:0.8141em;&quot;&gt;&lt;span style=&quot;top:-3.063em;margin-right:0.05em;&quot;&gt;&lt;span class=&quot;pstrut&quot; style=&quot;height:2.7em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sizing reset-size6 size3 mtight&quot;&gt;&lt;span class=&quot;mord mtight&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;), ballooning frame times to &lt;strong&gt;36.39 ms&lt;/strong&gt; and causing severe jank.&lt;/p&gt;
&lt;p&gt;To solve this, we implemented a &lt;strong&gt;Hybrid Sort&lt;/strong&gt; (Quicksort or Mergesort that switches to Insertion Sort when a subarray falls below 12 elements). This eliminates the recursive stack overhead for small partitions while guaranteeing &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mi&gt;log&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N &#92;log N)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.1667em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mop&quot;&gt;lo&lt;span style=&quot;margin-right:0.0139em;&quot;&gt;g&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;mspace&quot; style=&quot;margin-right:0.1667em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; performance under chaotic motion (&lt;strong&gt;5.60 ms&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why switch to insertion sort when the subarray falls below 12 elements?&lt;/strong&gt; This eliminates the relatively high call-stack and buffer overhead of divide-and-conquer recursion for tiny arrays, where insertion sort’s near-zero setup overhead is very fast. Changing to this improved performance! (I forget how much though)&lt;/p&gt;
&lt;h3 id=&quot;2-the-library-trade-off-bitecs-vs-custom-soa&quot; tabindex=&quot;-1&quot;&gt;2. The Library Trade-off (bitECS vs. Custom SoA)&lt;/h3&gt;
&lt;h4 id=&quot;using-an-ecs-library-is-slightly-slower-than-a-hand-tuned-soa-but-remains-highly-competitive-and-is-the-optimal-choice-for-real-world-engineering&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Using an ECS library is slightly slower than a hand-tuned SoA, but remains highly competitive and is the optimal choice for real-world engineering.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;At 15,000 erratic entities, &lt;code&gt;bitECS S&amp;amp;P (Quick)&lt;/code&gt; runs in &lt;strong&gt;9.56 ms&lt;/strong&gt; compared to our custom ECS at &lt;strong&gt;5.60 ms&lt;/strong&gt;. While 2x slower, it still delivers a massive &lt;strong&gt;14x speedup&lt;/strong&gt; over the OOP baseline (131.6 ms).&lt;/p&gt;
&lt;p&gt;Why is bitECS slower?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No Property Packing&lt;/strong&gt;: In our ECS (Custom SoA), we pack &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, and &lt;code&gt;h&lt;/code&gt; into a single &lt;code&gt;posYwh&lt;/code&gt; array (&lt;code&gt;posYwh[i * 3 + 0]&lt;/code&gt;), meaning all three values load into a single CPU cache line. By default, &lt;code&gt;bitECS&lt;/code&gt; allocates a &lt;strong&gt;separate TypedArray&lt;/strong&gt; for every property in a component (&lt;code&gt;y&lt;/code&gt;, &lt;code&gt;w&lt;/code&gt;, and &lt;code&gt;h&lt;/code&gt; are separate arrays), forcing the CPU to fetch from three separate memory streams.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Query &amp;amp; ID Mapping Overhead&lt;/strong&gt;: bitECS must query archetypes and map sparse Entity IDs to internal array slots, introducing minor indirection.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, for a real game, the usability, API safety, and dynamic entity management of a library like &lt;code&gt;bitECS&lt;/code&gt; are far more valuable than saving a few milliseconds of micro-optimization.&lt;/p&gt;
&lt;p&gt;Plus, this can all go away by doing one of the performance optimization tips below, and extracting the physics data to a custom structure before operating on it.&lt;/p&gt;
&lt;h3 id=&quot;3-the-javascript-float32-gotcha&quot; tabindex=&quot;-1&quot;&gt;3. The JavaScript Float32 Gotcha&lt;/h3&gt;
&lt;h4 id=&quot;switching-to-32-bit-floats-float32array-in-pure-javascript-degrades-performance-due-to-v8-s-double-precision-promotion-overhead&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Switching to 32-bit floats (Float32Array) in pure JavaScript degrades performance due to V8’s double-precision promotion overhead.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;At 15,000 entities, the &lt;code&gt;Float32Array&lt;/code&gt; implementation of our ECS (Custom SoA) was &lt;strong&gt;~5% slower&lt;/strong&gt; than the &lt;code&gt;Float64Array&lt;/code&gt; version (5.60 ms vs. 5.32 ms).&lt;/p&gt;
&lt;p&gt;Why? JavaScript numbers are always 64-bit doubles. When V8 reads from a &lt;code&gt;Float32Array&lt;/code&gt;, it must convert the 32-bit float to a 64-bit double at runtime before performing math. When writing back, it must convert it back. The overhead of these runtime conversions outweighs the L1/L2 cache density gains.&lt;/p&gt;
&lt;p&gt;In native environments (like WASM, C++, or Rust), &lt;code&gt;f32&lt;/code&gt; is processed directly on FPU registers without conversion, making it a pure performance win.&lt;/p&gt;
&lt;h3 id=&quot;4-the-physics-of-determinism&quot; tabindex=&quot;-1&quot;&gt;4. The Physics of Determinism&lt;/h3&gt;
&lt;h4 id=&quot;cross-algorithm-trajectory-determinism-is-a-false-economy-once-contact-resolution-order-diverges&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Cross-algorithm trajectory determinism is a false economy once contact resolution order diverges.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Because trees and sorted sweeps traverse and resolve contacts in different orders, their rounding errors accumulate differently. This causes the simulation paths to diverge almost immediately (by frame 2). Focus instead on statistical correctness and local stability rather than matching trajectories exactly across different paradigms.&lt;/p&gt;
&lt;h3 id=&quot;5-dod-and-frame-time-stability-the-99th-percentile&quot; tabindex=&quot;-1&quot;&gt;5. DOD and Frame-Time Stability (The 99th Percentile)&lt;/h3&gt;
&lt;h4 id=&quot;data-oriented-design-provides-rock-solid-frame-rate-stability-by-eliminating-garbage-collection-and-cache-miss-spikes&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Data-Oriented Design provides rock-solid frame rate stability by eliminating garbage collection and cache-miss spikes.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;If you look at the 99th percentile numbers in our benchmarks, a striking pattern emerges: in the OOP implementations, the 99th percentile is often &lt;strong&gt;2x to 3x higher&lt;/strong&gt; than the average frame time. In the ECS (Custom SoA) and WASM implementations, the 99th percentile is almost &lt;strong&gt;identical&lt;/strong&gt; to the average.&lt;/p&gt;
&lt;p&gt;In OOP, entities are scattered across the heap. As they move and interact, the JavaScript engine’s garbage collector is constantly triggered, and the CPU frequently stalls waiting for pointer lookups. This causes sporadic frame drops (micro-stutter). Because ECS uses pre-allocated, flat TypedArrays, memory access is 100% predictable and GC overhead is zero, guaranteeing perfectly smooth frame delivery.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;grand-finale&quot; tabindex=&quot;-1&quot;&gt;🏆 Grand Finale&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; What seems to be the fastest reasonably architected code that we can come up with?&lt;br /&gt;
&lt;strong&gt;Verdict:&lt;/strong&gt; Pitting the top spatial trees (&lt;code&gt;WASM Tree&lt;/code&gt;, &lt;code&gt;JS ECS Tree&lt;/code&gt;) against the Sweep &amp;amp; Prune champions (&lt;code&gt;WASM Quick S&amp;amp;P&lt;/code&gt;, &lt;code&gt;JS Quick S&amp;amp;P&lt;/code&gt;) across 15,000 chaotic colliding bodies:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Contender&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Paradigm&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Architecture&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Runtime (Erratic)&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;WASM Quick S&amp;amp;P&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;ECS&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1D Flat Array&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;2.14 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;🏆 Winner (~7.9x faster than WASM Tree)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;JS Quick S&amp;amp;P&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;ECS&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;1D Flat Array&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;5.32 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Best pure Javascript engine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;WASM Tree&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;ECS&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;2D Spatial BVH&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;16.98 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Peak spatial tree performance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;JS ECS Tree&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;ECS&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;2D Spatial BVH&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;16.64 ms&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;JS spatial tree baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h4 id=&quot;my-takeaways&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;My Takeaways:&lt;/strong&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Cache Locality &amp;gt; Algorithmic Complexity&lt;/strong&gt;: At 15,000 entities, pointer-chasing and unpredictable tree branching cannot compete with the contiguous L1/L2 cache locality of a flat 1D array sort—even though trees have a better theoretical Big-O complexity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You Don’t Need WASM for ECS Wins&lt;/strong&gt;: Simply switching your JavaScript codebase to a flat Structure of Arrays (SoA) layout yields up to a &lt;strong&gt;24x speedup&lt;/strong&gt; over OOP. WASM is the cherry on top (another 2.5x), not the entry ticket.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pragmatism Wins&lt;/strong&gt;: While a hand-tuned SoA is the absolute fastest, using a production ECS library like &lt;code&gt;bitECS&lt;/code&gt; still gives you a massive &lt;strong&gt;14x speedup&lt;/strong&gt; over OOP while providing a clean, scalable API. IMO, for 99% of applications using a library is the correct engineering choice.&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;potential-improvements&quot; tabindex=&quot;-1&quot;&gt;Potential Improvements&lt;/h2&gt;
&lt;p&gt;This section outlines how to optimize the S&amp;amp;P broadphase even further for production-grade game engines.&lt;/p&gt;
&lt;h3 id=&quot;1-eliminating-index-indirection-via-the-etl-physics-buffer-pattern&quot; tabindex=&quot;-1&quot;&gt;1. Eliminating Index Indirection via the ETL Physics Buffer Pattern&lt;/h3&gt;
&lt;h4 id=&quot;we-can-eliminate-index-indirection-during-the-sweep-phase-by-extracting-and-physically-permuting-a-lightweight-physics-buffer&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;We can eliminate index indirection during the Sweep phase by extracting and physically permuting a lightweight physics buffer.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;In our simple ECS S&amp;amp;P, the sweep phase must read coordinates indirectly: &lt;code&gt;posX[indices[i]]&lt;/code&gt;. While we could physically sort all of our component arrays to make this contiguous, doing so in a real game is highly impractical because of archetype fragmentation and the waste of permuting non-physics components (like inventories or AI state).&lt;/p&gt;
&lt;p&gt;Instead, we can use an &lt;strong&gt;Extract-Transform-Load (ETL) Physics Buffer&lt;/strong&gt; pattern:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Extract&lt;/strong&gt;: At the start of the broadphase, we copy &lt;em&gt;only&lt;/em&gt; the required spatial fields (&lt;code&gt;x, y, w, h, id&lt;/code&gt;) from the main ECS arrays into a dedicated, flat &lt;code&gt;PhysicsBuffer&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transform (Sort &amp;amp; Permute)&lt;/strong&gt;: We sort the &lt;code&gt;indices&lt;/code&gt; of this buffer, and then physically permute &lt;em&gt;only&lt;/em&gt; this lightweight &lt;code&gt;PhysicsBuffer&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Contiguous Sweep&lt;/strong&gt;: The Sweep phase can now read the sorted &lt;code&gt;PhysicsBuffer&lt;/code&gt; sequentially (&lt;code&gt;posX[i]&lt;/code&gt; instead of &lt;code&gt;posX[indices[i]]&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Load (Output)&lt;/strong&gt;: The broadphase outputs the resulting contact pairs (Entity IDs) to the narrowphase, leaving the main ECS database completely untouched.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Why this is highly practical:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Universal Compatibility&lt;/strong&gt;: Because the data is extracted into an isolated buffer, this pattern is &lt;strong&gt;100% compatible with any ECS library (like bitECS)&lt;/strong&gt;. You simply query the library, populate the buffer, solve, and write back.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Incredibly Fast Copies&lt;/strong&gt;: Straight &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; sequential data copying in JavaScript (using &lt;code&gt;.set()&lt;/code&gt; or simple loops) is extremely fast. Modern CPUs are highly optimized for sequential memory copies, easily saturating memory bandwidth while keeping the prefetcher happy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Measurable Gains&lt;/strong&gt;: Implementing this in our benchmark yielded an additional &lt;strong&gt;~6% speedup&lt;/strong&gt; at 15,000 entities (reducing frame times from &lt;strong&gt;5.32 ms&lt;/strong&gt; to &lt;strong&gt;5.01 ms&lt;/strong&gt; under erratic loads).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;2-spatial-hash-grids-alternative-spatial-partitioning&quot; tabindex=&quot;-1&quot;&gt;2. Spatial Hash Grids (Alternative Spatial Partitioning)&lt;/h3&gt;
&lt;h4 id=&quot;for-uniform-sized-entities-a-flat-array-spatial-hash-grid-can-offer-average-case-performance-with-zero-sorting-or-tree-balancing-overhead&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;For uniform-sized entities, a flat-array Spatial Hash Grid can offer &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(1)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; average-case performance with zero sorting or tree-balancing overhead.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;While we compared Sweep &amp;amp; Prune against a Dynamic AABB Tree, another highly cache-friendly alternative is the &lt;strong&gt;Spatial Hash Grid&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unlike the AABB Tree (which requires recursive, non-linear tree traversal), a Spatial Hash Grid maps 2D coordinates into a 1D grid array.&lt;/li&gt;
&lt;li&gt;Entities are inserted into grid cells in a single &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; pass, and queries are performed by checking neighboring cells in &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(1)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; time.&lt;/li&gt;
&lt;li&gt;This approach is extremely cache-friendly when implemented using flat arrays, and it completely avoids the sorting step of Sweep &amp;amp; Prune, making it highly optimal at very large scales.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;3-multi-axis-sweep-prune&quot; tabindex=&quot;-1&quot;&gt;3. Multi-Axis Sweep &amp;amp; Prune&lt;/h3&gt;
&lt;h4 id=&quot;sorting-on-the-axis-of-highest-spatial-variance-prevents-sweep-prune-from-degrading-under-alignment-pathological-cases&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;Sorting on the axis of highest spatial variance prevents Sweep &amp;amp; Prune from degrading under alignment pathological cases.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Our simple Sweep &amp;amp; Prune only sorts along the X-axis. If many entities align vertically (e.g., falling down a narrow corridor), they all overlap on the X projection, causing the sweep phase to degrade toward &lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;N&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot;&gt;O(N^2)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&quot;katex-html&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;base&quot;&gt;&lt;span class=&quot;strut&quot; style=&quot;height:1.0641em;vertical-align:-0.25em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.0278em;&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;mopen&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mord&quot;&gt;&lt;span class=&quot;mord mathnormal&quot; style=&quot;margin-right:0.109em;&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;msupsub&quot;&gt;&lt;span class=&quot;vlist-t&quot;&gt;&lt;span class=&quot;vlist-r&quot;&gt;&lt;span class=&quot;vlist&quot; style=&quot;height:0.8141em;&quot;&gt;&lt;span style=&quot;top:-3.063em;margin-right:0.05em;&quot;&gt;&lt;span class=&quot;pstrut&quot; style=&quot;height:2.7em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sizing reset-size6 size3 mtight&quot;&gt;&lt;span class=&quot;mord mtight&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;mclose&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A production-grade Sweep &amp;amp; Prune calculates the &lt;strong&gt;variance&lt;/strong&gt; of entity positions along both the X and Y axes.&lt;/li&gt;
&lt;li&gt;It then dynamically chooses to sort and sweep along the axis with the highest variance, minimizing the number of overlapping intervals.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;4-webassembly-simd-vectorization&quot; tabindex=&quot;-1&quot;&gt;4. WebAssembly SIMD Vectorization&lt;/h3&gt;
&lt;h4 id=&quot;we-can-use-wasm-simd-single-instruction-multiple-data-to-check-four-bounding-box-intersections-simultaneously&quot; tabindex=&quot;-1&quot;&gt;&lt;strong&gt;We can use WASM SIMD (Single Instruction Multiple Data) to check four bounding box intersections simultaneously.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Since our &lt;code&gt;PhysicsBuffer&lt;/code&gt; stores coordinates contiguously, we can load 128-bit SIMD registers with the bounds of four entities at once. The CPU can then perform the AABB overlap checks in parallel with a single instruction, potentially quadrupling the throughput of the sweep phase.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;am-i-missing-anything&quot; tabindex=&quot;-1&quot;&gt;Am I missing anything?&lt;/h2&gt;
&lt;p&gt;What am I missing? What other configurations should we add? Did I mess something up?&lt;/p&gt;
&lt;h2 id=&quot;faqs&quot; tabindex=&quot;-1&quot;&gt;FAQs&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Why not use Web Workers?&lt;/strong&gt; Because in a microbenchmark, putting things in Web Workers can actually obscure the real bottlenecks. If we spin up multiple threads, the browser might optimize the main thread in a vacuum, leading to “microbenchmark syndrome.” Keeping it single-threaded makes sure we are directly comparing how the browser’s engine manages memory access under active simulation load.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why not C or C++ instead of AssemblyScript?&lt;/strong&gt; I attempted to use C++ here, but there were two main hurdles that made it slower than AssemblyScript:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pointer Aliasing&lt;/strong&gt;: AssemblyScript allowed me to easily use &lt;code&gt;unchecked()&lt;/code&gt; to disable pointer aliasing protection, which was a bit harder to do with C++ and clang, but definitely not impossible.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Optimized Math Operations&lt;/strong&gt;: I could not figure out how to get the math library calls faster in C++ to WASM - somehow AssemblyScript links in really fast math calls for sin/cos/pow/etc, and I failed to get that working with C++.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;appendix&quot; tabindex=&quot;-1&quot;&gt;Appendix&lt;/h2&gt;
&lt;h3 id=&quot;full-benchmark-dataset&quot; tabindex=&quot;-1&quot;&gt;Full Benchmark Dataset&lt;/h3&gt;
&lt;p&gt;For the statistics nerds and performance purists, here is the full, unadulterated dataset of our run of &lt;strong&gt;200 frames&lt;/strong&gt; across all 18 registered simulator configurations.&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;1. Static Behavior (Absolute Coherence - 5,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.148 ms&lt;/td&gt;&lt;td&gt;0.178 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.43x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.182 ms&lt;/td&gt;&lt;td&gt;0.226 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.60x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.202 ms&lt;/td&gt;&lt;td&gt;0.243 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.24x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.434 ms&lt;/td&gt;&lt;td&gt;0.484 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.51x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.445 ms&lt;/td&gt;&lt;td&gt;0.525 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.47x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.445 ms&lt;/td&gt;&lt;td&gt;0.507 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.47x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;0.601 ms&lt;/td&gt;&lt;td&gt;0.807 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.09x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;0.604 ms&lt;/td&gt;&lt;td&gt;0.821 ms&lt;/td&gt;&lt;td&gt;1.08x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.654 ms&lt;/td&gt;&lt;td&gt;0.912 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.706 ms&lt;/td&gt;&lt;td&gt;1.067 ms&lt;/td&gt;&lt;td&gt;0.93x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.720 ms&lt;/td&gt;&lt;td&gt;1.044 ms&lt;/td&gt;&lt;td&gt;0.91x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;0.742 ms&lt;/td&gt;&lt;td&gt;0.859 ms&lt;/td&gt;&lt;td&gt;0.88x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;0.887 ms&lt;/td&gt;&lt;td&gt;1.052 ms&lt;/td&gt;&lt;td&gt;0.74x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.888 ms&lt;/td&gt;&lt;td&gt;0.967 ms&lt;/td&gt;&lt;td&gt;0.74x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.957 ms&lt;/td&gt;&lt;td&gt;1.067 ms&lt;/td&gt;&lt;td&gt;0.68x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.066 ms&lt;/td&gt;&lt;td&gt;2.337 ms&lt;/td&gt;&lt;td&gt;0.61x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;1.104 ms&lt;/td&gt;&lt;td&gt;1.782 ms&lt;/td&gt;&lt;td&gt;0.59x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.351 ms&lt;/td&gt;&lt;td&gt;3.841 ms&lt;/td&gt;&lt;td&gt;0.48x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;2. Wandering Behavior (High Coherence - 5,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.318 ms&lt;/td&gt;&lt;td&gt;0.355 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.54x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.343 ms&lt;/td&gt;&lt;td&gt;0.483 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.28x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.374 ms&lt;/td&gt;&lt;td&gt;0.472 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.01x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.845 ms&lt;/td&gt;&lt;td&gt;0.963 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.33x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.856 ms&lt;/td&gt;&lt;td&gt;1.090 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.31x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.858 ms&lt;/td&gt;&lt;td&gt;0.994 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.31x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.059 ms&lt;/td&gt;&lt;td&gt;1.723 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.06x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;1.124 ms&lt;/td&gt;&lt;td&gt;1.676 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.201 ms&lt;/td&gt;&lt;td&gt;1.769 ms&lt;/td&gt;&lt;td&gt;0.94x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.325 ms&lt;/td&gt;&lt;td&gt;1.885 ms&lt;/td&gt;&lt;td&gt;0.85x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.379 ms&lt;/td&gt;&lt;td&gt;2.104 ms&lt;/td&gt;&lt;td&gt;0.81x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;1.588 ms&lt;/td&gt;&lt;td&gt;2.603 ms&lt;/td&gt;&lt;td&gt;0.71x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.662 ms&lt;/td&gt;&lt;td&gt;2.384 ms&lt;/td&gt;&lt;td&gt;0.68x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.773 ms&lt;/td&gt;&lt;td&gt;2.556 ms&lt;/td&gt;&lt;td&gt;0.63x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.829 ms&lt;/td&gt;&lt;td&gt;2.673 ms&lt;/td&gt;&lt;td&gt;0.61x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;2.233 ms&lt;/td&gt;&lt;td&gt;2.614 ms&lt;/td&gt;&lt;td&gt;0.50x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;2.353 ms&lt;/td&gt;&lt;td&gt;2.941 ms&lt;/td&gt;&lt;td&gt;0.48x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;2.938 ms&lt;/td&gt;&lt;td&gt;11.642 ms&lt;/td&gt;&lt;td&gt;0.38x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;3. Erratic Behavior (Low Coherence - 5,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;0.462 ms&lt;/td&gt;&lt;td&gt;0.719 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;28.71x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;0.475 ms&lt;/td&gt;&lt;td&gt;0.740 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;27.91x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.070 ms&lt;/td&gt;&lt;td&gt;1.605 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;12.39x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.125 ms&lt;/td&gt;&lt;td&gt;1.637 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;11.79x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.487 ms&lt;/td&gt;&lt;td&gt;2.149 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;8.92x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.549 ms&lt;/td&gt;&lt;td&gt;1.884 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;8.56x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.649 ms&lt;/td&gt;&lt;td&gt;2.101 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;8.04x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.675 ms&lt;/td&gt;&lt;td&gt;2.174 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;7.92x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.743 ms&lt;/td&gt;&lt;td&gt;2.373 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;7.61x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;1.966 ms&lt;/td&gt;&lt;td&gt;2.413 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;6.74x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;2.052 ms&lt;/td&gt;&lt;td&gt;2.765 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;6.46x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;3.433 ms&lt;/td&gt;&lt;td&gt;4.153 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.86x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;4.422 ms&lt;/td&gt;&lt;td&gt;5.360 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.00x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;4.485 ms&lt;/td&gt;&lt;td&gt;4.973 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;2.96x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;4.511 ms&lt;/td&gt;&lt;td&gt;6.598 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;2.94x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;5.509 ms&lt;/td&gt;&lt;td&gt;12.983 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;2.41x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;11.583 ms&lt;/td&gt;&lt;td&gt;19.861 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.14x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;13.258 ms&lt;/td&gt;&lt;td&gt;18.408 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;4. Static Behavior (Absolute Coherence - 15,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;0.959 ms&lt;/td&gt;&lt;td&gt;1.085 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;5.43x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.112 ms&lt;/td&gt;&lt;td&gt;1.349 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.69x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.170 ms&lt;/td&gt;&lt;td&gt;1.449 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.45x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;3.162 ms&lt;/td&gt;&lt;td&gt;3.653 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.65x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;3.293 ms&lt;/td&gt;&lt;td&gt;3.769 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.58x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;3.395 ms&lt;/td&gt;&lt;td&gt;3.954 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.53x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;3.587 ms&lt;/td&gt;&lt;td&gt;5.116 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.45x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;3.902 ms&lt;/td&gt;&lt;td&gt;4.741 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.34x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;4.320 ms&lt;/td&gt;&lt;td&gt;5.095 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.21x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;5.210 ms&lt;/td&gt;&lt;td&gt;6.260 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;5.423 ms&lt;/td&gt;&lt;td&gt;7.281 ms&lt;/td&gt;&lt;td&gt;0.96x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;5.614 ms&lt;/td&gt;&lt;td&gt;6.560 ms&lt;/td&gt;&lt;td&gt;0.93x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;5.995 ms&lt;/td&gt;&lt;td&gt;9.221 ms&lt;/td&gt;&lt;td&gt;0.87x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;6.746 ms&lt;/td&gt;&lt;td&gt;9.319 ms&lt;/td&gt;&lt;td&gt;0.77x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;7.456 ms&lt;/td&gt;&lt;td&gt;10.520 ms&lt;/td&gt;&lt;td&gt;0.70x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;7.447 ms&lt;/td&gt;&lt;td&gt;9.227 ms&lt;/td&gt;&lt;td&gt;0.70x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;7.712 ms&lt;/td&gt;&lt;td&gt;9.912 ms&lt;/td&gt;&lt;td&gt;0.68x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;8.448 ms&lt;/td&gt;&lt;td&gt;14.122 ms&lt;/td&gt;&lt;td&gt;0.62x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;5. Wandering Behavior (High Coherence - 15,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;1.557 ms&lt;/td&gt;&lt;td&gt;1.859 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.71x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;1.767 ms&lt;/td&gt;&lt;td&gt;2.186 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.15x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;1.809 ms&lt;/td&gt;&lt;td&gt;2.031 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.05x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;4.489 ms&lt;/td&gt;&lt;td&gt;6.483 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.63x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;4.668 ms&lt;/td&gt;&lt;td&gt;6.111 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.57x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;4.781 ms&lt;/td&gt;&lt;td&gt;5.670 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.53x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;5.658 ms&lt;/td&gt;&lt;td&gt;8.731 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.30x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;7.335 ms&lt;/td&gt;&lt;td&gt;9.044 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;7.540 ms&lt;/td&gt;&lt;td&gt;9.290 ms&lt;/td&gt;&lt;td&gt;0.97x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;7.645 ms&lt;/td&gt;&lt;td&gt;10.421 ms&lt;/td&gt;&lt;td&gt;0.96x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;8.036 ms&lt;/td&gt;&lt;td&gt;11.292 ms&lt;/td&gt;&lt;td&gt;0.91x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;9.077 ms&lt;/td&gt;&lt;td&gt;10.931 ms&lt;/td&gt;&lt;td&gt;0.81x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;9.083 ms&lt;/td&gt;&lt;td&gt;10.938 ms&lt;/td&gt;&lt;td&gt;0.81x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;9.215 ms&lt;/td&gt;&lt;td&gt;11.554 ms&lt;/td&gt;&lt;td&gt;0.80x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;9.674 ms&lt;/td&gt;&lt;td&gt;11.345 ms&lt;/td&gt;&lt;td&gt;0.76x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;9.970 ms&lt;/td&gt;&lt;td&gt;43.666 ms&lt;/td&gt;&lt;td&gt;0.74x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;10.730 ms&lt;/td&gt;&lt;td&gt;37.820 ms&lt;/td&gt;&lt;td&gt;0.68x&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;16.321 ms&lt;/td&gt;&lt;td&gt;40.756 ms&lt;/td&gt;&lt;td&gt;0.45x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;&lt;b&gt;6. Erratic Behavior (Low Coherence - 15,000 Entities)&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&quot;blog-table-container&quot;&gt;
  &lt;table class=&quot;blog-table&quot;&gt;
    &lt;thead&gt;
      &lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Avg Frame Time&lt;/th&gt;&lt;th&gt;99th Percentile&lt;/th&gt;&lt;th&gt;Speedup&lt;/th&gt;&lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;2.141 ms&lt;/td&gt;&lt;td&gt;2.588 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;61.92x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;2.226 ms&lt;/td&gt;&lt;td&gt;2.548 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;59.56x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;5.318 ms&lt;/td&gt;&lt;td&gt;5.765 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;24.93x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;5.668 ms&lt;/td&gt;&lt;td&gt;6.334 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;23.39x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Native)&lt;/td&gt;&lt;td&gt;6.991 ms&lt;/td&gt;&lt;td&gt;8.146 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;18.97x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;8.380 ms&lt;/td&gt;&lt;td&gt;9.820 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;15.82x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;8.826 ms&lt;/td&gt;&lt;td&gt;12.094 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;15.02x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Quick)&lt;/td&gt;&lt;td&gt;9.692 ms&lt;/td&gt;&lt;td&gt;11.258 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;13.68x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Merge)&lt;/td&gt;&lt;td&gt;10.037 ms&lt;/td&gt;&lt;td&gt;12.722 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;13.21x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Native)&lt;/td&gt;&lt;td&gt;10.645 ms&lt;/td&gt;&lt;td&gt;14.415 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;12.45x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Native)&lt;/td&gt;&lt;td&gt;10.877 ms&lt;/td&gt;&lt;td&gt;12.864 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;12.19x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS Tree&lt;/td&gt;&lt;td&gt;16.639 ms&lt;/td&gt;&lt;td&gt;19.107 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;7.97x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM Tree&lt;/td&gt;&lt;td&gt;16.976 ms&lt;/td&gt;&lt;td&gt;19.827 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;7.81x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop-tree&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP Tree&lt;/td&gt;&lt;td&gt;29.261 ms&lt;/td&gt;&lt;td&gt;74.175 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.53x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-wasm&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;WASM ECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;32.518 ms&lt;/td&gt;&lt;td&gt;35.499 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;4.08x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-ecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;ECS (Custom SoA) S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;36.896 ms&lt;/td&gt;&lt;td&gt;41.801 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;3.59x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-bitecs&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;bitECS S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;101.341 ms&lt;/td&gt;&lt;td&gt;122.182 ms&lt;/td&gt;&lt;td&gt;&lt;span class=&quot;highlight-speedup&quot;&gt;1.31x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;legend-dot legend-oop&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;bold&quot;&gt;OOP S&amp;P (Insertion)&lt;/td&gt;&lt;td&gt;132.579 ms&lt;/td&gt;&lt;td&gt;140.137 ms&lt;/td&gt;&lt;td&gt;1.00x&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/details&gt;
</description>
      <pubDate>Wed, 24 Jun 2026 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2026/06/ecs_vs_oop_benchmark/ecs_vs_oop_benchmark.html</guid>
    </item>
    <item>
      <title>Dynamic Chunk Loading</title>
      <link>https://www.dmurph.com/posts/2024/06/dynamic_loading/dynamic_loading_demo.html</link>
      <description>&lt;p&gt;As the camera moves around, the chunks will load in and out. This also splits the chunk geometry into groups to allow different materials to be used in the chunk. Simple height-based colors are used here.&lt;/p&gt;
&lt;p&gt;Movement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &amp;amp; drag&lt;/li&gt;
&lt;li&gt;WASD&lt;/li&gt;
&lt;li&gt;tilt: EQ&lt;/li&gt;
&lt;li&gt;up/down: RF&lt;/li&gt;
&lt;/ul&gt;
&lt;!--more--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://www.dmurph.com/posts/2024/06/dynamic_loading/noise.css&quot; /&gt;
&lt;div id=&quot;body&quot;&gt;
  &lt;div id=&quot;content&quot;&gt;
  &lt;/div&gt;
  &lt;div id=&quot;status&quot;&gt;test:&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;https://www.dmurph.com/posts/2024/06/dynamic_loading/main.js&quot; type=&quot;module&quot;&gt;&lt;/script&gt;</description>
      <pubDate>Wed, 19 Jun 2024 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2024/06/dynamic_loading/dynamic_loading_demo.html</guid>
    </item>
    <item>
      <title>Chunking of hexagons</title>
      <link>https://www.dmurph.com/posts/2024/06/chunking_working/chunking_working_demo.html</link>
      <description>&lt;p&gt;Second iteration of noise &amp;amp; hexagons, this time I have chunking working. And the chunk is rendered as a single mesh, instead of one mesh per polygon. Uses three.js for rendering.&lt;/p&gt;
&lt;p&gt;Movement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &amp;amp; drag&lt;/li&gt;
&lt;li&gt;WASD&lt;/li&gt;
&lt;li&gt;tilt: EQ&lt;/li&gt;
&lt;li&gt;up/down: RF&lt;/li&gt;
&lt;/ul&gt;
&lt;!--more--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://www.dmurph.com/posts/2024/06/chunking_working/noise.css&quot; /&gt;
&lt;div id=&quot;body&quot;&gt;
  &lt;div id=&quot;content&quot;&gt;
  &lt;/div&gt;
  &lt;div id=&quot;status&quot;&gt;test:&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;https://www.dmurph.com/posts/2024/06/chunking_working/main.js&quot; type=&quot;module&quot;&gt;&lt;/script&gt;</description>
      <pubDate>Mon, 17 Jun 2024 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2024/06/chunking_working/chunking_working_demo.html</guid>
    </item>
    <item>
      <title>Noise Demo</title>
      <link>https://www.dmurph.com/posts/2024/06/first_noise/first_demo.html</link>
      <description>&lt;p&gt;This is my first attempt at 2d perlin noise, rendering with three.js.&lt;/p&gt;
&lt;p&gt;Movement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click &amp;amp; drag&lt;/li&gt;
&lt;li&gt;WASD&lt;/li&gt;
&lt;li&gt;tilt: EQ&lt;/li&gt;
&lt;li&gt;up/down: RF&lt;/li&gt;
&lt;/ul&gt;
&lt;!--more--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://www.dmurph.com/posts/2024/06/first_noise/index.css&quot; /&gt;
&lt;div id=&quot;body&quot;&gt;
  &lt;div id=&quot;content&quot;&gt;
  &lt;/div&gt;
  &lt;div id=&quot;status&quot;&gt;test:&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;https://www.dmurph.com/posts/2024/06/first_noise/main.js&quot; type=&quot;module&quot;&gt;&lt;/script&gt;</description>
      <pubDate>Mon, 10 Jun 2024 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2024/06/first_noise/first_demo.html</guid>
    </item>
    <item>
      <title>Failures, learnings, and final light (Cabinet Light Pt. 6)</title>
      <link>https://www.dmurph.com/posts/cabinet/cabinet-light-refresh.html</link>
      <description>&lt;p&gt;This is, I hope, the last entry in the cabinet light saga. While it was fun to tinker with the programming of the first one, a number of issues arose that were annoying to deal with. With the learnings from the first “prototype”, I created a second version that was easier to build &amp;amp; should be MUCH safer.&lt;/p&gt;
&lt;p&gt;Which one looks safer to you?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/eif3VCYSF9-1859.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/eif3VCYSF9-256.webp 256w, https://www.dmurph.com/img/eif3VCYSF9-512.webp 512w, https://www.dmurph.com/img/eif3VCYSF9-1859.webp 1859w&quot; sizes=&quot;(max-width: 256px) 100vw, 256px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/eif3VCYSF9-256.jpeg&quot; alt=&quot;Prototype&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;256&quot; height=&quot;351&quot; srcset=&quot;https://www.dmurph.com/img/eif3VCYSF9-256.jpeg 256w, https://www.dmurph.com/img/eif3VCYSF9-512.jpeg 512w, https://www.dmurph.com/img/eif3VCYSF9-1859.jpeg 1859w&quot; sizes=&quot;(max-width: 256px) 100vw, 256px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/M4sUnRs97E-3248.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/M4sUnRs97E-512.webp 512w, https://www.dmurph.com/img/M4sUnRs97E-1024.webp 1024w, https://www.dmurph.com/img/M4sUnRs97E-3248.webp 3248w&quot; sizes=&quot;(max-width: 512px) 100vw, 512px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/M4sUnRs97E-512.jpeg&quot; alt=&quot;New Version&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;512&quot; height=&quot;357&quot; srcset=&quot;https://www.dmurph.com/img/M4sUnRs97E-512.jpeg 512w, https://www.dmurph.com/img/M4sUnRs97E-1024.jpeg 1024w, https://www.dmurph.com/img/M4sUnRs97E-3248.jpeg 3248w&quot; sizes=&quot;(max-width: 512px) 100vw, 512px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So what happened with the prototype?&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;Here is the non-exhaustive issue list.&lt;/p&gt;
&lt;h3 id=&quot;issue-1-not-bright-enough&quot; tabindex=&quot;-1&quot;&gt;Issue 1: Not bright enough.&lt;/h3&gt;
&lt;p&gt;The LED code I wrote was definitely correct correctly used the white LED for white light and introducing the other colors only when needed. However, this meant that at the color we wanted - which is basically always white - we are only using 25% of the luminocity of the strip!&lt;/p&gt;
&lt;p&gt;To fix this, I basically made it so the RGB leds output the chosen color, and then turning up the brightness HSB level also turned up the ‘white’ led. So when it was at pure white, all LEDs were max brightness. This definitely helped and made it more acceptable.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/vWkCMbtHn4-1579.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/vWkCMbtHn4-512.webp 512w, https://www.dmurph.com/img/vWkCMbtHn4-1024.webp 1024w, https://www.dmurph.com/img/vWkCMbtHn4-1579.webp 1579w&quot; sizes=&quot;(max-width: 512px) 100vw, 512px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/vWkCMbtHn4-512.jpeg&quot; alt=&quot;This is after I modified to code to turn on ALL leds - this is acceptable now.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;512&quot; height=&quot;578&quot; srcset=&quot;https://www.dmurph.com/img/vWkCMbtHn4-512.jpeg 512w, https://www.dmurph.com/img/vWkCMbtHn4-1024.jpeg 1024w, https://www.dmurph.com/img/vWkCMbtHn4-1579.jpeg 1579w&quot; sizes=&quot;(max-width: 512px) 100vw, 512px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;issue-2-i-never-used-the-controls-ever&quot; tabindex=&quot;-1&quot;&gt;Issue 2: I never used the controls. Ever.&lt;/h3&gt;
&lt;p&gt;I put all of this work into the buttons and the knobs for controlling the light, and at the end of the day, I never used them! The buttons also ended up being flaky due to the way I made the resistance ladder.&lt;/p&gt;
&lt;p&gt;I seem to love making complicated &amp;amp; interesting features that I never actually need. Just ask my coworkers.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/4jMeMH_Efc-3344.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/4jMeMH_Efc-1024.webp 1024w, https://www.dmurph.com/img/4jMeMH_Efc-2048.webp 2048w, https://www.dmurph.com/img/4jMeMH_Efc-3344.webp 3344w&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/4jMeMH_Efc-1024.jpeg&quot; alt=&quot;These were the hue, saturation, and brightness controls. Not pictures are the buttons down the length of the light turn sections on and off.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;1024&quot; height=&quot;464&quot; srcset=&quot;https://www.dmurph.com/img/4jMeMH_Efc-1024.jpeg 1024w, https://www.dmurph.com/img/4jMeMH_Efc-2048.jpeg 2048w, https://www.dmurph.com/img/4jMeMH_Efc-3344.jpeg 3344w&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;issue-3-slow-failure-then-full-failure-with-melting&quot; tabindex=&quot;-1&quot;&gt;Issue 3: Slow failure, then full failure with melting!&lt;/h3&gt;
&lt;p&gt;For a while, LEDs at the end of the strip started glitching out. So I just turned that section off. I guess the button controls were useful after all!&lt;/p&gt;
&lt;p&gt;Then, the whole light stopped working. Thankfully I was nearby when it stopped working and unplugged it to investigate. This is what I found:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/jJCto752Y_-4032.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/jJCto752Y_-1024.webp 1024w, https://www.dmurph.com/img/jJCto752Y_-2048.webp 2048w, https://www.dmurph.com/img/jJCto752Y_-4032.webp 4032w&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/jJCto752Y_-1024.jpeg&quot; alt=&quot;It looks like 20 amps at 5 volts did some damage here. Perhaps some of those wires were too small&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;1024&quot; height=&quot;576&quot; srcset=&quot;https://www.dmurph.com/img/jJCto752Y_-1024.jpeg 1024w, https://www.dmurph.com/img/jJCto752Y_-2048.jpeg 2048w, https://www.dmurph.com/img/jJCto752Y_-4032.jpeg 4032w&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I injected power with much higher guage wires throughout the strip, but I didn’t think to remove the tiny guage wires here with the data singal to the leads of the stip. It seems like the connector here melted from heat &amp;amp; probably shorted. They &lt;strong&gt;really&lt;/strong&gt; under-size the power wires for these power-hungry strips - no one should be using the provided connectors here.&lt;/p&gt;
&lt;h2 id=&quot;round-2-simpler-safer-easier&quot; tabindex=&quot;-1&quot;&gt;Round 2: Simpler, safer, easier.&lt;/h2&gt;
&lt;p&gt;Well now that my first version was dead, the one that was &lt;strong&gt;definitely&lt;/strong&gt; always meant to be a prototype, I could start fresh with lessons learned. My main concerns now were:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Safer.
&lt;ul&gt;
&lt;li&gt;I don’t want to do my own wiring here, I want things to be contained already, and I want to use a non-exposed power supply, preferably just a regular transformer.&lt;/li&gt;
&lt;li&gt;The previous version involved a cable in a wire cover connected directly to wall power - this made me very uncomfortable. This time I’m just installing a new plug with real boxes and conduit.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Simpler. I don’t need all of these controls. I want it to turn on an off, with maybe a one-time adjustment of color temperature.&lt;/li&gt;
&lt;li&gt;Bright. Give me light!&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;simpler-power-led-solution&quot; tabindex=&quot;-1&quot;&gt;Simpler power &amp;amp; LED solution&lt;/h3&gt;
&lt;p&gt;I found a MUCH better LED solution which solved my problems, starting with this &lt;a href=&quot;https://a.co/d/5usiswr&quot;&gt;10ft, 24v COB-style LED strip&lt;/a&gt; from BTF-Lighting.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It was 24 volts, which meant that wire size was no longer a problem. AKA I didn’t need to solder power wires to the strip.&lt;/li&gt;
&lt;li&gt;It contained a controller with remote already.&lt;/li&gt;
&lt;li&gt;It comes with a plug-in transformer.&lt;/li&gt;
&lt;li&gt;It’s an COB-style strip which means it has it’s own diffuser so I don’t have to use my own.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&quot;https://a.co/d/5usiswr&quot;&gt;&lt;img src=&quot;https://www.dmurph.com/assets/cabinet/led-strip.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Easy! The only problem is that the led strip is exposed to the elements still, and knowing my history with homemade kombucha, it’s probably best to protect those connections.&lt;/p&gt;
&lt;p&gt;To do that, I found these &lt;a href=&quot;https://www.solidapollo.com/10mm-waterproofing-silicon-tube.html&quot;&gt;silicon tubes for LED strips&lt;/a&gt; I could pull the strands through. However, this was NOT easy. I had to do some magic with the string and the wires at the end of the strip, but if you get a good attachment and tie the string to something sturdy, you can slowly pull the strip through if you get everything straight and lined up.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/Q3NzJv5TCt-256.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Q3NzJv5TCt-256.webp 256w&quot; sizes=&quot;(max-width: 256px) 100vw, 256px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Q3NzJv5TCt-256.jpeg&quot; alt=&quot;Silicon LED tube.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;256&quot; height=&quot;256&quot; srcset=&quot;https://www.dmurph.com/img/Q3NzJv5TCt-256.jpeg 256w&quot; sizes=&quot;(max-width: 256px) 100vw, 256px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/moItxlfPc7-1377.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/moItxlfPc7-400.webp 400w, https://www.dmurph.com/img/moItxlfPc7-800.webp 800w, https://www.dmurph.com/img/moItxlfPc7-1377.webp 1377w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/moItxlfPc7-400.jpeg&quot; alt=&quot;I had to cut open this section to re-solder it because I broke it doing dumb things. I wrapped it with Kapton tape to be extra safe.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;359&quot; srcset=&quot;https://www.dmurph.com/img/moItxlfPc7-400.jpeg 400w, https://www.dmurph.com/img/moItxlfPc7-800.jpeg 800w, https://www.dmurph.com/img/moItxlfPc7-1377.jpeg 1377w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;small&gt;Do NOT bend the strip back and forth to get it to go through. This will cause a connection point to break, and then you have more problems.&lt;/small&gt;&lt;/p&gt;
&lt;h3 id=&quot;one-piece-of-wood-routing&quot; tabindex=&quot;-1&quot;&gt;One piece of wood &amp;amp; routing.&lt;/h3&gt;
&lt;p&gt;Instead of dealing with 3 peices of wood that I had to glue / attach end-to-end (which was a nightmare), I made sure to use one long piece of wood. I also made sure not to get carried away with the router.&lt;/p&gt;
&lt;p&gt;I used red cedar again and sealed it with Rubio Monocoat.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/A50wrX3AR--4032.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/A50wrX3AR--400.webp 400w, https://www.dmurph.com/img/A50wrX3AR--800.webp 800w, https://www.dmurph.com/img/A50wrX3AR--4032.webp 4032w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/A50wrX3AR--400.jpeg&quot; alt=&quot;Looking good.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;225&quot; srcset=&quot;https://www.dmurph.com/img/A50wrX3AR--400.jpeg 400w, https://www.dmurph.com/img/A50wrX3AR--800.jpeg 800w, https://www.dmurph.com/img/A50wrX3AR--4032.jpeg 4032w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/-rdo0p19Ql-2455.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/-rdo0p19Ql-300.webp 300w, https://www.dmurph.com/img/-rdo0p19Ql-600.webp 600w, https://www.dmurph.com/img/-rdo0p19Ql-2455.webp 2455w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/-rdo0p19Ql-300.jpeg&quot; alt=&quot;That grain!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;277&quot; srcset=&quot;https://www.dmurph.com/img/-rdo0p19Ql-300.jpeg 300w, https://www.dmurph.com/img/-rdo0p19Ql-600.jpeg 600w, https://www.dmurph.com/img/-rdo0p19Ql-2455.jpeg 2455w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then some simple routing:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/kFKPHKfHTG-1733.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/kFKPHKfHTG-250.webp 250w, https://www.dmurph.com/img/kFKPHKfHTG-500.webp 500w, https://www.dmurph.com/img/kFKPHKfHTG-1733.webp 1733w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/kFKPHKfHTG-250.jpeg&quot; alt=&quot;Grooves for the strips.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;250&quot; height=&quot;519&quot; srcset=&quot;https://www.dmurph.com/img/kFKPHKfHTG-250.jpeg 250w, https://www.dmurph.com/img/kFKPHKfHTG-500.jpeg 500w, https://www.dmurph.com/img/kFKPHKfHTG-1733.jpeg 1733w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/KvM6thG2of-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/KvM6thG2of-250.webp 250w, https://www.dmurph.com/img/KvM6thG2of-500.webp 500w, https://www.dmurph.com/img/KvM6thG2of-2268.webp 2268w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/KvM6thG2of-250.jpeg&quot; alt=&quot;Holes to the back&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;250&quot; height=&quot;444&quot; srcset=&quot;https://www.dmurph.com/img/KvM6thG2of-250.jpeg 250w, https://www.dmurph.com/img/KvM6thG2of-500.jpeg 500w, https://www.dmurph.com/img/KvM6thG2of-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/Cev2oXBVIO-1816.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Cev2oXBVIO-250.webp 250w, https://www.dmurph.com/img/Cev2oXBVIO-500.webp 500w, https://www.dmurph.com/img/Cev2oXBVIO-1816.webp 1816w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Cev2oXBVIO-250.jpeg&quot; alt=&quot;Controller &amp; power plug location on the back.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;250&quot; height=&quot;369&quot; srcset=&quot;https://www.dmurph.com/img/Cev2oXBVIO-250.jpeg 250w, https://www.dmurph.com/img/Cev2oXBVIO-500.jpeg 500w, https://www.dmurph.com/img/Cev2oXBVIO-1816.jpeg 1816w&quot; sizes=&quot;(max-width: 250px) 100vw, 250px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;  &lt;a href=&quot;https://www.dmurph.com/img/2GnCLGMwpV-2184.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/2GnCLGMwpV-400.webp 400w, https://www.dmurph.com/img/2GnCLGMwpV-800.webp 800w, https://www.dmurph.com/img/2GnCLGMwpV-2184.webp 2184w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/2GnCLGMwpV-400.jpeg&quot; alt=&quot;Connection point between the two strips on the back.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;242&quot; srcset=&quot;https://www.dmurph.com/img/2GnCLGMwpV-400.jpeg 400w, https://www.dmurph.com/img/2GnCLGMwpV-800.jpeg 800w, https://www.dmurph.com/img/2GnCLGMwpV-2184.jpeg 2184w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;safe-connections&quot; tabindex=&quot;-1&quot;&gt;Safe connections.&lt;/h3&gt;
&lt;p&gt;I tried extra hard to make sure the connection between the two strips was safe.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/wVVgsupk2X-2071.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/wVVgsupk2X-300.webp 300w, https://www.dmurph.com/img/wVVgsupk2X-600.webp 600w, https://www.dmurph.com/img/wVVgsupk2X-2071.webp 2071w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/wVVgsupk2X-300.jpeg&quot; alt=&quot;Strips placed!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;216&quot; srcset=&quot;https://www.dmurph.com/img/wVVgsupk2X-300.jpeg 300w, https://www.dmurph.com/img/wVVgsupk2X-600.jpeg 600w, https://www.dmurph.com/img/wVVgsupk2X-2071.jpeg 2071w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/sDbbBPoZGF-2265.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/sDbbBPoZGF-300.webp 300w, https://www.dmurph.com/img/sDbbBPoZGF-600.webp 600w, https://www.dmurph.com/img/sDbbBPoZGF-2265.webp 2265w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/sDbbBPoZGF-300.jpeg&quot; alt=&quot;First, solder the wires together.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;205&quot; srcset=&quot;https://www.dmurph.com/img/sDbbBPoZGF-300.jpeg 300w, https://www.dmurph.com/img/sDbbBPoZGF-600.jpeg 600w, https://www.dmurph.com/img/sDbbBPoZGF-2265.jpeg 2265w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/iDGcsPFx1T-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/iDGcsPFx1T-300.webp 300w, https://www.dmurph.com/img/iDGcsPFx1T-600.webp 600w, https://www.dmurph.com/img/iDGcsPFx1T-2268.webp 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/iDGcsPFx1T-300.jpeg&quot; alt=&quot;Second, put shrink wrap on.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;285&quot; srcset=&quot;https://www.dmurph.com/img/iDGcsPFx1T-300.jpeg 300w, https://www.dmurph.com/img/iDGcsPFx1T-600.jpeg 600w, https://www.dmurph.com/img/iDGcsPFx1T-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/wSZ8hlBu_N-1890.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/wSZ8hlBu_N-300.webp 300w, https://www.dmurph.com/img/wSZ8hlBu_N-600.webp 600w, https://www.dmurph.com/img/wSZ8hlBu_N-1890.webp 1890w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/wSZ8hlBu_N-300.jpeg&quot; alt=&quot;Third, wrap with kapton tape to be extra safe.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;244&quot; srcset=&quot;https://www.dmurph.com/img/wSZ8hlBu_N-300.jpeg 300w, https://www.dmurph.com/img/wSZ8hlBu_N-600.jpeg 600w, https://www.dmurph.com/img/wSZ8hlBu_N-1890.jpeg 1890w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/8txKvsmOu2-1610.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/8txKvsmOu2-300.webp 300w, https://www.dmurph.com/img/8txKvsmOu2-600.webp 600w, https://www.dmurph.com/img/8txKvsmOu2-1610.webp 1610w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/8txKvsmOu2-300.jpeg&quot; alt=&quot;Done!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;347&quot; srcset=&quot;https://www.dmurph.com/img/8txKvsmOu2-300.jpeg 300w, https://www.dmurph.com/img/8txKvsmOu2-600.jpeg 600w, https://www.dmurph.com/img/8txKvsmOu2-1610.jpeg 1610w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, I just had to place &amp;amp; secure the controller &amp;amp; power plug.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/M4sUnRs97E-3248.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/M4sUnRs97E-400.webp 400w, https://www.dmurph.com/img/M4sUnRs97E-800.webp 800w, https://www.dmurph.com/img/M4sUnRs97E-3248.webp 3248w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/M4sUnRs97E-400.jpeg&quot; alt=&quot;Controller placed &amp; secured!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;279&quot; srcset=&quot;https://www.dmurph.com/img/M4sUnRs97E-400.jpeg 400w, https://www.dmurph.com/img/M4sUnRs97E-800.jpeg 800w, https://www.dmurph.com/img/M4sUnRs97E-3248.jpeg 3248w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/6i2qn_7MaH-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/6i2qn_7MaH-300.webp 300w, https://www.dmurph.com/img/6i2qn_7MaH-600.webp 600w, https://www.dmurph.com/img/6i2qn_7MaH-2268.webp 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/6i2qn_7MaH-300.jpeg&quot; alt=&quot;My attempt at securing the power plug so it wouldn&#39;t move when I plugged something it. This didn&#39;t work at all.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;363&quot; srcset=&quot;https://www.dmurph.com/img/6i2qn_7MaH-300.jpeg 300w, https://www.dmurph.com/img/6i2qn_7MaH-600.jpeg 600w, https://www.dmurph.com/img/6i2qn_7MaH-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/Lp2VwAFL1m-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Lp2VwAFL1m-400.webp 400w, https://www.dmurph.com/img/Lp2VwAFL1m-800.webp 800w, https://www.dmurph.com/img/Lp2VwAFL1m-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Lp2VwAFL1m-400.jpeg&quot; alt=&quot;It works!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;315&quot; srcset=&quot;https://www.dmurph.com/img/Lp2VwAFL1m-400.jpeg 400w, https://www.dmurph.com/img/Lp2VwAFL1m-800.jpeg 800w, https://www.dmurph.com/img/Lp2VwAFL1m-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;installing-power-boxes-conduit-and-a-real-plug&quot; tabindex=&quot;-1&quot;&gt;Installing, power boxes, conduit, and a real plug.&lt;/h3&gt;
&lt;p&gt;Instead of that flaky wire cover, I got real conduit this time and installed electrical boxes - now everything is up to code!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/Uso8MySjTZ-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Uso8MySjTZ-800.webp 800w, https://www.dmurph.com/img/Uso8MySjTZ-1600.webp 1600w, https://www.dmurph.com/img/Uso8MySjTZ-2268.webp 2268w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Uso8MySjTZ-800.jpeg&quot; alt=&quot;Installed &amp; working!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;575&quot; srcset=&quot;https://www.dmurph.com/img/Uso8MySjTZ-800.jpeg 800w, https://www.dmurph.com/img/Uso8MySjTZ-1600.jpeg 1600w, https://www.dmurph.com/img/Uso8MySjTZ-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;it-works&quot; tabindex=&quot;-1&quot;&gt;It works!&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/jgrYNf_mOc-360.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;img src=&quot;https://www.dmurph.com/img/jgrYNf_mOc-360.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;360&quot; height=&quot;426&quot; srcset=&quot;https://www.dmurph.com/img/jgrYNf_mOc-360.webp 360w&quot; sizes=&quot;(max-width: 360px) 100vw, 360px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;lessons&quot; tabindex=&quot;-1&quot;&gt;Lessons&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Try to keep my projects scoped to one weekend if at all possible.&lt;/li&gt;
&lt;li&gt;Get all the materials I need before starting. If there are unknowns, figure those out before jumping in.&lt;/li&gt;
&lt;li&gt;Do not do more than one project at a time. If I do, this means I get no projects done as I hit small blockers in all of them and kinda put them all off forever.&lt;/li&gt;
&lt;li&gt;Do not mess around with high wattage.&lt;/li&gt;
&lt;/ul&gt;
</description>
      <pubDate>Sun, 01 Jan 2023 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/cabinet/cabinet-light-refresh.html</guid>
    </item>
    <item>
      <title>Electronics &amp; dispersion (Cabinet Light Pt. 5)</title>
      <link>https://www.dmurph.com/posts/2021/12/cabinet-light-5.html</link>
      <description>&lt;p&gt;It’s time to start installing all of the electronics! I’m using the Arduino Metro here.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/sJLA3Yohf8-2058.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/sJLA3Yohf8-300.webp 300w, https://www.dmurph.com/img/sJLA3Yohf8-600.webp 600w, https://www.dmurph.com/img/sJLA3Yohf8-2058.webp 2058w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/sJLA3Yohf8-300.jpeg&quot; alt=&quot;The Arduino Metro on a protoboard&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;423&quot; srcset=&quot;https://www.dmurph.com/img/sJLA3Yohf8-300.jpeg 300w, https://www.dmurph.com/img/sJLA3Yohf8-600.jpeg 600w, https://www.dmurph.com/img/sJLA3Yohf8-2058.jpeg 2058w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/P32EjsFo_w-2117.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/P32EjsFo_w-350.webp 350w, https://www.dmurph.com/img/P32EjsFo_w-700.webp 700w, https://www.dmurph.com/img/P32EjsFo_w-2117.webp 2117w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/P32EjsFo_w-350.jpeg&quot; alt=&quot;Soldered in!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;350&quot; height=&quot;320&quot; srcset=&quot;https://www.dmurph.com/img/P32EjsFo_w-350.jpeg 350w, https://www.dmurph.com/img/P32EjsFo_w-700.jpeg 700w, https://www.dmurph.com/img/P32EjsFo_w-2117.jpeg 2117w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;Next is wiring the potentiometers to control the HSB values, and the resistors in line with the buttons.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/PDUCI8I4B9-2051.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/PDUCI8I4B9-300.webp 300w, https://www.dmurph.com/img/PDUCI8I4B9-600.webp 600w, https://www.dmurph.com/img/PDUCI8I4B9-2051.webp 2051w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/PDUCI8I4B9-300.jpeg&quot; alt=&quot;Potentiometers&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;364&quot; srcset=&quot;https://www.dmurph.com/img/PDUCI8I4B9-300.jpeg 300w, https://www.dmurph.com/img/PDUCI8I4B9-600.jpeg 600w, https://www.dmurph.com/img/PDUCI8I4B9-2051.jpeg 2051w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/2_9yvG38jo-2527.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/2_9yvG38jo-350.webp 350w, https://www.dmurph.com/img/2_9yvG38jo-700.webp 700w, https://www.dmurph.com/img/2_9yvG38jo-2527.webp 2527w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/2_9yvG38jo-350.jpeg&quot; alt=&quot;Button inline resistors&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;350&quot; height=&quot;312&quot; srcset=&quot;https://www.dmurph.com/img/2_9yvG38jo-350.jpeg 350w, https://www.dmurph.com/img/2_9yvG38jo-700.jpeg 700w, https://www.dmurph.com/img/2_9yvG38jo-2527.jpeg 2527w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finally, wiring it all together into the control box.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/MmImzMJDDK-2175.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/MmImzMJDDK-500.webp 500w, https://www.dmurph.com/img/MmImzMJDDK-1000.webp 1000w, https://www.dmurph.com/img/MmImzMJDDK-2175.webp 2175w&quot; sizes=&quot;(max-width: 500px) 100vw, 500px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/MmImzMJDDK-500.jpeg&quot; alt=&quot;Electronics all installed!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;500&quot; height=&quot;474&quot; srcset=&quot;https://www.dmurph.com/img/MmImzMJDDK-500.jpeg 500w, https://www.dmurph.com/img/MmImzMJDDK-1000.jpeg 1000w, https://www.dmurph.com/img/MmImzMJDDK-2175.jpeg 2175w&quot; sizes=&quot;(max-width: 500px) 100vw, 500px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;testing&quot; tabindex=&quot;-1&quot;&gt;Testing&lt;/h2&gt;
&lt;p&gt;Testing the LEDs out - it works!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/FKuFKHLIBF-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/FKuFKHLIBF-400.webp 400w, https://www.dmurph.com/img/FKuFKHLIBF-800.webp 800w, https://www.dmurph.com/img/FKuFKHLIBF-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/FKuFKHLIBF-400.jpeg&quot; alt=&quot;Lights!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;532&quot; srcset=&quot;https://www.dmurph.com/img/FKuFKHLIBF-400.jpeg 400w, https://www.dmurph.com/img/FKuFKHLIBF-800.jpeg 800w, https://www.dmurph.com/img/FKuFKHLIBF-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/Hj1Rbq_cZ4-2234.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Hj1Rbq_cZ4-400.webp 400w, https://www.dmurph.com/img/Hj1Rbq_cZ4-800.webp 800w, https://www.dmurph.com/img/Hj1Rbq_cZ4-2234.webp 2234w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Hj1Rbq_cZ4-400.jpeg&quot; alt=&quot;Backside :P&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;566&quot; srcset=&quot;https://www.dmurph.com/img/Hj1Rbq_cZ4-400.jpeg 400w, https://www.dmurph.com/img/Hj1Rbq_cZ4-800.jpeg 800w, https://www.dmurph.com/img/Hj1Rbq_cZ4-2234.jpeg 2234w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;upgrading-the-power&quot; tabindex=&quot;-1&quot;&gt;Upgrading the power&lt;/h2&gt;
&lt;p&gt;During testing, I drew too much power for the pigtail connector and had to remove it and upgrade to Anderson connectors. I don’t really like these, as they tend to not ‘connect’ very well, but they have high amperage, which is what I need.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/mscToBrVQ8-2261.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/mscToBrVQ8-400.webp 400w, https://www.dmurph.com/img/mscToBrVQ8-800.webp 800w, https://www.dmurph.com/img/mscToBrVQ8-2261.webp 2261w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/mscToBrVQ8-400.jpeg&quot; alt=&quot;Melted connector&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;516&quot; srcset=&quot;https://www.dmurph.com/img/mscToBrVQ8-400.jpeg 400w, https://www.dmurph.com/img/mscToBrVQ8-800.jpeg 800w, https://www.dmurph.com/img/mscToBrVQ8-2261.jpeg 2261w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/-Tom3HidkO-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/-Tom3HidkO-400.webp 400w, https://www.dmurph.com/img/-Tom3HidkO-800.webp 800w, https://www.dmurph.com/img/-Tom3HidkO-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/-Tom3HidkO-400.jpeg&quot; alt=&quot;New connector!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;499&quot; srcset=&quot;https://www.dmurph.com/img/-Tom3HidkO-400.jpeg 400w, https://www.dmurph.com/img/-Tom3HidkO-800.jpeg 800w, https://www.dmurph.com/img/-Tom3HidkO-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;dispersion&quot; tabindex=&quot;-1&quot;&gt;Dispersion&lt;/h2&gt;
&lt;p&gt;I needed something to disperse the light from the strip a bit to avoid seeing distinct LED light. I grabbed &lt;a href=&quot;https://www.wired4signsusa.com/collections/roma-xl-accessories/products/polycarbonate-diffuser-for-versalles-inferno-paris-xl-berlin-xl-roma-xl-sophia-xl&quot;&gt;these&lt;/a&gt; covers which dispersed really well, but unfortunately were slightly too narrow for the (unplanned) slot I routed:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/DoJR-d3zBX-3005.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-400.webp 400w, https://www.dmurph.com/img/DoJR-d3zBX-800.webp 800w, https://www.dmurph.com/img/DoJR-d3zBX-3005.webp 3005w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/DoJR-d3zBX-400.jpeg&quot; alt=&quot;Unplanned LED strip slot&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;288&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-400.jpeg 400w, https://www.dmurph.com/img/DoJR-d3zBX-800.jpeg 800w, https://www.dmurph.com/img/DoJR-d3zBX-3005.jpeg 3005w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To increase the width of the strip a bit, I used double-sided tape to attach some acetate sheets (projector sheets) that I cut into strips. It worked really well!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/SVYgmjSZv1-2265.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/SVYgmjSZv1-400.webp 400w, https://www.dmurph.com/img/SVYgmjSZv1-800.webp 800w, https://www.dmurph.com/img/SVYgmjSZv1-2265.webp 2265w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/SVYgmjSZv1-400.jpeg&quot; alt=&quot;Taping the sheets to the diffuser&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;443&quot; srcset=&quot;https://www.dmurph.com/img/SVYgmjSZv1-400.jpeg 400w, https://www.dmurph.com/img/SVYgmjSZv1-800.jpeg 800w, https://www.dmurph.com/img/SVYgmjSZv1-2265.jpeg 2265w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/Aa720XVv39-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Aa720XVv39-300.webp 300w, https://www.dmurph.com/img/Aa720XVv39-600.webp 600w, https://www.dmurph.com/img/Aa720XVv39-2268.webp 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Aa720XVv39-300.jpeg&quot; alt=&quot;It works!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;533&quot; srcset=&quot;https://www.dmurph.com/img/Aa720XVv39-300.jpeg 300w, https://www.dmurph.com/img/Aa720XVv39-600.jpeg 600w, https://www.dmurph.com/img/Aa720XVv39-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only thing left is to install under the cabinet!&lt;/p&gt;
</description>
      <pubDate>Mon, 27 Dec 2021 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2021/12/cabinet-light-5.html</guid>
    </item>
    <item>
      <title>Finishing up the wood (Cabinet Light Pt. 4)</title>
      <link>https://www.dmurph.com/posts/2021/12/cabinet-light-4.html</link>
      <description>&lt;p&gt;I need to put the power supply, control circuit, and wires somewhere! To have enough room, I decided to route out a little box at one end of the light, and then two wire channels down the length of the light.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/grNQLKSfSS-4032.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.webp 800w, https://www.dmurph.com/img/grNQLKSfSS-1600.webp 1600w, https://www.dmurph.com/img/grNQLKSfSS-4032.webp 4032w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.jpeg&quot; alt=&quot;I should probably buy a dust collector...&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;450&quot; srcset=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.jpeg 800w, https://www.dmurph.com/img/grNQLKSfSS-1600.jpeg 1600w, https://www.dmurph.com/img/grNQLKSfSS-4032.jpeg 4032w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;!--more--&gt;
&lt;h2 id=&quot;drilling-the-circuit-box&quot; tabindex=&quot;-1&quot;&gt;Drilling the circuit box&lt;/h2&gt;
&lt;p&gt;First step is to start the circuit box with a nice big hole.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/pQhLDv9dwi-2412.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/pQhLDv9dwi-400.webp 400w, https://www.dmurph.com/img/pQhLDv9dwi-800.webp 800w, https://www.dmurph.com/img/pQhLDv9dwi-2412.webp 2412w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/pQhLDv9dwi-400.jpeg&quot; alt=&quot;Box is drawn out.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;284&quot; srcset=&quot;https://www.dmurph.com/img/pQhLDv9dwi-400.jpeg 400w, https://www.dmurph.com/img/pQhLDv9dwi-800.jpeg 800w, https://www.dmurph.com/img/pQhLDv9dwi-2412.jpeg 2412w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/R3iJVA_DKA-1438.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/R3iJVA_DKA-300.webp 300w, https://www.dmurph.com/img/R3iJVA_DKA-600.webp 600w, https://www.dmurph.com/img/R3iJVA_DKA-1438.webp 1438w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/R3iJVA_DKA-300.jpeg&quot; alt=&quot;This is a rather large drill bit.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;486&quot; srcset=&quot;https://www.dmurph.com/img/R3iJVA_DKA-300.jpeg 300w, https://www.dmurph.com/img/R3iJVA_DKA-600.jpeg 600w, https://www.dmurph.com/img/R3iJVA_DKA-1438.jpeg 1438w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/6Pn-wY97AI-1750.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/6Pn-wY97AI-300.webp 300w, https://www.dmurph.com/img/6Pn-wY97AI-600.webp 600w, https://www.dmurph.com/img/6Pn-wY97AI-1750.webp 1750w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/6Pn-wY97AI-300.jpeg&quot; alt=&quot;Result&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;433&quot; srcset=&quot;https://www.dmurph.com/img/6Pn-wY97AI-300.jpeg 300w, https://www.dmurph.com/img/6Pn-wY97AI-600.jpeg 600w, https://www.dmurph.com/img/6Pn-wY97AI-1750.jpeg 1750w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;routing-the-box&quot; tabindex=&quot;-1&quot;&gt;Routing the box&lt;/h2&gt;
&lt;p&gt;Next, I can route out the rest of the box with a hand router.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/5G2gjb1Vpk-1938.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/5G2gjb1Vpk-400.webp 400w, https://www.dmurph.com/img/5G2gjb1Vpk-800.webp 800w, https://www.dmurph.com/img/5G2gjb1Vpk-1938.webp 1938w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/5G2gjb1Vpk-400.jpeg&quot; alt=&quot;It&#39;s time for routing.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;431&quot; srcset=&quot;https://www.dmurph.com/img/5G2gjb1Vpk-400.jpeg 400w, https://www.dmurph.com/img/5G2gjb1Vpk-800.jpeg 800w, https://www.dmurph.com/img/5G2gjb1Vpk-1938.jpeg 1938w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/wR-0ikHad3-2050.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/wR-0ikHad3-400.webp 400w, https://www.dmurph.com/img/wR-0ikHad3-800.webp 800w, https://www.dmurph.com/img/wR-0ikHad3-2050.webp 2050w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/wR-0ikHad3-400.jpeg&quot; alt=&quot;Routing is in action.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;503&quot; srcset=&quot;https://www.dmurph.com/img/wR-0ikHad3-400.jpeg 400w, https://www.dmurph.com/img/wR-0ikHad3-800.jpeg 800w, https://www.dmurph.com/img/wR-0ikHad3-2050.jpeg 2050w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;channels&quot; tabindex=&quot;-1&quot;&gt;Channels&lt;/h2&gt;
&lt;p&gt;Finally, I routed out some simple channels on the back of the wood to house the wires that will run down the length of the strip to power it, and connect to the buttons.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/grNQLKSfSS-4032.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.webp 800w, https://www.dmurph.com/img/grNQLKSfSS-1600.webp 1600w, https://www.dmurph.com/img/grNQLKSfSS-4032.webp 4032w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.jpeg&quot; alt=&quot;The box and channels are complete on this piece of wood.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;450&quot; srcset=&quot;https://www.dmurph.com/img/grNQLKSfSS-800.jpeg 800w, https://www.dmurph.com/img/grNQLKSfSS-1600.jpeg 1600w, https://www.dmurph.com/img/grNQLKSfSS-4032.jpeg 4032w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;mistake-cutting-the-2x4&quot; tabindex=&quot;-1&quot;&gt;Mistake - Cutting the 2x4&lt;/h2&gt;
&lt;p&gt;I made some mistakes here. First, I made a mistake by cutting the 2x4 into 3 pieces instead of keeping it one big piece. Second, I just tried to glue these together without dowels. It was VERY hard to keep these pieces from breaking apart, and I had to re-glue and reinforce one of these connections multiple times. It also didn’t help that I didn’t have a proper miter saw, which meant the cuts were not flat.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/Bo_256-Ls0-2750.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Bo_256-Ls0-500.webp 500w, https://www.dmurph.com/img/Bo_256-Ls0-1000.webp 1000w, https://www.dmurph.com/img/Bo_256-Ls0-2750.webp 2750w&quot; sizes=&quot;(max-width: 500px) 100vw, 500px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Bo_256-Ls0-500.jpeg&quot; alt=&quot;The ultra-clamp contraption I created for gluing the ends here.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;500&quot; height=&quot;309&quot; srcset=&quot;https://www.dmurph.com/img/Bo_256-Ls0-500.jpeg 500w, https://www.dmurph.com/img/Bo_256-Ls0-1000.jpeg 1000w, https://www.dmurph.com/img/Bo_256-Ls0-2750.jpeg 2750w&quot; sizes=&quot;(max-width: 500px) 100vw, 500px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/LQvXkNVgMx-1938.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/LQvXkNVgMx-300.webp 300w, https://www.dmurph.com/img/LQvXkNVgMx-600.webp 600w, https://www.dmurph.com/img/LQvXkNVgMx-1938.webp 1938w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/LQvXkNVgMx-300.jpeg&quot; alt=&quot;The second glue was tricky.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;509&quot; srcset=&quot;https://www.dmurph.com/img/LQvXkNVgMx-300.jpeg 300w, https://www.dmurph.com/img/LQvXkNVgMx-600.jpeg 600w, https://www.dmurph.com/img/LQvXkNVgMx-1938.jpeg 1938w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I ended up putting in some pocket screws here too, but those also failed. Dowels would have been much, much better.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/GoVW588jcU-2261.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/GoVW588jcU-400.webp 400w, https://www.dmurph.com/img/GoVW588jcU-800.webp 800w, https://www.dmurph.com/img/GoVW588jcU-2261.webp 2261w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/GoVW588jcU-400.jpeg&quot; alt=&quot;The first pocket screws&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;467&quot; srcset=&quot;https://www.dmurph.com/img/GoVW588jcU-400.jpeg 400w, https://www.dmurph.com/img/GoVW588jcU-800.jpeg 800w, https://www.dmurph.com/img/GoVW588jcU-2261.jpeg 2261w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/zeqb1V8EH6-2041.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/zeqb1V8EH6-450.webp 450w, https://www.dmurph.com/img/zeqb1V8EH6-900.webp 900w, https://www.dmurph.com/img/zeqb1V8EH6-2041.webp 2041w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/zeqb1V8EH6-450.jpeg&quot; alt=&quot;After that broke, the second pocket screws&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;450&quot; height=&quot;427&quot; srcset=&quot;https://www.dmurph.com/img/zeqb1V8EH6-450.jpeg 450w, https://www.dmurph.com/img/zeqb1V8EH6-900.jpeg 900w, https://www.dmurph.com/img/zeqb1V8EH6-2041.jpeg 2041w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;finishing-external-controls&quot; tabindex=&quot;-1&quot;&gt;Finishing &amp;amp; External Controls&lt;/h2&gt;
&lt;p&gt;I finished the wood with &lt;a href=&quot;https://www.rubiomonocoatusa.com/products/oil-plus-2c-350ml&quot;&gt;Rubio Monocoat - Oil Plus 2C&lt;/a&gt;, which brought out the color of the red cedar really well!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/PoUQH0qRRr-1859.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/PoUQH0qRRr-300.webp 300w, https://www.dmurph.com/img/PoUQH0qRRr-600.webp 600w, https://www.dmurph.com/img/PoUQH0qRRr-1859.webp 1859w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/PoUQH0qRRr-300.jpeg&quot; alt=&quot;Unnecessarily finishing inside the circuit box&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;267&quot; srcset=&quot;https://www.dmurph.com/img/PoUQH0qRRr-300.jpeg 300w, https://www.dmurph.com/img/PoUQH0qRRr-600.jpeg 600w, https://www.dmurph.com/img/PoUQH0qRRr-1859.jpeg 1859w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/d4syq4i7ii-2585.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/d4syq4i7ii-350.webp 350w, https://www.dmurph.com/img/d4syq4i7ii-700.webp 700w, https://www.dmurph.com/img/d4syq4i7ii-2585.webp 2585w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/d4syq4i7ii-350.jpeg&quot; alt=&quot;Drilling out the knob controls&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;350&quot; height=&quot;272&quot; srcset=&quot;https://www.dmurph.com/img/d4syq4i7ii-350.jpeg 350w, https://www.dmurph.com/img/d4syq4i7ii-700.jpeg 700w, https://www.dmurph.com/img/d4syq4i7ii-2585.jpeg 2585w&quot; sizes=&quot;(max-width: 350px) 100vw, 350px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/fQlC2cWvEC-1344.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/fQlC2cWvEC-300.webp 300w, https://www.dmurph.com/img/fQlC2cWvEC-600.webp 600w, https://www.dmurph.com/img/fQlC2cWvEC-1344.webp 1344w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/fQlC2cWvEC-300.jpeg&quot; alt=&quot;Button holes, mid-finishing&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;438&quot; srcset=&quot;https://www.dmurph.com/img/fQlC2cWvEC-300.jpeg 300w, https://www.dmurph.com/img/fQlC2cWvEC-600.jpeg 600w, https://www.dmurph.com/img/fQlC2cWvEC-1344.jpeg 1344w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/PJtajjFLNy-2673.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/PJtajjFLNy-300.webp 300w, https://www.dmurph.com/img/PJtajjFLNy-600.webp 600w, https://www.dmurph.com/img/PJtajjFLNy-2673.webp 2673w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/PJtajjFLNy-300.jpeg&quot; alt=&quot;End cap!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;219&quot; srcset=&quot;https://www.dmurph.com/img/PJtajjFLNy-300.jpeg 300w, https://www.dmurph.com/img/PJtajjFLNy-600.jpeg 600w, https://www.dmurph.com/img/PJtajjFLNy-2673.jpeg 2673w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;next&quot; tabindex=&quot;-1&quot;&gt;Next?&lt;/h2&gt;
&lt;p&gt;Now with the wood hopefully finished, we can move on to adding all of the circuitry!&lt;/p&gt;
</description>
      <pubDate>Sun, 26 Dec 2021 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2021/12/cabinet-light-4.html</guid>
    </item>
    <item>
      <title>Repairing a P4400 Kill A Watt meter (aka 1800-Watt meter)</title>
      <link>https://www.dmurph.com/posts/2021/2/kill-a-watt-repair.html</link>
      <description>&lt;p&gt;Recognize &lt;a href=&quot;http://www.p3international.com/products/p4400.html&quot;&gt;this thing&lt;/a&gt;? It measures your power usage and is somehow always more expensive than you expect. I definitely blew a fuse or something in mine drawing a lot of power - time to fix it!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/HGLjGMSBHV-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/HGLjGMSBHV-600.webp 600w, https://www.dmurph.com/img/HGLjGMSBHV-1200.webp 1200w, https://www.dmurph.com/img/HGLjGMSBHV-2268.webp 2268w&quot; sizes=&quot;(max-width: 600px) 100vw, 600px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/HGLjGMSBHV-600.jpeg&quot; alt=&quot;P4400 Kill A Watt power usage meter&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;600&quot; height=&quot;578&quot; srcset=&quot;https://www.dmurph.com/img/HGLjGMSBHV-600.jpeg 600w, https://www.dmurph.com/img/HGLjGMSBHV-1200.jpeg 1200w, https://www.dmurph.com/img/HGLjGMSBHV-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 600px) 100vw, 600px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I learn after the fact that this is only designed to handle 15 amps, which at 120 volts is 1800 watts! That’s a lot of watts.&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;Anyways, let’s take it apart! At first glance it looks like something shorted on the male plug side of the board, but it turns out that part is fine. Seems like quite a lot of solder, but&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/w4o8umjzIg-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/w4o8umjzIg-400.webp 400w, https://www.dmurph.com/img/w4o8umjzIg-800.webp 800w, https://www.dmurph.com/img/w4o8umjzIg-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/w4o8umjzIg-400.jpeg&quot; alt=&quot;Male plug, with lots of solder!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;457&quot; srcset=&quot;https://www.dmurph.com/img/w4o8umjzIg-400.jpeg 400w, https://www.dmurph.com/img/w4o8umjzIg-800.jpeg 800w, https://www.dmurph.com/img/w4o8umjzIg-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I find the fuse, and unfortunately it isn’t replaceable. Using a multimeter, I see that there is no current across the fuse. Time to take it off!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/NXaQnE3pll-2263.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/NXaQnE3pll-300.webp 300w, https://www.dmurph.com/img/NXaQnE3pll-600.webp 600w, https://www.dmurph.com/img/NXaQnE3pll-2263.webp 2263w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/NXaQnE3pll-300.jpeg&quot; alt=&quot;Female plug and fuse&quot; title=&quot;Female plug part of the circuit and the fuse&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;297&quot; srcset=&quot;https://www.dmurph.com/img/NXaQnE3pll-300.jpeg 300w, https://www.dmurph.com/img/NXaQnE3pll-600.jpeg 600w, https://www.dmurph.com/img/NXaQnE3pll-2263.jpeg 2263w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/-SxOT4cXZX-1666.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/-SxOT4cXZX-300.webp 300w, https://www.dmurph.com/img/-SxOT4cXZX-600.webp 600w, https://www.dmurph.com/img/-SxOT4cXZX-1666.webp 1666w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/-SxOT4cXZX-300.jpeg&quot; alt=&quot;No current!&quot; title=&quot;Multimeter checking the current across the fuse, showing that the fuse is blown&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;347&quot; srcset=&quot;https://www.dmurph.com/img/-SxOT4cXZX-300.jpeg 300w, https://www.dmurph.com/img/-SxOT4cXZX-600.jpeg 600w, https://www.dmurph.com/img/-SxOT4cXZX-1666.jpeg 1666w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/n0DvheFbWv-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/n0DvheFbWv-300.webp 300w, https://www.dmurph.com/img/n0DvheFbWv-600.webp 600w, https://www.dmurph.com/img/n0DvheFbWv-2268.webp 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/n0DvheFbWv-300.jpeg&quot; alt=&quot;Snip snip!&quot; title=&quot;Wire cutters removing the bad fuse&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;313&quot; srcset=&quot;https://www.dmurph.com/img/n0DvheFbWv-300.jpeg 300w, https://www.dmurph.com/img/n0DvheFbWv-600.jpeg 600w, https://www.dmurph.com/img/n0DvheFbWv-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So how do we add a new fuse? It turns out there are two really handy test contacts that are perfect for soldering! I have a spare car fuse from a previous project so I can use that.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/ACPyrKkmwE-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/ACPyrKkmwE-400.webp 400w, https://www.dmurph.com/img/ACPyrKkmwE-800.webp 800w, https://www.dmurph.com/img/ACPyrKkmwE-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/ACPyrKkmwE-400.jpeg&quot; alt=&quot;Easy solder points!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;461&quot; srcset=&quot;https://www.dmurph.com/img/ACPyrKkmwE-400.jpeg 400w, https://www.dmurph.com/img/ACPyrKkmwE-800.jpeg 800w, https://www.dmurph.com/img/ACPyrKkmwE-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/_jOzqQtPI3-1848.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/_jOzqQtPI3-400.webp 400w, https://www.dmurph.com/img/_jOzqQtPI3-800.webp 800w, https://www.dmurph.com/img/_jOzqQtPI3-1848.webp 1848w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/_jOzqQtPI3-400.jpeg&quot; alt=&quot;Spare car fuse - hopefully not too big&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;451&quot; srcset=&quot;https://www.dmurph.com/img/_jOzqQtPI3-400.jpeg 400w, https://www.dmurph.com/img/_jOzqQtPI3-800.jpeg 800w, https://www.dmurph.com/img/_jOzqQtPI3-1848.jpeg 1848w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/2IGSRej0wy-2061.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/2IGSRej0wy-400.webp 400w, https://www.dmurph.com/img/2IGSRej0wy-800.webp 800w, https://www.dmurph.com/img/2IGSRej0wy-2061.webp 2061w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/2IGSRej0wy-400.jpeg&quot; alt=&quot;First solder&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;349&quot; srcset=&quot;https://www.dmurph.com/img/2IGSRej0wy-400.jpeg 400w, https://www.dmurph.com/img/2IGSRej0wy-800.jpeg 800w, https://www.dmurph.com/img/2IGSRej0wy-2061.jpeg 2061w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/k0YpAY9TBK-2005.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/k0YpAY9TBK-400.webp 400w, https://www.dmurph.com/img/k0YpAY9TBK-800.webp 800w, https://www.dmurph.com/img/k0YpAY9TBK-2005.webp 2005w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/k0YpAY9TBK-400.jpeg&quot; alt=&quot;Second solder&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;355&quot; srcset=&quot;https://www.dmurph.com/img/k0YpAY9TBK-400.jpeg 400w, https://www.dmurph.com/img/k0YpAY9TBK-800.jpeg 800w, https://www.dmurph.com/img/k0YpAY9TBK-2005.jpeg 2005w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And that’s it! I’m barely able to fit the fuse in, but with a little poking and prodding I’m able to jam it all in there. I plug it in and it works! Hooray!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/7RSKqCQiwP-2268.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/7RSKqCQiwP-400.webp 400w, https://www.dmurph.com/img/7RSKqCQiwP-800.webp 800w, https://www.dmurph.com/img/7RSKqCQiwP-2268.webp 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/7RSKqCQiwP-400.jpeg&quot; alt=&quot;Barely fits&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;467&quot; srcset=&quot;https://www.dmurph.com/img/7RSKqCQiwP-400.jpeg 400w, https://www.dmurph.com/img/7RSKqCQiwP-800.jpeg 800w, https://www.dmurph.com/img/7RSKqCQiwP-2268.jpeg 2268w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/OR4Tk0YzXC-2014.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/OR4Tk0YzXC-400.webp 400w, https://www.dmurph.com/img/OR4Tk0YzXC-800.webp 800w, https://www.dmurph.com/img/OR4Tk0YzXC-2014.webp 2014w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/OR4Tk0YzXC-400.jpeg&quot; alt=&quot;It works!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;464&quot; srcset=&quot;https://www.dmurph.com/img/OR4Tk0YzXC-400.jpeg 400w, https://www.dmurph.com/img/OR4Tk0YzXC-800.jpeg 800w, https://www.dmurph.com/img/OR4Tk0YzXC-2014.jpeg 2014w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hopefully this helps you repair your kill-a-watt meter if it breaks :)&lt;/p&gt;
</description>
      <pubDate>Mon, 01 Feb 2021 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2021/2/kill-a-watt-repair.html</guid>
    </item>
    <item>
      <title>Ouch! My Eyes! Arduino WS2812B Setup &amp; RGBW Transformation (Cabinet Light Pt. 3)</title>
      <link>https://www.dmurph.com/posts/2021/1/cabinet-light-3.html</link>
      <description>&lt;p&gt;Now that the enclosure is in a good-enough state, it’s time to start trying to get the lights working!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/lQLiavUbEk-3570.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/lQLiavUbEk-800.webp 800w, https://www.dmurph.com/img/lQLiavUbEk-1600.webp 1600w, https://www.dmurph.com/img/lQLiavUbEk-3570.webp 3570w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/lQLiavUbEk-800.jpeg&quot; alt=&quot;Test Setup&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;509&quot; srcset=&quot;https://www.dmurph.com/img/lQLiavUbEk-800.jpeg 800w, https://www.dmurph.com/img/lQLiavUbEk-1600.jpeg 1600w, https://www.dmurph.com/img/lQLiavUbEk-3570.jpeg 3570w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/fnwQAEya6Y-1080.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;img src=&quot;https://www.dmurph.com/img/fnwQAEya6Y-320.webp&quot; alt=&quot;Result: RGB knobs that control the color!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;320&quot; height=&quot;302&quot; srcset=&quot;https://www.dmurph.com/img/fnwQAEya6Y-320.webp 320w, https://www.dmurph.com/img/fnwQAEya6Y-640.webp 640w, https://www.dmurph.com/img/fnwQAEya6Y-1080.webp 1080w&quot; sizes=&quot;(max-width: 320px) 100vw, 320px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;!--more--&gt;
&lt;h2 id=&quot;supplies&quot; tabindex=&quot;-1&quot;&gt;Supplies&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;RGBW WS2812B (SK6812) &lt;a href=&quot;https://www.btf-lighting.com/collections/pixels-led-strip-1/products/1-sk6812-rgbw-4-in-1-pixels-individual-addressable-led-strip-dc5v&quot;&gt;strip&lt;/a&gt; from BTF-Lighting.&lt;/li&gt;
&lt;li&gt;Arduino Uno &lt;a href=&quot;https://store.arduino.cc/usa/arduino-starter-kit&quot;&gt;Starter Kit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;12a 5v power supply.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;hardware&quot; tabindex=&quot;-1&quot;&gt;Hardware&lt;/h2&gt;
&lt;p&gt;This is the hardware setup:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/GusF9uGGKl-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/GusF9uGGKl-800.webp 800w, https://www.dmurph.com/img/GusF9uGGKl-1600.webp 1600w, https://www.dmurph.com/img/GusF9uGGKl-3024.webp 3024w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/GusF9uGGKl-800.jpeg&quot; alt=&quot;Arduino, power supply, and wiring.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;1066&quot; srcset=&quot;https://www.dmurph.com/img/GusF9uGGKl-800.jpeg 800w, https://www.dmurph.com/img/GusF9uGGKl-1600.jpeg 1600w, https://www.dmurph.com/img/GusF9uGGKl-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Power Supply&lt;/strong&gt; - 5v, 12a power supply (see calculations below). Powers only the strip, at both ends due to 5v &amp;amp; resistance along the strip line.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RGB+WW Strip&lt;/strong&gt; - This is a 5 meter, WS2812B (SK6812) LED Strip. WW stands for warm-white, which means it has 4 LEDs: red, green, blue, and warm-white.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Strip Data &amp;amp; Data&lt;/strong&gt; - This line contains 3 wires, 2 power (bridged to the power lines) and 1 data. I connect the common/neutral line to the Arduino neutral, tape the hot wire to prevent connection, and connect the data wire to the Arduino.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;R, G, B Potentiometers&lt;/strong&gt; - These are connected to analog input pins on the Arduino to control the color.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;USB &amp;amp; Arduino Uno&lt;/strong&gt; - USB goes to my laptop, which powers the Arduino Uno.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;power-calculations&quot; tabindex=&quot;-1&quot;&gt;Power Calculations&lt;/h3&gt;
&lt;p&gt;Power calculations for testing setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;5 meters&lt;/li&gt;
&lt;li&gt;18 watts per meter, at 60 LEDs / meter, = 90 watts (see Note),&lt;/li&gt;
&lt;li&gt;90w / 5v = 18amps for 5 meters&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Will I need a full 18 watts per meter? I don’t plan on using all 4 LEDs at once with full power. Let’s explore the power comparison:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/ZOCtN5miEd-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/ZOCtN5miEd-200.webp 200w, https://www.dmurph.com/img/ZOCtN5miEd-400.webp 400w, https://www.dmurph.com/img/ZOCtN5miEd-3024.webp 3024w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/ZOCtN5miEd-200.jpeg&quot; alt=&quot;RGB-only&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;200&quot; height=&quot;148&quot; srcset=&quot;https://www.dmurph.com/img/ZOCtN5miEd-200.jpeg 200w, https://www.dmurph.com/img/ZOCtN5miEd-400.jpeg 400w, https://www.dmurph.com/img/ZOCtN5miEd-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/1Gp0OTOMkD-2560.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/1Gp0OTOMkD-200.webp 200w, https://www.dmurph.com/img/1Gp0OTOMkD-400.webp 400w, https://www.dmurph.com/img/1Gp0OTOMkD-2560.webp 2560w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/1Gp0OTOMkD-200.jpeg&quot; alt=&quot;W-only&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;200&quot; height=&quot;132&quot; srcset=&quot;https://www.dmurph.com/img/1Gp0OTOMkD-200.jpeg 200w, https://www.dmurph.com/img/1Gp0OTOMkD-400.jpeg 400w, https://www.dmurph.com/img/1Gp0OTOMkD-2560.jpeg 2560w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/Tvr2u3kMVk-2390.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/Tvr2u3kMVk-200.webp 200w, https://www.dmurph.com/img/Tvr2u3kMVk-400.webp 400w, https://www.dmurph.com/img/Tvr2u3kMVk-2390.webp 2390w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/Tvr2u3kMVk-200.jpeg&quot; alt=&quot;RGBW Transformed&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;200&quot; height=&quot;138&quot; srcset=&quot;https://www.dmurph.com/img/Tvr2u3kMVk-200.jpeg 200w, https://www.dmurph.com/img/Tvr2u3kMVk-400.jpeg 400w, https://www.dmurph.com/img/Tvr2u3kMVk-2390.jpeg 2390w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.dmurph.com/img/EGeQyGUtgG-2016.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/EGeQyGUtgG-200.webp 200w, https://www.dmurph.com/img/EGeQyGUtgG-400.webp 400w, https://www.dmurph.com/img/EGeQyGUtgG-2016.webp 2016w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/EGeQyGUtgG-200.jpeg&quot; alt=&quot;RGBW Full Power&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;200&quot; height=&quot;148&quot; srcset=&quot;https://www.dmurph.com/img/EGeQyGUtgG-200.jpeg 200w, https://www.dmurph.com/img/EGeQyGUtgG-400.jpeg 400w, https://www.dmurph.com/img/EGeQyGUtgG-2016.jpeg 2016w&quot; sizes=&quot;(max-width: 200px) 100vw, 200px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; This power supply is slightly under-powered (only 12a), and my 20a one wasn’t working correctly. So some of the higher power reading here might be low / would be higher if the supply was more capable.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;RGB-only&lt;/strong&gt;: &lt;code&gt;0.418a * 120v / 5v = 10 amps @ 5 volts&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;W-only&lt;/strong&gt;: &lt;code&gt;0.286a * 120v / 5v = 6.9 amps @ 5 volts&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RGBW Transformed&lt;/strong&gt;: &lt;code&gt;0.335a * 120v / 5v = 8 amps @ 5 volts&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RGBW Full (all LEDs max)&lt;/strong&gt;: &lt;code&gt;0.586a * 120v / 5v = 14 amps @ 5 volts&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For RGBW Transformed, &lt;code&gt;8 amps * 5 volts = 40 watts&lt;/code&gt;, which is &lt;code&gt;8 watts/meter&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&quot;results&quot; tabindex=&quot;-1&quot;&gt;Results&lt;/h4&gt;
&lt;p&gt;Power calculations for final setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;~12 feet (~3.6 meters)&lt;/li&gt;
&lt;li&gt;~10 watts per meter (to be safe), = 10 * 3.6 = 36 watts&lt;/li&gt;
&lt;li&gt;36w / 5v = ~6 amps&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Only possible change here is I want to have a SUPER BRIGHT mode, where I turn on all LEDs to the max. Probably not worth the extra transformer size to supply the required amps. But maybe it is…&lt;/p&gt;
&lt;h3 id=&quot;sending-enough-power&quot; tabindex=&quot;-1&quot;&gt;Sending Enough Power&lt;/h3&gt;
&lt;p&gt;Since this strip is 5 meters, there is too much resistance in the internal wires to get the 5v down the whole thing. If you don’t power both ends, it will start to red-shift. Like so:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/u4UPtAqGzx-2649.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/u4UPtAqGzx-400.webp 400w, https://www.dmurph.com/img/u4UPtAqGzx-800.webp 800w, https://www.dmurph.com/img/u4UPtAqGzx-2649.webp 2649w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/u4UPtAqGzx-400.jpeg&quot; alt=&quot;Underpowered&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;324&quot; srcset=&quot;https://www.dmurph.com/img/u4UPtAqGzx-400.jpeg 400w, https://www.dmurph.com/img/u4UPtAqGzx-800.jpeg 800w, https://www.dmurph.com/img/u4UPtAqGzx-2649.jpeg 2649w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/3I5gGJ0ps4-2509.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/3I5gGJ0ps4-400.webp 400w, https://www.dmurph.com/img/3I5gGJ0ps4-800.webp 800w, https://www.dmurph.com/img/3I5gGJ0ps4-2509.webp 2509w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/3I5gGJ0ps4-400.jpeg&quot; alt=&quot;Powered&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;342&quot; srcset=&quot;https://www.dmurph.com/img/3I5gGJ0ps4-400.jpeg 400w, https://www.dmurph.com/img/3I5gGJ0ps4-800.jpeg 800w, https://www.dmurph.com/img/3I5gGJ0ps4-2509.jpeg 2509w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;software&quot; tabindex=&quot;-1&quot;&gt;Software&lt;/h2&gt;
&lt;p&gt;I used the &lt;a href=&quot;https://www.arduino.cc/en/software&quot;&gt;Arduino IDE&lt;/a&gt;, the &lt;a href=&quot;https://github.com/FastLED/FastLED&quot;&gt;FastLED&lt;/a&gt; library, and mostly followed the example from &lt;a href=&quot;https://www.partsnotincluded.com/fastled-rgbw-neopixels-sk6812/&quot;&gt;this post&lt;/a&gt; about hack FastLED to support RGBW. This works enough for my use-case here.&lt;/p&gt;
&lt;p&gt;See my gist &lt;a href=&quot;https://gist.github.com/dmurph/c650904699d0b3a6db3dfefd8c2fded4&quot;&gt;here&lt;/a&gt; for the source code I used for this testing setup.&lt;/p&gt;
&lt;h3 id=&quot;transforming-rgb-to-rgbw&quot; tabindex=&quot;-1&quot;&gt;Transforming RGB to RGBW&lt;/h3&gt;
&lt;p&gt;I have a problem now - I can turn on the red, green, blue, and warm-white, but I don’t have a formula to take an RGB input and use the warm-white LED well.&lt;/p&gt;
&lt;p&gt;To experiment with this, I create 3 color transformations:&lt;/p&gt;
&lt;h4 id=&quot;1-no-ww-led&quot; tabindex=&quot;-1&quot;&gt;1) No WW Led&lt;/h4&gt;
&lt;p&gt;Just RGB, to see what that looks like.&lt;/p&gt;
&lt;h4 id=&quot;2-greedy-true-white-led-algorithm&quot; tabindex=&quot;-1&quot;&gt;2) Greedy “True White” LED Algorithm&lt;/h4&gt;
&lt;p&gt;Treat the WW LED as “true white”, remove the smallest RGB value from all RGB values, set the “white” LED to that value, and then subtract that from the RGB values.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Input: &lt;code&gt;R=100, G=200, B=220&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Smallest RGB value is &lt;code&gt;R = 100&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;W = 100&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Subtract that from RGB values, so&lt;/li&gt;
&lt;li&gt;Output: &lt;code&gt;R=0, G=100, B=120, W=100&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Hand-wavy power comparison:
&lt;ul&gt;
&lt;li&gt;RGB power = &lt;code&gt;100 + 200 + 220 = 520&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;RGBW power = &lt;code&gt;0 + 100 + 120 + 100 = 320&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Algorithm:&lt;/p&gt;
&lt;script src=&quot;https://gist.github.com/dmurph/c650904699d0b3a6db3dfefd8c2fded4.js?file=RGB1.ino&quot;&gt;&lt;/script&gt;
&lt;h4 id=&quot;3-greedy-transformed-white-led-algorithm&quot; tabindex=&quot;-1&quot;&gt;3) Greedy “Transformed White” LED Algorithm&lt;/h4&gt;
&lt;p&gt;Unfortunately our LED is not “true white”, and does not represent the RGB color &lt;code&gt;(255, 255, 255)&lt;/code&gt;. Instead, I can use this &lt;a href=&quot;https://andi-siess.de/rgb-to-color-temperature/&quot;&gt;chart&lt;/a&gt; to find the approximate RGB value of my 4500k color temperature warm white LED: &lt;code&gt;(255, 219, 186)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The basic algorithm here finds, for each R, G, and B, what would the “transformed white” value need to be to produce that channel value. Then, use the minimum of those values to get the appropriate “transformed white” value. Finally, subtract the appropriate channel values from R, G, and B given the white value, and you’re done.&lt;/p&gt;
&lt;p&gt;Algorithm:&lt;/p&gt;
&lt;script src=&quot;https://gist.github.com/dmurph/c650904699d0b3a6db3dfefd8c2fded4.js?file=RGB2.ino&quot;&gt;&lt;/script&gt;
&lt;h4 id=&quot;results-1&quot; tabindex=&quot;-1&quot;&gt;Results&lt;/h4&gt;
&lt;p&gt;See the results in this image here, which shows the algorithms representing the color white &lt;code&gt;(255, 255, 255)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/ZGAzKZjjCI-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/ZGAzKZjjCI-800.webp 800w, https://www.dmurph.com/img/ZGAzKZjjCI-1600.webp 1600w, https://www.dmurph.com/img/ZGAzKZjjCI-3024.webp 3024w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/ZGAzKZjjCI-800.jpeg&quot; alt=&quot;RGBWW Color Transformation Test&quot; title=&quot;Creating &#39;White&#39; with RGB+WW (warm-white)&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;458&quot; srcset=&quot;https://www.dmurph.com/img/ZGAzKZjjCI-800.jpeg 800w, https://www.dmurph.com/img/ZGAzKZjjCI-1600.jpeg 1600w, https://www.dmurph.com/img/ZGAzKZjjCI-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;“100% RGB” is the first algorithm, where no white LED is used at all.
&lt;ul&gt;
&lt;li&gt;Blue tint - this isn’t a good white reproduction as the LEDs can have slightly different strengths.&lt;/li&gt;
&lt;li&gt;Output: &lt;code&gt;(255, 255, 255, 0)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;“100% WW” is the second algorithm, where the only WW LED is used.
&lt;ul&gt;
&lt;li&gt;This is a little too ‘warm’ for an accurate white.&lt;/li&gt;
&lt;li&gt;Output: &lt;code&gt;(0, 0, 0, 255)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;“RGB+WW” is the third algorithm, where the WW temperature is taken into account.
&lt;ul&gt;
&lt;li&gt;Looks pretty good!&lt;/li&gt;
&lt;li&gt;Output: &lt;code&gt;(0, 36, 69, 255)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;conclusion&quot; tabindex=&quot;-1&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Alright, so I think I’m relatively happy with this setup &amp;amp; the color transformation. I might lower my power supply amps to make it smaller, and maybe do 2 of them to make them even smaller (for both sides of the strip). I want to fit them in my 2x4!&lt;/p&gt;
&lt;p&gt;Next time - I still have a lot of stuff to do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Diffusion! How will I diffuse the LEDs?&lt;/li&gt;
&lt;li&gt;Lower density LED strip! Maybe I don’t need 60 LEDs/meter, I could do 30 instead and have less power.&lt;/li&gt;
&lt;li&gt;Using a Metro Mini instead of the Uno for size.&lt;/li&gt;
&lt;li&gt;Buttons for turning sections on and off! Need to get panel mount buttons maybe so they can stick out of wood&lt;/li&gt;
&lt;li&gt;Planning out how I’m going to fit all of these in the 2x4…&lt;/li&gt;
&lt;li&gt;What about end caps! I completely routed my first 6’ wood piece, that was probably a mistake. I’ll have to maybe cut the other piece in half so I can but the 3’ pieces on the ends &amp;amp; make sure I don’t route all the way…
&lt;ul&gt;
&lt;li&gt;But… I need a way to open the thing up to put in the diffusers, or take them out to unscrew it from the cabinet…&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Probably more things.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let me know if you have ideas, thoughts, or questions!&lt;/p&gt;
</description>
      <pubDate>Sat, 09 Jan 2021 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2021/1/cabinet-light-3.html</guid>
    </item>
    <item>
      <title>Routers! They also cut wood. (Cabinet Light Pt. 2)</title>
      <link>https://www.dmurph.com/posts/2021/1/cabinet-light-2.html</link>
      <description>&lt;p&gt;I figured out a design! After calls to friends and chatting with friendly people at the local hardware store, I go with this design where I route out a single 2x4:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/DzojefaKcT-2659.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/DzojefaKcT-400.webp 400w, https://www.dmurph.com/img/DzojefaKcT-800.webp 800w, https://www.dmurph.com/img/DzojefaKcT-2659.webp 2659w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/DzojefaKcT-400.jpeg&quot; alt=&quot;2-by-4 Design idea&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;400&quot; height=&quot;373&quot; srcset=&quot;https://www.dmurph.com/img/DzojefaKcT-400.jpeg 400w, https://www.dmurph.com/img/DzojefaKcT-800.jpeg 800w, https://www.dmurph.com/img/DzojefaKcT-2659.jpeg 2659w&quot; sizes=&quot;(max-width: 400px) 100vw, 400px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/DoJR-d3zBX-3005.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.webp 450w, https://www.dmurph.com/img/DoJR-d3zBX-900.webp 900w, https://www.dmurph.com/img/DoJR-d3zBX-3005.webp 3005w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.jpeg&quot; alt=&quot;Result&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;450&quot; height=&quot;325&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.jpeg 450w, https://www.dmurph.com/img/DoJR-d3zBX-900.jpeg 900w, https://www.dmurph.com/img/DoJR-d3zBX-3005.jpeg 3005w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I go with this design to prevent complicated carpentry work that I’m not confident about. Instead… I still do carpentry work I’m not confident about, but at least it’s simple! Also, I get to buy a new toy :P&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;New supplies purchased:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A handheld &lt;a href=&quot;https://www.boschtools.com/us/en/boschtools-ocs/palm-routers-gkf125cen-193841-p/&quot;&gt;Bosch GKF125CE&lt;/a&gt; hand router&lt;/li&gt;
&lt;li&gt;An &lt;a href=&quot;https://www.boschtools.com/us/en/boschtools-ocs/router-attachments-palm-routers-pr102-140151-p/&quot;&gt;edge guide&lt;/a&gt; for the router.&lt;/li&gt;
&lt;li&gt;A &lt;a href=&quot;https://www.freudtools.com/products/50-103&quot;&gt;5/8th&amp;quot; router bit&lt;/a&gt; with a bearing on the top (I was told by a friendly architect at the hardware store that I would need this - my edge guide made this not necessary)&lt;/li&gt;
&lt;li&gt;A &lt;a href=&quot;https://www.amazon.com/gp/product/B08614DRV2&quot;&gt;T-Slot&lt;/a&gt; router bit to make the slot for the light diffuser.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I start by doing a quick test route along something close to the center of the wood (not good at doing that yet), and it’s not bad! (see video &lt;a href=&quot;https://photos.app.goo.gl/CMdZCmCES5KJHk5AA&quot;&gt;here&lt;/a&gt; where I damage the wood taking the router out too quick – oops!)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/u-xIv7gaaq-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/u-xIv7gaaq-300.webp 300w, https://www.dmurph.com/img/u-xIv7gaaq-600.webp 600w, https://www.dmurph.com/img/u-xIv7gaaq-3024.webp 3024w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/u-xIv7gaaq-300.jpeg&quot; alt=&quot;The router!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;400&quot; srcset=&quot;https://www.dmurph.com/img/u-xIv7gaaq-300.jpeg 300w, https://www.dmurph.com/img/u-xIv7gaaq-600.jpeg 600w, https://www.dmurph.com/img/u-xIv7gaaq-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; &lt;a href=&quot;https://www.dmurph.com/img/QtBNwTeJuU-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/QtBNwTeJuU-300.webp 300w, https://www.dmurph.com/img/QtBNwTeJuU-600.webp 600w, https://www.dmurph.com/img/QtBNwTeJuU-3024.webp 3024w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/QtBNwTeJuU-300.jpeg&quot; alt=&quot;The cut!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;400&quot; srcset=&quot;https://www.dmurph.com/img/QtBNwTeJuU-300.jpeg 300w, https://www.dmurph.com/img/QtBNwTeJuU-600.jpeg 600w, https://www.dmurph.com/img/QtBNwTeJuU-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finally, I use the other router bit that can take that groove out (so I can eventually slide in a light diffuser).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/RerHYMwTGH-3024.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/RerHYMwTGH-600.webp 600w, https://www.dmurph.com/img/RerHYMwTGH-1200.webp 1200w, https://www.dmurph.com/img/RerHYMwTGH-3024.webp 3024w&quot; sizes=&quot;(max-width: 600px) 100vw, 600px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/RerHYMwTGH-600.jpeg&quot; alt=&quot;New bit, new cut&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;600&quot; height=&quot;800&quot; srcset=&quot;https://www.dmurph.com/img/RerHYMwTGH-600.jpeg 600w, https://www.dmurph.com/img/RerHYMwTGH-1200.jpeg 1200w, https://www.dmurph.com/img/RerHYMwTGH-3024.jpeg 3024w&quot; sizes=&quot;(max-width: 600px) 100vw, 600px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And again, here is the result: &lt;a href=&quot;https://www.dmurph.com/img/DoJR-d3zBX-3005.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.webp 450w, https://www.dmurph.com/img/DoJR-d3zBX-900.webp 900w, https://www.dmurph.com/img/DoJR-d3zBX-3005.webp 3005w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.jpeg&quot; alt=&quot;Result!&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;450&quot; height=&quot;325&quot; srcset=&quot;https://www.dmurph.com/img/DoJR-d3zBX-450.jpeg 450w, https://www.dmurph.com/img/DoJR-d3zBX-900.jpeg 900w, https://www.dmurph.com/img/DoJR-d3zBX-3005.jpeg 3005w&quot; sizes=&quot;(max-width: 450px) 100vw, 450px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next time I’ll probably be experimenting with the light diffusion, or the light program.&lt;/p&gt;
</description>
      <pubDate>Fri, 01 Jan 2021 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2021/1/cabinet-light-2.html</guid>
    </item>
    <item>
      <title>Cabinet Light Project - Part 1</title>
      <link>https://www.dmurph.com/posts/2020/12/cabinet-light-1.html</link>
      <description>&lt;p&gt;I really want to replace this terrible light fixture under my cabinet:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/KdDSfvNIhN-3605.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/KdDSfvNIhN-1000.webp 1000w, https://www.dmurph.com/img/KdDSfvNIhN-2000.webp 2000w, https://www.dmurph.com/img/KdDSfvNIhN-3605.webp 3605w&quot; sizes=&quot;(max-width: 1000px) 100vw, 1000px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/KdDSfvNIhN-1000.jpeg&quot; alt=&quot;Cabinet Light&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;1000&quot; height=&quot;372&quot; srcset=&quot;https://www.dmurph.com/img/KdDSfvNIhN-1000.jpeg 1000w, https://www.dmurph.com/img/KdDSfvNIhN-2000.jpeg 2000w, https://www.dmurph.com/img/KdDSfvNIhN-3605.jpeg 3605w&quot; sizes=&quot;(max-width: 1000px) 100vw, 1000px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It shines light right into your eyeballs and give you a headache. Not ideal.&lt;/p&gt;
&lt;p&gt;To replace this, I want to build one! But a little fancier. I want to have:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The light to not shine directly into my eyeballs&lt;/li&gt;
&lt;li&gt;Granular power controls
&lt;ul&gt;
&lt;li&gt;Turn a section on or off&lt;/li&gt;
&lt;li&gt;Turn all on&lt;/li&gt;
&lt;li&gt;Turn all off&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Color controls
&lt;ul&gt;
&lt;li&gt;Modify the color to be any RGB - ideally warm white or cool white (I like a brighter cool white while my GF likes a warm white)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A nice wooden housing&lt;/li&gt;
&lt;/ul&gt;
&lt;!--more--&gt;
&lt;p&gt;I already know a lot about individually addressable leds, and to have a good ‘white’ color I think I’m going to use a RGBW light, which has 4 LEDs in it instead of the normal 3, including a ‘white’ LED. This helps have a non-weird white color (and save power).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/LZH3JpbRCO-380.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/LZH3JpbRCO-300.webp 300w, https://www.dmurph.com/img/LZH3JpbRCO-380.webp 380w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/LZH3JpbRCO-300.jpeg&quot; alt=&quot;RGB SMD 5050 LED&quot; title=&quot;RGB SMD 5050&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;330&quot; srcset=&quot;https://www.dmurph.com/img/LZH3JpbRCO-300.jpeg 300w, https://www.dmurph.com/img/LZH3JpbRCO-380.jpeg 380w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt; vs &lt;a href=&quot;https://www.dmurph.com/img/-dHAMp2ExO-379.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/-dHAMp2ExO-300.webp 300w, https://www.dmurph.com/img/-dHAMp2ExO-379.webp 379w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/-dHAMp2ExO-300.jpeg&quot; alt=&quot;RGBW SMD 5050 LED&quot; title=&quot;RGBW SMD 5050&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;300&quot; height=&quot;456&quot; srcset=&quot;https://www.dmurph.com/img/-dHAMp2ExO-300.jpeg 300w, https://www.dmurph.com/img/-dHAMp2ExO-379.jpeg 379w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Main Idea:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;12 ft long&lt;/li&gt;
&lt;li&gt;4 buttons on the back to control on-off on 3 foot sections
&lt;ul&gt;
&lt;li&gt;Do something to turn all on (long hold? double tap?)&lt;/li&gt;
&lt;li&gt;Do something to turn all off (long hold? double tap?)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;3 knobs to control RGB color of the light&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here are some sketches of the wooden structure, and notes from chatting with friends.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/6IWFdv594X-2604.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/6IWFdv594X-800.webp 800w, https://www.dmurph.com/img/6IWFdv594X-1600.webp 1600w, https://www.dmurph.com/img/6IWFdv594X-2604.webp 2604w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/6IWFdv594X-800.jpeg&quot; alt=&quot;Journal Page 1&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;1179&quot; srcset=&quot;https://www.dmurph.com/img/6IWFdv594X-800.jpeg 800w, https://www.dmurph.com/img/6IWFdv594X-1600.jpeg 1600w, https://www.dmurph.com/img/6IWFdv594X-2604.jpeg 2604w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/w5UoXk4MlW-2699.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/w5UoXk4MlW-800.webp 800w, https://www.dmurph.com/img/w5UoXk4MlW-1600.webp 1600w, https://www.dmurph.com/img/w5UoXk4MlW-2699.webp 2699w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/w5UoXk4MlW-800.jpeg&quot; alt=&quot;Journal Page 2&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;1126&quot; srcset=&quot;https://www.dmurph.com/img/w5UoXk4MlW-800.jpeg 800w, https://www.dmurph.com/img/w5UoXk4MlW-1600.jpeg 1600w, https://www.dmurph.com/img/w5UoXk4MlW-2699.jpeg 2699w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/x37tg3FDnz-2535.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/x37tg3FDnz-800.webp 800w, https://www.dmurph.com/img/x37tg3FDnz-1600.webp 1600w, https://www.dmurph.com/img/x37tg3FDnz-2535.webp 2535w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/x37tg3FDnz-800.jpeg&quot; alt=&quot;Journal Page 3&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;1177&quot; srcset=&quot;https://www.dmurph.com/img/x37tg3FDnz-800.jpeg 800w, https://www.dmurph.com/img/x37tg3FDnz-1600.jpeg 1600w, https://www.dmurph.com/img/x37tg3FDnz-2535.jpeg 2535w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.dmurph.com/img/T4eU3lrd-m-2714.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://www.dmurph.com/img/T4eU3lrd-m-800.webp 800w, https://www.dmurph.com/img/T4eU3lrd-m-1600.webp 1600w, https://www.dmurph.com/img/T4eU3lrd-m-2714.webp 2714w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;img src=&quot;https://www.dmurph.com/img/T4eU3lrd-m-800.jpeg&quot; alt=&quot;Journal Page 4&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;mdImage img-fluid figure-img rounded&quot; width=&quot;800&quot; height=&quot;1146&quot; srcset=&quot;https://www.dmurph.com/img/T4eU3lrd-m-800.jpeg 800w, https://www.dmurph.com/img/T4eU3lrd-m-1600.jpeg 1600w, https://www.dmurph.com/img/T4eU3lrd-m-2714.jpeg 2714w&quot; sizes=&quot;(max-width: 800px) 100vw, 800px&quot; /&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/p&gt;
</description>
      <pubDate>Tue, 15 Dec 2020 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2020/12/cabinet-light-1.html</guid>
    </item>
    <item>
      <title>What even is a blog software?</title>
      <link>https://www.dmurph.com/posts/2020/12/what-is-a-blog.html</link>
      <description>&lt;p&gt;There are so many option for blogs. It’s crazy. I feel like I just want something simple, but it turns out, I actually want something more complicated.&lt;/p&gt;
&lt;p&gt;I want:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Simple post writing - just a text file is fine.&lt;/li&gt;
&lt;li&gt;Assets&lt;/li&gt;
&lt;li&gt;Back/forward navigation&lt;/li&gt;
&lt;li&gt;View posts in order&lt;/li&gt;
&lt;li&gt;permalinks etc&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Result? I think &lt;a href=&quot;https://metalsmith.io/&quot;&gt;Metalsmith&lt;/a&gt; looks pretty nice - so I’m going with that.&lt;/p&gt;
</description>
      <pubDate>Thu, 10 Dec 2020 00:00:00 GMT</pubDate>
      <guid>https://www.dmurph.com/posts/2020/12/what-is-a-blog.html</guid>
    </item>
  </channel>
</rss>
