<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by dorizztd on Medium]]></title>
        <description><![CDATA[Stories by dorizztd on Medium]]></description>
        <link>https://medium.com/@dorizzdt?source=rss-b31097e577e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3aHEr0YG06J6nJdd.</url>
            <title>Stories by dorizztd on Medium</title>
            <link>https://medium.com/@dorizzdt?source=rss-b31097e577e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:45:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dorizzdt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DevLog — HSIM (Hierarchical Instanced Static Mesh) Magic (Part 2)]]></title>
            <link>https://medium.com/@dorizzdt/devlog-hsim-hierarchical-instanced-static-mesh-magic-part-2-2743f4ebfa14?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2743f4ebfa14</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[ue5]]></category>
            <category><![CDATA[hsim]]></category>
            <category><![CDATA[devlog]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 13:31:43 GMT</pubDate>
            <atom:updated>2025-08-15T13:31:43.849Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>DevLog — HSIM (Hierarchical Instanced Static Mesh) Magic (Part 2)</strong></h3><blockquote>As continued on from Part 1 — <a href="https://medium.com/@dorizzdt/devlog-ism-instance-static-mesh-magic-part-1-d448cd020564">https://medium.com/@dorizzdt/devlog-ism-instance-static-mesh-magic-part-1-d448cd020564</a></blockquote><p>The<a href="https://medium.com/@dorizzdt/devlog-ism-instance-static-mesh-magic-part-1-d448cd020564"> ISM asteroid was my win</a>. ISM fixed it. 50k rocks went from 50k draw calls to 5. Frame time dropped like a… astroid?…no…wait…stone.. metaphor isn’t working…. The GPU finally had room to stretch.</p><p>I told myself that would carry me all the way to ship.</p><p>Then feature creep kicked in. Shiny Asteroid Syndrome.</p><p>We were no longer building a belt. We were building belts. Plural. Some wrapped entire planets. Others drifted through star systems. 5M asteroids in a single scene. Planetary rings with ice particles too small to land on but big enough to catch the light. Forests of alien trees so dense you could get lost in them. Debris fields after battles where the wreckage count hit the millions.</p><p>The ISM single bounding box honeymoon was already starting to look like a one night stand, not marriage. I can predict the stat rhinumbers without even hitting Play.</p><blockquote>This is actually where a lot of AAA and Indie Games fail. This is also why at times Unreal Engine get’s beaten up for developers not RTFM. I won’t name game titles that have done this, but there are some well known titles which didn’t follow the bread crumb trails to this point well.</blockquote><h3><strong>When the box is too big</strong></h3><p>ISM lives or dies on its bounding box. The render thread checks one box per ISM component. If the box touches the camera frustum, everything inside is treated as visible. Fine when “<em>everything</em>” is 3k bolts on a ship hull. Fatal when “<em>everything</em>” is a million kilometre wide field of ice.</p><p>Point the camera anywhere near that belt and the render thread will push every transform from the ISM’s CPU array into GPU memory. Even the ones behind a planet. PCIe does not care if they will ever hit the screen. Hundreds of megabytes moved every frame.</p><p>The GPU keeps pace. The problem is on the CPU side. I am sending every instance to the GPU every frame, even when most will never be seen.</p><h3><strong>HSIM: giving ISM a brain</strong></h3><p>HSIM takes ISM’s flat list of instances and organises it into a spatial tree. Instead of a single bounding box deciding visibility for thousands or millions of objects, the space is carved into clusters. Each cluster is carved again into smaller clusters until the result is a hierarchy of bounding boxes.</p><p>Think of it like a map broken into regions, then those regions broken into grids, then the grids broken into individual tiles. The visibility check starts at the largest region. If it is in view, HSIM moves down to the next size. At each step, boxes outside the camera frustum are discarded before they ever reach the render thread’s upload list.</p><p>In Unreal terms, the root node spans every instance in the component. Internal nodes represent subregions of space. Leaf nodes hold compact lists of instance transforms that sit close together in the world. Culling starts at the root, works down through the tree, and stops entire branches before their data ever touches GPU memory.</p><h3><strong>Traversing the hierarchy</strong></h3><p>On a frame where the camera is locked on one section of the belt, HSIM works top down. The root node runs its frustum check and stays in play. Four quadrant nodes follow. Three fail the check and are discarded on the spot.</p><p>The remaining quadrant is split again. Half of its children drop out. The rest are split into smaller clusters. At the leaf level, HSIM gathers the exact instance indices that pass the test. These are the only transforms that will be written into the GPU’s instance buffer for that frame.</p><p>From 5M possible instances, the list shrinks to about 100k in a few dozen bounding box checks. No wasted uploads. No dead transforms clogging the PCIe bus.</p><h3><strong>How Unreal threads handle it</strong></h3><p>The gameplay thread stays the same. AddInstance still pushes a transform into a CPU array. The difference is that HSIM updates its<strong> spatial tree</strong> every time an instance is added or removed.</p><p>On the render thread, the HSIM scene proxy walks the hierarchy. It builds a compact visible transforms list from the leaves that pass the frustum test.</p><p>The Render Hardware Interface does not care if that list is 100 or 100k. It allocates the vertex buffer, uploads only what is needed over PCIe, and issues the same instanced draw call.</p><p>The GPU runs the same vertex shader. It still reads SV_InstanceID, still transforms vertices, still rasterises and shades. The only difference is the data set is a fraction of the original.</p><h3><strong>The cost of hierarchy</strong></h3><p>Every layer costs memory. Each node stores a few dozen bytes. There is also a mapping table to link instance IDs to positions in the visible list. For millions of instances, that is a few extra megabytes on top of the base data.</p><p>The trade is clear. Culling goes from N checks per frame to roughly log₂(N). For 5M instances that is the difference between a coffee break and a blink.</p><h3><strong>A Lie, A Damn Lie and Batching</strong></h3><p>In theory, batching is the quiet partner to instancing. The render thread takes what needs to be drawn and merges it into a smaller set of calls. One call per mesh and material. Less CPU churn. Fewer state changes. The GPU gets bigger packets of work.</p><p>That is the concept. The reality inside Unreal is not as clean.</p><p><strong>Myth 1: HSIM BatchUpdate is faster</strong><br>It is not. Under the hood it is just a for loop that calls UpdateInstanceTransform for each index. The name suggests a vectorised upload. The implementation does not.</p><p><strong>Myth 2: More batching is always better</strong><br>Batching has a cost. For small operations the overhead of setting up the batch can exceed any gain. The frame ends up slower.</p><p><strong>Myth 3: Instance Runs improve batching</strong><br>The idea is sound, but it is disabled by default because it conflicts with Mesh Draw Commands. Enabling it will not give you the automatic boost you expect.</p><p><strong>Myth 4: Batch functions optimise the GPU</strong><br>They do not. All they do is reduce the number of MarkRenderStateDirty() calls on the CPU side. The GPU sees the same work either way.</p><p><strong>Myth 5: ISMPool always batches efficiently</strong><br> It helps when you have many small instance groups. For large unified groups the pooling overhead can outweigh the benefit.</p><p>The win comes when batching is deliberate. Cull with HSIM first so only the work that matters reaches the batching stage. Then keep mesh and material variation minimal so those survivors actually merge. If you skip either step, the promise of batching stays a promise.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/Dorizzdt/status/1955353094386315725&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/102266c07cec2022bd4c4abc1203a2f4/href">https://medium.com/media/102266c07cec2022bd4c4abc1203a2f4/href</a></iframe><h3><strong>Where HSIM shines</strong></h3><ul><li>Planetary forests where the canopy hides most of the world from the camera.</li><li>Asteroid belts that take minutes to cross at full burn.</li><li>Debris fields where wreckage tapers off into black space.</li><li>Cityscapes where whole districts never enter the frame.</li></ul><p><em>Massive sets. Little player movement. The majority hidden at any given time.</em></p><h3><strong>Where HSIM fails</strong></h3><p>Two situations kill the advantage.</p><p>Everything is visible. Pull the camera back in an RTS view and every node says yes. HSIM does extra work for no gain and still uploads everything.</p><p>High velocity chaos. If instances move so much that the tree is rebuilt constantly, the maintenance cost erases the savings.</p><p>In those cases ISM is faster. If motion is constant and lifetimes are short, Niagara can win.</p><p><em>All visible. Constant motion. No chance to hide the cost. Failure results in either thread hitching or visible “popping”.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/Dorizzdt/status/1954393864133050389&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/e012568cd51165f127a8cf4bdf8a1fce/href">https://medium.com/media/e012568cd51165f127a8cf4bdf8a1fce/href</a></iframe><h3><strong>Before and after</strong></h3><p><strong>5M asteroids, ISM:<br></strong> <em>The math looks innocent at first. 5M × 64 bytes per transform equals 320 MB of instance data. That full buffer crosses PCIe every frame whether you see them or not. At 60 FPS that is 19.2 GB per second in raw transfers. On a PCIe 4.0 link that load alone eats a measurable chunk of bandwidth. The render thread spends around 50ms per frame packing, uploading, and issuing draw commands. The GPU does not choke, but the CPU stalls under the weight. Frame rate drops below 20 FPS. Input feels laggy. Every camera move comes with a hitch as the engine scrambles to ship another 320 MB across the bus.</em></p><p><strong>5M asteroids, HSIM:<br></strong> <em>The culling tree strips away the noise before the upload ever starts. From millions of transforms, the visible set near the camera is about 100k. That is 6.4 MB instead of 320 MB. PCIe transfer time becomes a rounding error. The culling pass runs in 0.05ms. Uploads finish in under 1ms. The render thread has headroom to spare. Frame rate jumps back to a locked 120. Mouse input feels immediate again. Camera sweeps show no hitches because nothing is flooding the bus. The GPU runs the same shaders, but it is only working on a thin slice of the original scene — the slice you can actually see.</em></p><p>The difference is not magic. It is the result of refusing to pay for data you never use.</p><h3><strong>Performance comparison</strong></h3><pre>| Metric                          | ISM (5M instances) | HSIM (~100k visible) | Gain          |<br>| -------------------------------- | ------------------ | -------------------- | ------------- |<br>| Instance data size per frame    | 320 MB             | 6.4 MB               | 50× smaller   |<br>| PCIe transfer per second @60FPS | 19.2 GB            | 384 MB               | 50× less      |<br>| Culling time (render thread)    | ~50 ms             | 0.05 ms              | 1000× faster  |<br>| Upload time                     | ~8–10 ms           | &lt;1 ms                | 8–10× faster  |<br>| Frame rate                      | &lt;20 FPS            | 120 FPS              | 6× higher     |<br>| Visible instance count          | 5M                 | ~100k                | 98% reduction |</pre><h3><strong>Rules of thumb</strong></h3><ul><li>ISM for small dense always visible clusters.</li><li>HSIM for large sparse mostly hidden sets.</li><li>Keep transforms static whenever possible.</li><li>Do not expect miracles if you are showing everything.</li></ul><p>When I dropped HSIM into the belt scene, the visuals did not change. Same belt. Same light. Same drift. The stat rhi told the real story. Draw calls stayed at 5 but instance uploads collapsed. Render thread time became a flat line. The game stopped breathing through a straw.</p><p>The GPU was not the hero. The win was getting out of the way. Letting a few targeted instructions replace millions of polite handshakes every frame.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2743f4ebfa14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevLog -ISM (Instance Static Mesh) Magic (Part 1)]]></title>
            <link>https://medium.com/mossyblog/devlog-ism-instance-static-mesh-magic-part-1-d448cd020564?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d448cd020564</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[instance-static-mesh]]></category>
            <category><![CDATA[hsim]]></category>
            <category><![CDATA[threading]]></category>
            <category><![CDATA[unreal-engine-5]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 08:23:26 GMT</pubDate>
            <atom:updated>2025-08-13T09:34:12.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6zC5GMDkLzH3DSoHAnNlA.png" /></figure><p>I have a scene open from my game. The camera glides across a starfield, past a planet, and into an asteroid belt. The belt looks perfect. Fifty thousand rocks drifting in black space. They catch the light from a distant sun. Some are metallic. Some are ice.</p><p>And the frame rate is 5 FPS. I tell myself. “Its fine, I’ll optimize later”.</p><p>There is no later. 5FPS is not a game. It is a power point deck. And the thing is, the GPU is not sweating. The GPU timing in stat unit is fine. It is the game thread and render thread that are drowning.</p><p>I bring up stat rhi and see it immediately. The draw call count is ridiculous. 50,000 separate calls in a single frame.</p><p>That is when the penny drops. This is not a pixel noise problem. This is a communication signal problem.</p><h3>The Singnal to Noise Problem.</h3><p>Every time you tell the GPU to draw something, it is a little back-and-forth between the CPU and the GPU. The CPU has to set up the right mesh, bind the right material, set the transform, and send a structured packet of commands to the GPU. That packet goes into the GPU’s own command buffer to be executed later.</p><p>When you have 50,000 rocks, each with its own mesh component, you are doing that x50k every frame.</p><p>The GPU can draw them just fine. What kills you is the CPU having to repeat the setup work and the driver having to handle 50k tiny packets.</p><h3>The plan</h3><p>The fix for this is <a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/instanced-static-mesh-component-in-unreal-engine?application_version=5.6">Instanced Static Mesh </a>(ISM).</p><p>It is one of those features that sits in the Unreal class list that you tell yourself you will learn later. Then later comes when you are desperate to understand “why those other games scale so well and mine doesn’t”.</p><p>ISM lets you tell the GPU: here is 1x mesh, here is 1x material, here is a list of positions, rotations, and scales. Draw all of them in one go.</p><p>That is the headline, but to really understand it, you need to know what happens to that list inside Unreal and what path it takes to become pixels.</p><h3>Gameplay thread</h3><p>This is where most of your game logic runs. If you create an ISM component and call <strong>AddInstance </strong>in C++ or Blueprints, all that is happening here is that Unreal appends a new entry to a CPU-side array in the component.</p><p>That array is of type FInstancedStaticMeshInstanceData. Each entry has a transform. A transform is position, rotation, and scale. Unreal stores it as three vectors plus some padding for alignment. That works out to about <strong>48 bytes per instance</strong> in system memory.</p><p>If you have ten thousand asteroids of one type, that is less than half a megabyte. That is your <strong>source of truth</strong> for where each instance exists in the world.</p><p>The important thing to understand here is that the GPU has no idea about this array yet. You can add and remove instances all day on the gameplay thread and the GPU will not see any of it until the render thread tells it to.</p><h3>Render thread</h3><p>Unreal runs a separate thread just for preparing render data. This thread takes the state of the world from the gameplay thread and turns it into something the GPU can consume efficiently.</p><p>When you add an ISM component, Unreal also creates a <strong>scene proxy</strong> for it. The scene proxy is a stripped down object that lives only on the render thread. It contains just the mesh data, the material, and the per-instance transforms. It knows nothing about your gameplay code.</p><p>This is where culling happens. If you are using a plain ISM, Unreal will check the bounding box of the entire component. If that box is in the camera frustum, all instances are considered visible. If you are using a HISM (<em>more on HSIM in Part 2</em>), the component divides the instances into clusters and builds a spatial tree. The render thread can then skip whole clusters that are off screen.</p><blockquote>Note: ISM has no clustering, just flat array processing</blockquote><p>The render thread also decides whether the instance buffer in GPU memory needs to be updated. If nothing has moved since the last frame, it will not bother sending new data. If some transforms have changed, it will prepare an updated buffer.</p><h3>The RHI</h3><p>The Render Hardware Interface is Unreal’s way of talking to any graphics API without caring which one it is. DirectX, Vulkan, Metal, they all have their own function calls and resource binding systems. The RHI smooths over those differences.</p><p>When the render thread is ready to upload instance data, it calls into the RHI to create or update vertex buffers.</p><p>There are at least two vertex buffers involved here:</p><blockquote><strong>The mesh vertex buffer</strong> : This contains all the vertex positions, normals, tangents, UV coordinates, and any other per-vertex attributes for the mesh. This is static data. For a 2 MB asteroid mesh, it is uploaded once when the mesh is loaded and then reused forever.</blockquote><blockquote><strong>The instance buffer: </strong>This contains one row per instance. On the GPU, each row is usually stored as a 4x4 matrix (64 bytes) for alignment and ease of access in shaders. For ten thousand instances that is 640 KB.</blockquote><p>The RHI call might look something like:</p><pre>RHICreateVertexBuffer(BufferSize, UsageFlags, CreateInfo);</pre><p>This allocates space in GPU VRAM for the data.</p><h3>Upload to GPU memory</h3><p>At this point the instance buffer still exists in CPU memory. To get it to the GPU, Unreal issues a transfer over the PCI Express bus. On a desktop PC this is a few gigabytes per second, but it is not free.</p><p>If you upload the entire instance buffer every frame for a hundred thousand instances, you can saturate that bandwidth. That is why ISM is best for data that does not move much.</p><p>The static mesh vertex buffer only crosses the bus once. The instance buffer crosses it whenever you change transforms. If nothing changed, the old data is kept and reused.</p><h3>GPU command buffer</h3><p>The GPU has its own queue of work called the command buffer. When the CPU issues a draw call, it is really telling the driver to write a packet into that queue.</p><p>Without ISM, every asteroid would mean its own packet. Fifty thousand packets per frame. The CPU would spend all its time writing them, and the GPU would waste time switching state for each one.</p><p>With ISM, the render thread builds one packet per mesh and material combination:</p><pre>DrawIndexedPrimitiveInstanced(<br>    MeshIndexBuffer,<br>    MeshVertexBuffer,<br>    Material,<br>    IndexCount,<br>    InstanceCount,<br>    StartIndex,<br>    BaseVertex,<br>    StartInstance<br>);</pre><p>That packet tells the GPU: use this mesh, use this material, draw this many instances, start reading transforms at this offset in the instance buffer.</p><h3>Shader execution</h3><p>When the GPU scheduler reaches that packet, it launches many threads in parallel. Each vertex shader invocation gets an InstanceID number from the hardware. That number ranges from zero up to InstanceCount minus one.</p><p>The vertex shader uses that ID to index into the instance buffer:</p><pre>float4x4 transform = InstanceBuffer[SV_InstanceID];<br>float3 worldPos = mul(input.Position, transform);</pre><p>That transform is applied to each vertex of the mesh, moving it into the correct position in the world.</p><p>Because all instances share the same mesh, the mesh vertex data stays in the GPU’s caches. Only the transform lookup changes. That is why ten thousand instances cost almost the same GPU time as ten.</p><p>After the vertex shader runs, the pipeline turns the transformed vertices into triangles, runs fragment shaders, and writes pixels to the framebuffer.</p><blockquote>A framebuffer is a section of computer memory used to store a bitmap image, which represents the pixel data for a single video frame. It essentially acts as a buffer between the graphics processing unit (GPU) and the display, allowing the GPU to render images and then quickly transfer them to the screen. Modern video cards incorporate framebuffer circuitry within their core</blockquote><h3>Why this matters</h3><p>On the gameplay thread, you control how many instances exist and how often you move them.</p><p>On the render thread, you can choose between ISM and HISM based on how spread out your instances are.</p><p>In the RHI, you know that every mesh and material combination means its own draw call, no matter how many instances.</p><p>When uploading to VRAM, you remember that bandwidth is finite and static data is best.</p><p>With the GPU command buffer, you see that fewer large packets are better than thousands of tiny ones.</p><p>In the shader, you understand why per-instance variation should come from custom data or procedural logic rather than swapping materials.</p><p>I replaced my 50k individual rock meshes with five ISM components, one per asteroid type. I bulk-added all their transforms in one go. I ran the scene again.</p><p>The frame rate jumped from five to one hundred and twenty. The CPU time on the render thread dropped to a fraction of what it was. The draw call count in stat rhi went from fifty thousand to five.</p><p>The GPU was never the bottleneck. The bottleneck was me making it have the same polite conversation fifty thousand times a frame.</p><p>Now it hears it once. It gets the blueprint. It gets the list of where to put each copy. And it does the rest without me getting in the way.</p><h3>Setting up ISM in Unreal — Blueprint</h3><p>The first thing I do is rip out all the individual Static Mesh Components from the scene.<br> They look innocent, but every one is its own draw call.</p><p>In their place, I add an <strong>Instanced Static Mesh Component</strong> to an empty Actor.<br> In Blueprints it is as simple as:</p><ol><li>Add Component → Instanced Static Mesh.</li><li>Set its mesh to your asteroid mesh.</li><li>Set the material.</li></ol><p>Then I use a simple loop in the Construction Script to scatter them:</p><pre>For i = 0 to 9999<br>    Random X, Y, Z<br>    Random Rotation<br>    Scale = 1.0<br>    Add Instance</pre><p>Every call to Add Instance pushes a transform into the CPU-side array.</p><p>When I hit Play, Unreal uploads that array to the GPU as an instance buffer.<br> The draw calls go from ten thousand to one for that mesh.</p><h3>Setting up ISM in Unreal — C++</h3><p>C++ is cleaner for big numbers of instances. In your Actor:</p><pre>UPROPERTY(VisibleAnywhere)<br>UInstancedStaticMeshComponent* AsteroidISM;<br><br>void AAsteroidField::OnConstruction(const FTransform&amp; Transform)<br>{<br>    AsteroidISM = CreateDefaultSubobject&lt;UInstancedStaticMeshComponent&gt;(TEXT(&quot;Asteroids&quot;));<br>    AsteroidISM-&gt;SetStaticMesh(AsteroidMesh);<br>    AsteroidISM-&gt;SetMaterial(0, AsteroidMaterial);<br>    RootComponent = AsteroidISM;<br><br>    TArray&lt;FTransform&gt; Transforms;<br>    Transforms.Reserve(10000);<br><br>    for (int i = 0; i &lt; 10000; ++i)<br>    {<br>        FVector Pos = RandomPosition();<br>        FRotator Rot = FRotator::ZeroRotator;<br>        FVector Scale(1.0f);<br>        Transforms.Emplace(Rot, Pos, Scale);<br>    }<br><br>    AsteroidISM-&gt;AddInstances(Transforms, true);<br>}</pre><blockquote><strong>Tip:</strong> Always use <strong>AddInstances </strong>for bulk creation. It is much faster than calling <strong>AddInstance </strong>in a loop because it builds the GPU buffer once.</blockquote><h3>Adding variation without breaking instancing</h3><p>Here is where new devs fall into the trap.<br> They want some asteroids to be darker, some brighter, maybe some glowing.</p><p>They do this by creating a Dynamic Material Instance per asteroid.</p><p>That destroys instancing. Now each unique material counts as its own draw call.</p><p>The fix is to keep one material and use <strong>Per Instance Random</strong> or <strong>PerInstanceCustomData</strong>.</p><h3>Per Instance Random</h3><p>In your material graph, add a PerInstanceRandom node. Multiply it by a colour vector, or use it to lerp between two colours. This value is random per instance but does not require a new material.</p><h3>Per Instance Custom Data</h3><p>You can set up to eight floats per instance that the material can read.</p><pre>AsteroidISM-&gt;SetCustomDataValue(InstanceIndex, 0, GlowAmount, false);</pre><p>In the material, use a PerInstanceCustomData node with Index 0 to read that value.</p><p>This lets you change tint, emissive strength, texture blend factor, or anything else without breaking instancing.</p><h3>Updating instances during play</h3><p>The easiest way to kill ISM performance is to update every instance every frame.<br> Remember the instance buffer in VRAM? If you change every transform, Unreal will rewrite the entire buffer over PCIe.</p><p>For 10,000 instances × 64 bytes, that is 640 KB per frame. At 60 FPS, that is ~38 MB/sec just in transform updates. Scale that up to 100,000 and you can saturate the bus.</p><p>Instead:</p><ul><li>Only update what is near the player.</li><li>Batch updates together and call MarkRenderStateDirty() once after all changes.</li><li>Fake motion in the shader for things like spinning asteroids.</li></ul><h3>Profiling ISM</h3><p>Two Unreal commands are your friends:</p><p>stat rhi — shows draw calls, triangles, primitives, and GPU memory usage.<br> If you see draw calls in the tens of thousands, you are not instancing enough.</p><p>csvprofile start / csvprofile stop — dumps a CSV with per-frame breakdowns for the game thread, render thread, and GPU. This lets you see if ISM actually reduced CPU time.</p><p>When I fixed the asteroid belt, stat rhi went from 50,000 draw calls to 5. In the CSV, the render thread time dropped from 28 ms to under 4 ms.</p><h3>ISM vs HISM</h3><p>HISM takes the core idea of ISM and adds a brain for visibility. Instead of keeping one big flat list of transforms, it organises them into a tree of bounding boxes. Each branch represents a cluster of instances in space. When the camera moves, Unreal can skip entire branches that are outside the view frustum. That means the render thread and RHI only prepare data for clusters that might actually be drawn.</p><p>This matters when your instances are scattered over a large area. If you have a forest that stretches for kilometres, a plain ISM will keep all those trees in one bounding box. If that box is even slightly in view, every tree’s transform gets sent to the GPU whether you see them or not. HISM prevents that waste. It prunes whole clusters of trees, rocks, or asteroids before they ever touch the GPU command buffer.</p><p>The trade-off is that HISM needs extra memory and processing to maintain the tree structure. Every insert or removal has to update the hierarchy, which can be slower than a flat ISM. That is why you use ISM when instances are tightly packed and mostly visible together (<em>like the bolts on a spaceship hull</em>) and HISM when they are spread out with lots of empty space between them. In a large open world, the savings from culling outweigh the extra cost.</p><h3>ISM vs Nanite</h3><p>Nanite is Unreal’s virtualised geometry system. It takes a high-poly mesh and breaks it into a hierarchy of tiny triangle clusters. At runtime it only streams the clusters the camera actually needs into the GPU, swapping far-away detail for coarser versions that look identical at that distance. That is why you can drop in a ten-million-triangle scan and still run smoothly. The GPU never sees most of those triangles.</p><p>What Nanite does not touch is draw calls. Each object in your scene still needs its own draw command from the CPU. Nanite can make that draw cheaper on the GPU by reducing vertex and pixel work, but it does nothing to merge thousands of draws into one. If you have ten thousand identical Nanite asteroids as separate components, you still have ten thousand draw calls. Your CPU will still be busy issuing them every frame.</p><p>Nanite and ISM solve different problems. ISM reduces CPU-to-GPU chatter by letting you send one big draw with many transforms. Nanite reduces the cost of that draw once it reaches the GPU. Together they are powerful — one draw, minimal geometry but Nanite is not a cure-all for bad instancing. If your bottleneck is a swollen draw call count, you still need ISM.</p><h3>ISM vs Niagara</h3><p>Niagara is for particle-like things that spawn and despawn constantly, like laser bolts or sparks. Niagara’s mesh renderer can also instance meshes internally, but it is optimised for transient, animated things.</p><p>If you need thousands of projectiles, use Niagara. If you need thousands of static objects, use ISM. You can however, fake it. This is a guidance you can bend not so much break. Extend a lifetime of a particle you can visually be convincing enough to be a “wall” for example.</p><h3>Rules that keep ISM fast</h3><ul><li>One mesh and one material per ISM component.</li><li>Use <em>PerInstanceRandom </em>or <em>PerInstanceCustomData </em>for variation.</li><li>Bulk add instances where possible.</li><li>Keep transforms static or change only what you must.</li><li>Cull aggressively with HISM if the camera view is small relative to the instance spread.</li></ul><h3>The moment it clicked</h3><p>After replacing my asteroid belt with ISM, I hit play. The camera glided through 50k rocks again. This time the frame rate was 120.</p><p>The draw calls in stat rhi were a handful. The render thread time was tiny. The GPU was finally doing the heavy lifting it was built for, processing thousands of cores in parallel with the same mesh data cached and ready.</p><p>And the best part? I understood why. From gameplay thread to render thread, into the RHI, across the PCIe bus into VRAM, into the GPU command buffer, through the vertex shader using InstanceID to fetch transforms, into rasterisation and fragment shading, and finally to pixels on screen.</p><h3>The rule of thumb</h3><ul><li>If it is the same mesh and material, it belongs in an ISM or HISM.</li><li>If it needs per-instance variation, use random or custom data, not new materials.</li><li>If it moves a lot, update only what you must.</li><li><strong>Gameplay thread </strong>runs the logic that decides what instances exist and how they change.</li><li><strong>Render thread</strong> copies those transforms into a GPU-friendly buffer.</li><li><strong>RHI</strong> translates Unreal’s buffer calls into DirectX or Vulkan commands.</li><li><strong>PCIe transfer</strong> sends the instance buffer into VRAM.</li><li><strong>GPU command buffer</strong> gets a single draw packet for all instances.</li><li><strong>Shader</strong> uses InstanceID to pull the right transform from the buffer for each vertex.</li></ul><p>When you see stat rhi drop from 10,000 calls to 1, you know that everything above worked the way it should.</p><p>Next… HSIM …</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/Dorizzdt/status/1955354384700936669&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/07578c5e3141162a3fbb63cfa5dfc82a/href">https://medium.com/media/07578c5e3141162a3fbb63cfa5dfc82a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d448cd020564" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mossyblog/devlog-ism-instance-static-mesh-magic-part-1-d448cd020564">DevLog -ISM (Instance Static Mesh) Magic (Part 1)</a> was originally published in <a href="https://medium.com/mossyblog">dorizzdt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Path to XAML: Second Life, Unoplatform Steps In — Part 2]]></title>
            <link>https://medium.com/mossyblog/path-to-xaml-second-life-unoplatform-steps-in-part-2-d7de31c99535?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7de31c99535</guid>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 14:23:19 GMT</pubDate>
            <atom:updated>2025-07-24T14:23:19.608Z</atom:updated>
            <content:encoded><![CDATA[<h3>Path to XAML: Second Life, Unoplatform Steps In — Part 2</h3><p>XAML was not an accident. It was a reaction. HTML let anyone sketch out UI. Design in the open, no gatekeepers. We wanted that for desktop, but deeper. More power. Designers and developers in the same room, both with a say. Not just code, not just visuals. The idea was clear. Write the shape of your UI, let the platform do the heavy lifting.</p><p>That was the theory. Then reality set in. Microsoft promised a bridge. Blend was supposed to connect designers and developers. It never happened. Designers kept to their own tools. Developers got handed a pile of markup and were told to just make it work. The dream of actual collaboration real handoff, a real workflow never showed up. Instead, you got another thing for developers to maintain and another tool for designers to ignore.</p><p>Microsoft kept stacking tech. Xamarin, Xamarin Forms, MAUI. Each with new branding, new story, same gaps. No reset, just new wrappers on the same problem. Collaboration never improved. The developer experience stayed stuck. The designer workflow never materialized. Every year, another pitch. Every year, more dead ends. More JavaScript retreat positions!</p><p>The result was always the same. Teams waited for the big convergence. Picked a flavor, hoped it would pay off. Forums went quiet. Migration docs stalled out. The payoff never came. Developer and designer collaboration never got better. It was always a compromise.</p><p>Unoplatform is the end of that cycle. It does not wait for permission. It does not rely on promises. It just delivers the basics: an open workflow where designers can design, developers can build, and the handoff is real. Figma is not a second-class citizen. You design there, it lands in <a href="https://www.linkedin.com/company/uno-platform/">Uno Platform</a> . Developers do not need to reverse engineer a vision from screenshots. Designers stay involved. Actual collaboration, not theatre.</p><p>Unoplatform does not play the old branding game. It does not force you to choose between frameworks or wonder what is getting killed off next. You target every major platform. You use the stack you want. The tools work. The process is open. Unoplatform is open, transparent, don’t like it, you fix it.</p><p>This is not nostalgia. It is the market stepping in where Microsoft would not finish the job. XAML finally gets to be what it was pitched as: a real meeting place for design and development, not just more markup in a codebase. The cycle is done. The excuses are over. The work actually happens.</p><p>The only problem now is Microsoft needs to just stop competing. They lost, accept the defeat. Adopt this now. So we can all move on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7de31c99535" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mossyblog/path-to-xaml-second-life-unoplatform-steps-in-part-2-d7de31c99535">Path to XAML: Second Life, Unoplatform Steps In — Part 2</a> was originally published in <a href="https://medium.com/mossyblog">dorizzdt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Path to XAML: JavaScript the Language nobody wanted, but inherited — Part 1]]></title>
            <link>https://medium.com/@dorizzdt/path-to-xaml-javascript-the-language-nobody-wanted-but-inherited-part-1-eb4c7909f2cf?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb4c7909f2cf</guid>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 14:18:24 GMT</pubDate>
            <atom:updated>2025-07-24T14:18:24.979Z</atom:updated>
            <content:encoded><![CDATA[<h3>Path to XAML: JavaScript the Language nobody wanted, but inherited — Part 1</h3><p>JavaScript wasn’t designed. It was discharged. A ten day fever dream during the 90’s browser wars, hacked into existence by Brendan Eich while the walls of Netscape burned. No spec. No vision. Just make the web dance. It wasn’t a language. It was a survival mechanism.</p><p>And it should have died. Flash, Java Applets, ActiveX, all better equipped. All faster. More consistent. But they needed plugins. They needed permission. JavaScript didn’t. It was already inside the house.</p><p>Developers hated it. Everyone did. No types. No modules. No classes but kind of. It hoisted variables like drunk ghosts and let you compare a string to a number and get away with it. It was chaos. But it was default. That made all the difference.</p><p>Then came jQuery. The morphine drip. It masked the pain. Let you pretend the DOM wasn’t a nightmare. Right as devs lined up for the great escape, plugins started dying. Flash got gutted. Applets were a joke. Silverlight was a slow death. Suddenly JavaScript was the last man standing. The cockroach that wouldn’t die.</p><p>And then came betrayal. Microsoft folded. Around 2010, with Silverlight bleeding out and WPF stagnating, Redmond had a choice. Push managed code. Double down on C# and XAML. Or walk. They walked. Told developers to embrace HTML5 and JavaScript. Web tech was the future. Silverlight was dead. If you didn’t want native C++, you had better get cozy with document.getElementById and the rest of the circus.</p><p>The guy behind that call? Not at Microsoft anymore. He cashed out. Now he teaches product management at Harvard and probably calls it strategic repositioning. Meanwhile the wreckage smolders. MAUI is a meme. WPF is a ghost. Xamarin is stitched together with marketing promises and Stack Overflow duct tape. XAML? Pick a flavor. None stable. None agree.</p><p>So what did devs do? They went all in on JavaScript. Not because it is good. Not because it is right. But because no alternative was left. And to cope with the pain, they built frameworks. React. Angular. Vue. Svelte. Entire ecosystems built to help you forget the monster at the core. These frameworks are not enhancements. They are quarantines.</p><p>Their job is to change how you interact with JavaScript. To erase it from your brain. JSX? Not JS. Illusion. State libraries? Illusion. Virtual DOM? Illusion. It is all there to keep your fingers off the raw language. Because the minute you touch it, you remember. This thing was never supposed to survive past 1999.<br>The modern dev stack is a shrine to a mistake. TypeScript? Not JavaScript. A bulletproof vest on a leaky raft. ESLint? A chaperone enforcing rules the language forgot. Babel? A translator for a language still rewriting itself mid sentence.</p><p>Why do we keep propping it up? Because we have no choice. The entire front end world is a hostage situation. You do not choose JavaScript. You inherit it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb4c7909f2cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Not to Save Games: SKG v PirateSoftware case.]]></title>
            <link>https://medium.com/@dorizzdt/when-law-fails-and-outrage-wins-skg-v-piratesoftware-case-d7ac4323e7eb?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7ac4323e7eb</guid>
            <category><![CDATA[law]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[opinion]]></category>
            <category><![CDATA[streamers]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 06:03:11 GMT</pubDate>
            <atom:updated>2025-07-12T06:35:28.621Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>SKG: How to Lose Before the Starting Gun</strong></h3><p>SKG (<a href="https://www.stopkillinggames.com/">StopKillingGames</a>) crashed onto the scene with more hope than plan. Save the games, protect history, force companies to keep everything running forever. That was the pitch. The reality is lawmakers do not write absolutes. They write mush. Reasonable steps, where practical, always with escape hatches big enough for any company to slip through. The legal system is designed to <strong>bend</strong>, not <strong>break</strong>, and every idealist waving an SKG banner was always running headfirst into a brick wall.</p><h3><strong>Legislation: Scope Creep in Action</strong></h3><p>The second you try to fence off games, it all unravels. Digital content is the label in every major law now. <a href="https://www.eu-digital-markets-act.com/Digital_Markets_Act_Article_2.html">The EU Copyright Directive, the Digital Markets Act Article 2</a> of the Directive is plain. Any data produced and supplied in digital form. If it is bits, it is in. Games, yes, but also Excel, Outlook, whatever app your workplace uses to make money. Try to save games, and you find yourself chained to every piece of decaying software nobody wanted to see again.</p><p>This is when the room gets crowded. Suddenly it is not just indie game studios and hobby devs. It is Microsoft, Oracle, Adobe, and every Fortune 500 brand with a warehouse of legacy code and a legal team that charges by the minute. Go ahead and try to force Microsoft to keep Windows 8 alive for another decade. Their public filings already show they spend over a billion a year propping up old products just for security compliance. Turn that into a legal mandate, and governments worldwide will spend more on software CPR than on schools.</p><p>Many years ago, when I was at Microsoft we faced many a challenge by the EU on everything from Windows to Internet Explorer. We fought hard, we had wealth, we had power and we won more than we lost. Even when we lost we asked for a re-match.</p><p>Nobody is going to swallow that bill. SKG Ross Scott, barely was able to figure out what the legislation could look like let alone how this would actually work. But he’s a nice guy, so he’s trying.</p><h3>Liability v Legislation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JJJTtEL1C5LBw2lY2nY9Q.png" /><figcaption>Not even close to a legislative amendment.</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fz5Ay_aOUcFw%3Fstart%3D260%26feature%3Doembed%26start%3D260&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dz5Ay_aOUcFw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fz5Ay_aOUcFw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ff5374be2957381b36b46830dda26e5/href">https://medium.com/media/9ff5374be2957381b36b46830dda26e5/href</a></iframe><p>That language only matters after a company has voluntarily decided to leave something playable. There is no law now, and there will not be one, that forces them to do it. What you are looking at is a liability waiver, not a roadmap for preservation. This is where the real gap is. If you wanted an amendment to actually require playability, it would say something like:</p><blockquote>Where a provider of digital content or digital services discontinues official support or ceases operation of a product, the provider shall take reasonable measures to ensure that end users retain the ability to access and use the product in a functional state, to the extent technically and legally feasible.</blockquote><p>Legislation like that would be a starting point, but pay attention to the word digital (ergo, see <a href="https://www.eu-digital-markets-act.com/Digital_Markets_Act_Article_2.html">Article 2</a> on the definition of what a game would fall under). That is where things get serious, and that is the boss fight nobody in this industry is ready for.</p><h3><strong>Fast-Forward to the Wreckage</strong></h3><p>Then PirateSoftware did what nobody else bothered with an innitiatve that nobody paid any attention to. He skipped straight to the punchline. He said, <a href="https://www.youtube.com/watch?v=ioqSvLqB46Y">Fine, let us say you win</a>. What you get is a mausoleum of software nobody can use, costing a fortune, maintained for a handful of people clinging to nostalgia. It was blunt. It was abrasive. The crowd hated the attitude, but<em> he was not wrong</em>. The truth is, the crowd never forgave him because they were already pissed off from every other drama and real or imagined sin he had racked up. This was just another reason to throw him on the pile. SKG was the hill to wave the flag on, the hill to die on was PirateSoftware exposure.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FioqSvLqB46Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DioqSvLqB46Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FioqSvLqB46Y%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d68fb12e054c45dbaa94a27dc3275a9/href">https://medium.com/media/5d68fb12e054c45dbaa94a27dc3275a9/href</a></iframe><p>PirateSoftware is not here to make long-term friends, but that is only half the story. His entire persona is talking at people, not with them. He projects the good guy image but when caught out, he deflects, blames, isolates, shifts the narrative, and paints himself as the victim. You see the arc every time. Layers of manipulation designed to make his defense unassailable, because he frames every critic as an attacker, and every attack as proof of persecution. It puts anyone challenging him in a corner. If you push, you look like the aggressor. The trick works until it does not. People’s instincts eventually catch on. They see through the disguise and recognize the pattern. But by the time the crowd has figured it out, the cycle of outrage is already in full swing and the conversation has moved somewhere else.</p><p>The difference, if anyone still remembers normal, is that most people just shrug and keep walking. The adults in the room let it slide. They do not hire the guy, do not invite him to the BBQ, maybe shake their heads behind his back, call it poor taste, and move on. That is how grown-ups operate. But the moment you confront someone like this head-on, chasing the spectacle and turning it into your own personal crusade, the pathology takes over. Now it is not about right or wrong. It is about your own compulsion to punish. It is not accountability, it is sport. The cycle mutates, gets mean, and never ends clean. That is how bullying is born. It is like being offended by someone’s mental illness and making it your new hobby to attack them for it, again and again, until the whole thing curdles into self-righteous misery and nobody remembers what the original problem was.</p><h3><strong>Cherry-Picked Code and the Zapruder Tape Routine</strong></h3><p>Then came the code drama. Screenshots from GameMaker floating around Twitter, picked over like forensic evidence. Yes, there are rookie mistakes in there. Anyone who has written code for more than a year can tell a junior’s work from a pro’s in about ten seconds. But a screenshot is not a resume, and anyone who says otherwise is selling something. Anyone can look bad in the wrong snippet, especially in a tool that rewards shortcuts. PirateSoftware has lied about plenty. Resume padding, exaggerations, you name it. But waving a few rough lines of code around like it is the magic bullet is pointless. There is no smoking gun, just a messy pattern if you know what to look for.</p><p>Now it is dev after dev stepping up to drag another dev into the street. Suddenly there is this imaginary bar you have to clear before you are allowed to use the word. It is a ritual, a new sport. Miss the mark, and the crowd will make sure you pay for it with ridicule and resentment. Here is the punchline. He is a dev. Maybe not the elite coder he wants to be. Maybe not the temple idol that the crowd prays to. But he writes code. His stuff compiles. He maintains his mess and somehow gets it out the door. He spills his creativity when he feels like it and the game is out there. Unfinished, yes, but shipped. That alone puts him ahead of most, because you know there are thousands of brilliant half-born projects rotting in private GitHub graveyards right now. That is the reality. He is a dev. He is just not your preferred version. If you are standing on the high born self appointed pedestal down at someone like that, you are the monster you claim to hate.</p><h3><strong>Compulsive Lying and the Social Bloodsport</strong></h3><p>It is clear by now that PirateSoftware is a compulsive liar. Anyone paying attention can see it. Half-truths, embellishments, shifting stories. Deception is a hard pill to swallow. Outrage makes sense. It is normal to call it out, to say look, he lied, he is the boy who cried wolf too many times. Then the day he actually saw the wolf, SKG, nobody wanted to listen. That part is human. What is <strong>not </strong>normal is what comes next. There is a canyon between holding someone accountable and turning their entire life into a shooting gallery.</p><p>That is where the internet goes off the rails. Exposing the fibs is not enough for the mob. There is a craving for total annihilation. Harassment, doxxing, setting up camp outside his digital house until he caves in or disappears entirely. That is not justice, that is cancellation. The fantasy is that if you turn up the volume, if you pile on hard enough, the person will finally get it. They never do.</p><p>The truth is, people who live this way do not learn from mob rule. No lesson gets through when you are being screamed at by a thousand strangers. They dig in deeper. The louder it gets, the more they retreat. What looks like fight is actually flee. Classic response under threat, especially in compulsive or pathological liars. They survive by denying, reframing, doubling down, anything to avoid that moment of stillness where you have to look at yourself.</p><p>If there is a chance for change, it happens in a quiet room, not in the blast radius of social media. You see it sometimes. One-on-one, with someone like Dr K or a real therapist who can break through the armor. That is the paradox. The only shot at self-awareness or course correction comes when the noise dies down and reality can finally creep in. Until then, it is just another round of digital bloodsport, with nothing left at the end but scorched earth and the same broken cycle ready to start again.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyvNmIsM1bDI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyvNmIsM1bDI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyvNmIsM1bDI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/088d21b0f8234c696ad5328c0b4e26ed/href">https://medium.com/media/088d21b0f8234c696ad5328c0b4e26ed/href</a></iframe><p>If you actually want this guy to step up and own the mess you say he made, you have to allow time for it. Redemption is not a switch. It is a slow grind and, yes, during that arc he will keep screwing up. The old patterns do not vanish overnight. He learns best when the noise fades and there is no mob baying for blood. He does not flame out from public shaming. He will not break just because the internet throws another tantrum. Pride and guilt will keep him in front of the camera every night, locked in with the stubborn hope that if he can just outlast you, he wins. He might win by outlasting the outrage, but the joke is that is its own kind of loss.</p><h3><strong>Closing Time: Nothing Learned, Nothing Gained</strong></h3><p>The next phase is predictable. When the push finally collapses, it will not be a quiet failure. The gaming lobby has already thrown the first punch. More will follow. The fight is already lost because the architect of SKG barely understands how legislation actually works in the EU. He is not even from the EU, so the entire effort was marked for failure before it left the runway. Every hallmark of a doomed campaign is there.</p><p>The only momentum SKG ever had came from the villain picking on the weak and milking the outrage to boost his own standing. The irony is that for all PirateSoftware’s baggage and his knack for burning his own reputation down, when it comes to SKG he was actually mostly right. Not popular, not polite, but mostly right. That is the one point nobody wants to admit, because it means you have to let him score on the board, and that does not fit the script. Instead, it turns into football. You fake the penalty, roll around until the referee gives the red card, and the crowd cheers for the drama..</p><p>They will turn on him again, this time even louder, because now he is the one who killed it. When the dust settles, it is just another failed crusade and the mob will not move on. He will stay the target, soaking up the next wave of outrage. The cycle does not stop, it is just another red card penalty, the same crowd baying for blood, replaying the same scene until everyone forgets what started it. Then another wave after another reliving the outrage because someone dared to forget and move on.</p><p>As those CPM’s pay the rent either way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7ac4323e7eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Binary Voxel Grid That Doesn’t Suck Part 2: AI Looked at My Code and Whispered, “You…]]></title>
            <link>https://medium.com/mossyblog/building-a-binary-voxel-grid-that-doesnt-suck-part-2-ai-looked-at-my-code-and-whispered-you-6b55ae8a6b82?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b55ae8a6b82</guid>
            <category><![CDATA[unreal-engine-5]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <category><![CDATA[flec]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 04:37:24 GMT</pubDate>
            <atom:updated>2025-07-11T04:50:22.803Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Binary Voxel Grid That Doesn’t Suck Part 2: AI Looked at My Code and Whispered, “You Good, Bro?”</h3><h3>You ever wake up, open a file you wrote the night before, and feel the sudden need to apologize to your future self? Like some digital war crime had been committed and you were both the war criminal and the historian left behind to catalog the atrocity.</h3><p>That was me.</p><p>I had built a binary voxel grid. It was functional. Fast. Played nice with FLECS. It sat snugly in UnrealEngine like a feral cat that had decided to tolerate your presence. But deep down, I knew something was off. You know that feeling when the engine compiles clean and the game runs, but you still hear the voice in your head whispering “you know if someone looks at your code they will mock you”?</p><p>So imposter syndrome takes hold, I look to make sure nobody’s looking and opened up Claude CLI, untethered it’s leash and said “<em>fly…my pretty.. fly.. and this will be our secret</em>”.</p><h3>I Threw the Code at the AI Coding Jesus and Waited to Be Judged</h3><p>There is something oddly spiritual about handing over your hard work to an AI and watching it dissect you like a frog in a year eight science class (<em>still haunts me to this day</em>). I didn’t expected a pat on the back, AI is a sycophant but it will always find a reason to needle pick your ideas/work.</p><p>What I got was a list. A long list. Like the kind of list your partner gives you after they say “tell me things I failed you as a husband, no pressure, just when you get time” (<em>I did that once, don’t recommend</em>).</p><p>Except this list started with<em>: “Why the hell are you using </em><em>try catch in UnrealEngine?”</em></p><blockquote><em>Right. No. Wait.. what’s your beef with good ol ye Try/Catch ai bro?</em></blockquote><p>I have been writing C++ long enough to know better. But that reflex is hard to kill. You write enough standard C++ and suddenly try catch slips in like it belongs. But it doesn’t. Not in UE. UE has check() and ensure() and a long-standing tradition of quietly judging you if you go off script. The AI called it out immediately and told me to stop trying to make STL happen.</p><blockquote>You’re not my mom, if I want to use STL I will. but for science, proceed.</blockquote><h3>Then came the shame parade.</h3><p>I had used std::queue&lt;FIntVector&gt; like some naive fool who thought UE would let me bring my own containers to the party. Swapped it out for TQueue like I should have done from the start. No arguments. I honestly didn’t see the forest for the trees. I had stared at the code so long I forgot that some things, while technically fine, are just wrong in context.</p><blockquote>If anyone asks though, It was there the whole time. This is our little secret.</blockquote><p>Oh, and then the AI snitched on me for using const_cast on a GetChunk() call. No defense. I had no reason. Just a lazy, quiet moment where I decided <em>&quot;eh it’ll be fine… kids today even use auto now for pointers&quot; </em>and moved on. AI suggested a proper const correct overload instead. I implemented it while muttering something about how I would have caught it later.</p><blockquote>Between you and me, I wouldn’t have.</blockquote><h3>Architectural Exorcism</h3><p>Then Claude got cocky. It gave me a refactor plan. I did not ask for one. It gave it anyway. I was about to protest, but figured<em> “well we’ve come this far, why not”</em></p><p>Split the code. Modularise. Stop piling distance field logic, bit ops, and coordinate transforms into one class like you are trying to speedrun a technical debt record.</p><blockquote>In my defense, I wrote most of this code at 3am and couldn’t care less about the ~1000 lines of code growth at this point.</blockquote><p>So I listened.</p><p>I split the beast into three heads:</p><ul><li>MyVoxelCoordinateSystem</li><li>MyVoxelDistanceFieldProcessor</li><li>MyVoxelChunkOperations</li></ul><p>Now my MyVoxelGrid just orchestrates. It is a conductor, not a drunk guy slamming random keys during a Billy Joel song in a dive bar at 2am while yelling “..Sing us a song, you’re the Piano Man.” Each system does one job and mostly keeps its mouth shut. The mess became manageable.</p><p>I was not convinced at first, but I did it anyway. Science demanded it. Or at least the AI did, and honestly at that point I was just trying to not get judged anymore.</p><blockquote>I was starting to get paranoid, this Claude fella, is kind of an a-whole when it comes to Code Reviews. I’m not past my use-by date already… am i?…</blockquote><h3>UE 5.6 Upgrade and I Panic Refactor</h3><p>Midway through the changes, the UE 5.6 upgrade idea slithered in. You know how it goes. You are already knee deep in your own rewrite, wires everywhere, things barely holding together, and then Epic pops up like some devil on your shoulder whispering, <em>“5.6 is ready, come on… do it… upgrade…”</em> So you do. And instantly regret it. Because now you are staring at new changelogs and wondering<em> “am i actually going to use any of these new changes anyway????”</em>.</p><p>So I took the opportunity to clean up. Worst case I can just git reset hard and pretend the past 20mins didn’t exist.</p><p>Added a real logging category because relying on LogTemp is a sin we all commit until we don&#39;t. I will never not learn that lesson enough.</p><p>I now used FORCEINLINE on the hot path stuff because microseconds matter when you are playing with thousands of voxels.</p><p>Wrapped chunk map access in FCriticalSection and left behind loud comments for my future self, like angry post-it notes from a sleep-deprived past-me.</p><p>And yes, I write verbose comments. Yes, I know many of you hate that. No, I am not stopping. I will meet you behind the bike shed after school at 3pm if you want to fight about it.</p><p>Come at me comment-bro’s.</p><h3>Code Quality or: How I Learned to Stop Winging It</h3><p>Then AI started sounding like a senior dev at a code review.</p><blockquote>“Stop returning void when things can clearly fail.”<br>“Add constants for your bit shifts instead of writing cryptic glyphs in-line like you are casting dark sorcery.”<br> “Comment your distance field algorithm, or I will.”</blockquote><p>It felt personal. I wanted to defend it, but couldn’t.</p><p>I grumbled. I did it anyway. Because it was right. Because that voice in your head that says “<em>you will remember why this code exists in six months</em>” is a liar. I’m old, my wife gives me shopping tasks most days and I still come home with a cow and magic beans instead of milk, bread and life stuff.</p><h3>Performance Shenanigans</h3><p>This is where things got real.</p><p>AI flagged some functions that should have been returning with MoveTemp. I had been passing around chunky structs like it was 2004. Muscle memory strikes again.</p><p>Then it went after my cache usage. Suggested precomputing index math. Called out cold logic mixed in with hot loops. I looked at it. It was right. I hate that it was right.</p><p>Then it went for SIMD (Single Instruction, Multiple Data). UnrealEngine has the tools. FVectorRegister is sitting right there like a power tool you forgot you owned. I had not used it. AI reminded me. That task is now queued, and it will hurt, but it will be worth it.</p><h3>The Result</h3><p>The codebase dropped in size by about 20%. Distance field calculation is now 18% faster. Voxel visibility updates no longer chew through CPU like a rabid dog.</p><p>More importantly, the code just feels better. No hacks. No weird assumptions. No spaghetti jumps between mental models. It reads like something you could actually hand to another dev without needing a drink first.</p><p>AI did not write this system for me. It just poked at all the stuff I already knew but had quietly shoved to the back of my brain. Any given day I am juggling five languages and I am in my 40s so yeah, old man problems.</p><p>Having AI around is like that junior dev who just got their degree and has not yet been crushed by bad meetings and worse deadlines. Full of energy. Zero fear. Thinks they are smarter than us old smooth brained grey beards.</p><p>And maybe they are.</p><p>But this one does not argue. It just points at your mess and says, “<em>Fix this</em>.”</p><p>You fix it. Mutter something like “<em>I would have found that eventually</em>” to save face. But deep down, no you wouldn’t have. And you know it.</p><h3>Takeaway</h3><p>This was not some AI utopia story. I wrote the code. I shipped the system.</p><p>But AI helped clean up after me. It found memory optimizations I missed. It caught patterns I glossed over. One example took a map entry from ~32 bytes down to ~8. It was right. I missed it.</p><p>Despite the fact that this thing still hallucinates global conspiracies if you ask it about politics, when it comes to cleaning up sloppy bit ops and bad const use, it earns the right to do a PR review.</p><p>It is not replacing me. It is just pointing at the mess I made and reminding me I knew better.</p><p>And honestly, that is enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7xhO3g-kJciMBFiqIvx1w.png" /></figure><blockquote>Yeah yeah, you smug a-hole… you think you’re so damn cleaver with your little emoji ticks as well.</blockquote><h3>What It Did Badly</h3><p>This thing might have helped, but it also pulled some absolute clown shoes moves that had me questioning whether it was optimizing or actively trying to gaslight me.</p><p>First off, it had this obsession with creating new classes. Constantly. For everything. You give it a clean FLECS component with a tight job and it’s like, “<em>What if we made a helper class for this?</em>” No. No, AI. We do not need MyVoxelGridChunkHelperCoreInterface. That’s not architecture, that’s bloat.</p><p>Then there was the renaming fetish. It hated my perfectly fine FLECS systems and wanted to rewrap and rename them like some junior dev trying to justify their git check-in quota. “This MyChunkMetaComponent? Too clear. Let’s rename it to ChunkMetaStorageUnitThing and create a new file for it.&quot;.</p><p>And the comments. Holy hell, the comments.</p><p>I had a boolean, literally bIsVisible = true, and the AI writes a comment that says “<em>this sets the boolean to true</em>.” That’s not documentation. That’s a a trigger warning even for me, not just those comment-bros.</p><p>But the worst part, the absolute crown jewel of chaos, was when it did not understand my logic, which happened more often than I’d like, and its answer was to gut the function, leave a husk behind, then slap a UE_LOG and a // TODO: fix this logic like some Law &amp; Order 90’s criminal attempting to make it look like an accident (<em>they always get caught, especially when they are known face and start the show by being innocent, so stupid</em>).</p><p>It didn’t fix the problem. It just removed the code, looked me dead in the eye, and said, “<em>I made it simpler.</em>”. This is why you pray your chat history with AI never makes it to perm storage, because when the Ai human purge comes, I&#39;m now on that list for the anger I responded with.</p><p>At one point I was so paranoid I started working like I was defusing a bomb. One change at a time. Pause. Review. Git commit. Deep breath. Let the AI move one line forward. Rinse and repeat. I ended up with a git history that looked like a charge sheet for a career criminal. Dozens of commits, each one a tiny prayer that the next suggestion wouldn’t destroy something important.</p><p>It felt less like coding and more like playing a rogue-like where every commit is a save point before the next potential wipe. I was on edge. I was caffeinated. I was furious. And yet… the damn thing still helped. Begrudgingly. Reluctantly. While trying to kill me.</p><p><strong>P.S. Why I use the prefix </strong><strong>My</strong></p><p>It is dumb, I know. But it works. When you are buried in UE source files and every autocomplete suggestion starts with U or F or some Epic engineer&#39;s internal type system, having MyVoxelGrid or MyDistanceFieldProcessor means I can find my code fast. I stole the idea from the SpaceEngineers SDK. They used it &lt;for reasons uknonwn&gt;. It stuck. I am not saying you should use it. But I am saying I can find my crap faster in the Editor than without it.</p><p>For now, I’m keeping it. got a problem with that… school sheds, 3pm, after school. fight me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b55ae8a6b82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mossyblog/building-a-binary-voxel-grid-that-doesnt-suck-part-2-ai-looked-at-my-code-and-whispered-you-6b55ae8a6b82">Building a Binary Voxel Grid That Doesn’t Suck Part 2: AI Looked at My Code and Whispered, “You…</a> was originally published in <a href="https://medium.com/mossyblog">dorizzdt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Binary Voxel Grid that Doesn’t Suck (and Plays Nice with Unreal and Flecs)]]></title>
            <link>https://medium.com/mossyblog/building-a-binary-voxel-grid-that-doesnt-suck-and-plays-nice-with-unreal-and-flecs-b875a4862200?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b875a4862200</guid>
            <category><![CDATA[entity-component-system]]></category>
            <category><![CDATA[flec]]></category>
            <category><![CDATA[voxel]]></category>
            <category><![CDATA[unreal-engine-5]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 07:12:17 GMT</pubDate>
            <atom:updated>2025-07-09T07:17:49.013Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been messing around with voxel grids for a while now, but this time I wanted to get serious. Not just about visuals or gameplay hooks, but the underlying data model. What started as a quick “what if” turned into a full rebuild of how I store and manage voxel data, tuned for destruction-heavy environments where performance actually matters.</p><h3>The Problem</h3><p>Every time I’ve seen destructible voxels done in real-time, it’s either chewing through memory like a black hole or hitting CPU spikes during visibility calculations. Most systems store way too much per voxel types, states, flags, metadata and then stack a bunch of deferred processing or complex spatial queries on top. It gets messy fast. Especially if you’re trying to simulate thousands of active chunks with visibility updates and dynamic damage in real time.</p><p>I didn’t want that. I wanted something predictable. Something I could push hard without worrying about memory fragmentation or surprise bottlenecks. And I wanted it to be clean enough to drop into an ECS system with minimal boilerplate.</p><h3>Why Flecs + Unreal Engine?</h3><p>The core sim and data layer are in C++, and <a href="https://github.com/SanderMertens/flecs">FLECS </a>gives me tight, high-performance ECS without getting tangled up in macros or reflection hell. I’m using Unreal for the rendering side — mostly because of the tooling, asset pipeline, and Nanite support for instanced meshes. <a href="https://github.com/SanderMertens/flecs">FLECS</a> handles all the simulation state, and I use an interop layer to pipe updates into Unreal via instanced static meshes and event-driven rendering updates.</p><p>This split makes it easier to simulate big environments without Unreal’s object overhead dragging things down. <a href="https://github.com/SanderMertens/flecs">FLECS</a> doesn’t care about visuals. Unreal doesn’t care about internal ECS logic. I keep them decoupled.</p><h3>The Grid Structure</h3><p>Each chunk is 32×32×32 voxels. Internally, I represent voxel solidity with a dense 1-bit array. So 32K voxels = 4096 bytes. Nothing fancy just a flat bit-packed buffer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/0*YIl16ddo3TnZA1Xd" /></figure><p>On top of that, I layer a distance field (<em>one byte per voxel</em>) that tracks how far each solid voxel is from the nearest air. That sounds trivial, but it’s the key to fast visibility. I can tell in constant time whether a voxel is on a surface just by checking if it’s solid and its distance is 1.</p><pre>visible = (bit == 1) &amp;&amp; (distance == 1)</pre><p>No neighbor lookups. No spatial queries. Just a boolean and a byte compare.</p><h3>The Dirty Field Hack</h3><p>When voxels are modified, I mark the chunk’s distance field as dirty. A <a href="https://github.com/SanderMertens/flecs">FLECS</a> system runs at the end of the frame and rebuilds any dirty distance fields using a 6-connected flood fill. That gives me lazy updates without overhead on every voxel write. It also avoids recalculating the whole field unless something actually changed.</p><pre>if (chunk.bDistanceFieldDirty) {<br>    MyVoxelGrid::ComputeDistanceField(&amp;chunk);<br>}</pre><p>That system runs on thousands of chunks with linear performance and tight cache usage. No allocations. No resizing. Just clean memory access.</p><h3>Testing and Validation</h3><p>I wrote a test suite to cover every core operation: bit manipulation, coordinate conversion, distance propagation, and edge case validation. Every mathematical invariant is tested: surface voxels have distance 1, air voxels are always distance 0, and no two adjacent voxels have a distance difference greater than 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3wIw2NBaXN6UPaOloDWiQ.png" /></figure><p><a href="https://x.com/i/status/1942246807209447768">https://x.com/i/status/1942246807209447768</a></p><p>Performance is solid. Visibility queries come in under 50 nanoseconds. Full chunk recompute takes about 6 milliseconds worst case. All of it holds up under stress.</p><h3>Results So Far</h3><p>Memory usage per chunk is ~37KB total, including metadata. That’s a 30 percent reduction compared to traditional 2-bytes-per-voxel models. Rendering integration with Unreal Engines ISM system works as expected. Visibility is fast enough to update mesh instances on the fly without hitching.</p><p>And most importantly, I’m not fighting the system. ECS runs clean. Rendering stays decoupled. No opaque black boxes. I know where every byte is going.</p><h3>Optimistic Goals</h3><p>Right now this system treats everything like a uniform 1x1x1 block, which works fine for terrain, walls, or internal structure. But it doesn’t capture the flexibility I actually want long-term. What if these weren’t just voxels, but construction elements Lego-style parts that span multiple voxel units? A 1x3 slope piece, a 2x2 curved panel, a 3x1 conduit. Not just visuals real structure-aware parts embedded in a voxel grid.</p><p>That’s where things will get interesting. My assumptions about solidity, adjacency, and visibility all will probably break. I’ll need composite shapes, multi-voxel occupancy, overlap checks, and a smarter system for propagation and distance updates.</p><p>That’s the next test. If this experiment can survive that multi-size parts, complex interlocking, real-time damage then it’s more than just a voxel trick. It’s the foundation of a real construction system.</p><p>We’ll see how far it stretches. Probably will f**k this up :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b875a4862200" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mossyblog/building-a-binary-voxel-grid-that-doesnt-suck-and-plays-nice-with-unreal-and-flecs-b875a4862200">Building a Binary Voxel Grid that Doesn’t Suck (and Plays Nice with Unreal and Flecs)</a> was originally published in <a href="https://medium.com/mossyblog">dorizzdt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CovidSafe App — Privacy vs Precision]]></title>
            <link>https://medium.com/@dorizzdt/covidsafe-app-privacy-vs-precision-6efcd7e07a32?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6efcd7e07a32</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[australian-government]]></category>
            <category><![CDATA[covidsafe]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Sat, 09 May 2020 14:14:56 GMT</pubDate>
            <atom:updated>2020-05-09T21:23:53.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>CovidSafe App — Privacy vs Precision</h3><p>The <strong>COVIDSafe App</strong> was born out of a need to get citizens of Australia to cooperate, and on the surface itself, it does that. However, the concern at the moment is that privacy promises are not living up to the contract.</p><p>For example, the privacy policy stated that within a specific time, the person’s ID would change itself — giving more chance of a person having a dynamic digital footprint. Yet, the more the <a href="https://covidsafe.watch/"><em>external dev herd</em></a> (who are reverse-engineering the app) discover, <a href="https://docs.google.com/document/d/e/2PACX-1vRcwBWxI74YNVVpRmRw54Rn6OHqY0d4yAEJNTTX94uz0wPKYQHHpAdc-Z2rmDLK_0soE1VgOP0J_C8Y/pub?embedded=true">it is not the case at all</a>.</p><blockquote>The Privacy Policy states that “An encrypted user ID will be created every 2 hours”, and this represents a major flaw, in which it is possible for someone to be traced for more than 2 hours. This can lead to the same UniqueID being used for multiple days.</blockquote><p>A promise already is broken, sure its a relatively benign hotfix and so on, yet it demonstrates that despite good intentions, engineering and people aren’t always going to get things right through the first iterations.</p><p>Folks can now kick the sick puppy, with comments like “<strong><em>See I told you government can’t be trusted</em></strong>” and so on, as this is the perfect fuel source to ignite reasons “<strong>why you shouldn’t trust the government</strong>”.</p><p>Hard to defend and anyone who has worked with citizen sensitive data within Government know, this is par for the course. You expect this to occur in your initial strategy and planning phase you fear it because you want success but do not want to invoke the wrath of a minister embarrassed by incompetence (no matter how small).</p><p>I’ve worked for many government departments as a contractor. I’ve worked with a lot of sensitive data in my time; it is handled with reasonable care daily. I have no issue with the Government and my data; it is as per daily routine.</p><p>The difference, however, with the Covid19 apps is its tracking you potentially a micro levels of interactions, meaning your movements and identity are regarded the same. Issuing this level of observation comes at a high cost, do you weigh up the greater good of all and ignore the likelihood of privacy breached.</p><p>The answer is — maybe.</p><p>Australian Government hasn’t given a middle ground here, they’ve indicated its all or nothing, which is not realistic as you can have multiple layers of privacy controls here per person.</p><p>Today, CovidSafe App has optimised for precision, in that having phones interact with other phones to determine proximity is the goal. The theory that <em>if PersonA comes within X-metres of PersonB (who’s infected) that at a later date, PersonA gets notified “go get tested”.</em></p><p>Let’s unpack that value proposition, in that Australian Government asks you for your <strong>Name, Date of Birth, Postcode, Phone Number, Model Name</strong> and trust. Once these data points are collated, they will tell you with a degree of certainty that PersonB proximity to you may result in a heads up on likely infection.</p><p>Seems a very onesided transaction — you give me more details then you’re probably comfortable giving, and I’ll tell you if you rub up against someone who’s got COVID-19.</p><p>Ok, what would you do next? Well, you’d get tested to see if you are positive/negative. That’s, the call to action, get tested. There is no special task force kicking down doors and ramming medical tests up your nose, its a polite “<em>could you maybe go get tested please, thanks</em>”</p><p>Let us change that equation around a little. Let’s assume the person installs an app, they automatically generate an ID (as-is), and they every X cycles in the background post their GPS location to a server. Then every Y cycles they ping another server asking “prompt for the test: true/false”.</p><p>Should the prompt yield a positive answer — true, well get tested.</p><p>What has changed, firstly we’ve sacrificed a little amount of precision here, given GPS isn’t exactly accurate down to the cm/metre. Secondly, we’ve given up fewer privacy concerns in exchange.</p><p>Does that matter, though?</p><blockquote>Let’s assume the lockdowns finished, and 100 people crowd at a shopping centre for 6 hours. Unfortunately, 5 people in that 100 were positive for COVID-19 without realising it. Within the 100 people, only 60 people had the app installed.</blockquote><p>In the above scenario, why does precision matter? …</p><p>Wouldn’t it be fair to assert you would want the full 100 people to be tested?</p><p>Using the app, you could argue both scenarios above are used to ping people with the said app “go get tested”. At the same time, you’d probably announce to the media (for those who don’t have CovidSafe app) that persons that were at shopping centreX during this period — get tested. Note, that 60 people had the app installed, which means 40 people are ignorant of said test unless a vague “location” is declared through other communication channels.</p><blockquote>Hint: You sacraficed personal information for the same outcome as those who didn’t.</blockquote><p>The approach to testing is the same regardless of tech, as all precision gave an academic moment of determining just how close someone was to another person — which is moot, that’s sure way more optimised but its still a moot data point until you have critical mass (ubiquity or nothing).</p><blockquote>COVID-19 also has been found on surfaces for various periods of time after the infected person has passed by. Again, precision is blind to this, as its beyond a phone to phone problem but more of a location and proximity issue.</blockquote><p>GPS over Bluetooth gives less accuracy, which, to be fair, isn’t entirely correct either. However, why not have the option for both.</p><p>If <strong>citizenA </strong>feels uncomfortable with giving over details, GPS is still better than nothing. If <strong>citizenB </strong>is relaxed, then the Bluetooth option is opt-in, and precision is optimal.</p><p>Why does it have to be a yes/no answer, especially given the level of trust towards any government department isn’t going to yield positive outcomes?</p><p><strong>Trust needs to be earned</strong>, as they say, Governments can easily earn citizens trust without having to make them bend the knee on privacy at every chance a problem occurs. We knowingly give 10x more information that’s being asked by CovidSafe App to Corporations in exchange for entertainment, so we’re all not precisely pure in our privacy choices either.</p><p>Asking folks to hand over identifiable data during a time of epic anxiety and done at a rushed pace, is too much too soon. Ergo, your ability to achieve critical mass is much harder to campaign for — especially if you can’t uphold promises.</p><p>GPS is ‘good enough’, and privacy minimised to an ID and GPS location. You can still broadcast to people within a reasonable radius to get tested, which is still the only call to action you can ask at this point.</p><p>The same outcome, different methodologies to achieve it, which would get the most adoption and does it need critical mass to be still effective.</p><p>What does precision give? The ability to minimise disruption is the answer, well until 40% of the Australians knowingly adopt 24/7, and it works — that promise is still broken and precision didn’t offer value.</p><p>That’s now two promises broken even before the application is installed.</p><p>Ubiquity isn’t an easy thing to achieve, when I worked at Microsoft as a Product Manager for Silverlight, that was all we chased — we need our technology on 98% of the worlds computers or we fail. We spent millions and worked aggressively to achieve that goal, but we peaked at around 400million out of billions despite our wealth and focus — during a time may i add when Microsoft had its own brand and trust issues as well (Consent Decree / Department of Justice).</p><p>Focusing on getting ubiquity is a very hard thing to achieve in any scenario and the only lesson I’ve learned in that space is, ease into the problem, don’t brute force your way into peoples digital lives.</p><p>As they always tell you — no.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6efcd7e07a32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is a resume now just a keyword metadata]]></title>
            <link>https://medium.com/@dorizzdt/is-a-resume-now-just-a-keyword-metadata-768b91a906bd?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/768b91a906bd</guid>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[applicant-tracking-system]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Wed, 06 May 2020 02:02:13 GMT</pubDate>
            <atom:updated>2020-05-06T02:15:37.121Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is a resume now just a keyword metadata file?</h3><p>It’s late in the business day, or maybe it is early, either way, you get that phone call or in-person conversation. Its the type of conversation you dread and as much as you can try not to demonstrate emotion.</p><p>Your employment has come to an end — for whatever reasons, performance issues, COVID-19 fallout, contract renewal cancels whatever the causation, it’s not within your control anymore.</p><p>As you pack your things and head out the door for the last time, there’s a mixture of embarrassment, resentment, fear, anxiety or maybe its relief and nothing but dopamine. No matter the reasons why, it’s not essential, what is important now is you focus on the next steps, which is get back out there, find the next role.</p><h3>Resume Updated.</h3><p>The first task is to update your resume; now this is problematic as you have so much to say about what you did as a person in the previous role but have a short amount of column space to type.</p><p>Some put a couple of sentences together, a very brief outline of projects you worked on and various milestones you delivered while at the previous company.</p><blockquote>“…i’ll just write a couple of sentences and when i get to the interview, i’ll explain more then.”</blockquote><p>You may adjust your skills, switch some around from being moderate to advanced because at the previous company you went pretty intense this time on React JS instead of just being a .NET developer — who knows.</p><blockquote><em>“… i did some react coding…or is it reactjs….or react.js… bah, doesn’t matter, the person reading this understands what i mean.</em>.”</blockquote><p>The resume is complete, its now ready for the market to consume.</p><h3>The hunt begins.</h3><p>Early into the job hunt process, you start to see a lot of ads around the job filters you’ve applied; specifically, there is repetition emerging. As a job seeker, you know a lot of similarities in roles advertised; clearly, the original company seeking a position has farmed it out to multiple recruiters.</p><p>One of the advertisements is selected; you grab your recently updated resume and submit away. Ignoring the other ads of similar asks, you move onto other jobs and iterate on that process.</p><blockquote>“…oh i see, the recruiters all got the same companies work, so its down to who can fill the position first. I’ll just choose one of them, as i don’t want to waste the other recruiters time..”</blockquote><h3>Mistakes were made.</h3><p>Recruiter eventually makes contact with you regarding the role you submitted; they ask strange questions like:</p><p><em>“have you spoken to other agencies yet….what roles have you applied to recently and who for?…”</em></p><p>All before even getting deep into the conversation about the role applied.</p><p><strong><em>TIP: They aren’t asking to be curious, they’re also trying to get you to give up some intel on which other companies are in play and do they have exclusivity over you before they begin helping….</em></strong></p><p>Next without fail, the recruiter may ask you to re-write your resume but this time seeding in more keywords to suit the role itself, and now you have a resume designed for the part filled with keywords you’re not entirely clear on why is suddenly necessary.</p><p>Re-write my resume to suit a job advertisement and what now, change my titles from previous jobs to pander to the ad? …that …that seems unethical?</p><p>It is quite common actually, in fact on my resume depending on the role I’ve found that I often have to flip titles around to get past the first few rounds of the automated systems.</p><p>Which I am sorry to say, actually works.</p><h3>Recruitment is a contact sport.</h3><p>Many years ago, I was an Evangelist for Microsoft. My role was simplistic; go meet with developers and designers within the industry and show them how Microsoft products and solutions by way of demonstrations, used to solve their plethora of problems.</p><p>A role like this meant you had to first be amongst the herd of development communities, and it must be done by way of interaction through user groups, forums they hung out on, various other social media touchpoints and so on. Friendships that I have to this day are still intact because of this role, as it was a contact sport driven role — you had to be often hanging out and building deep relationships with your audience.</p><p>Recruitment should be the same way, as the difference between the role I described and recruitment is it went from “<em>how you use tech</em>” to “<em>I can connect you to companies and/or people to use the said tech</em>”.</p><p>Sadly, this dynamic has mutated away from that human contact approach but has somehow been sold as a document management system instead.</p><h3>A Resume is now just metadata about you.</h3><p>A resume today has to be carefully constructed to fit a particular title set, with the right balance of keywords seeded into its creation. A system that consumes it isn’t that sophisticated either, in fact, its borrowed a lot of old sets of behaviours search engines used to have in the past (lots of excessive keyword seeding to increase ranking probability metrics).</p><p>Candidates don’t know this though, by in large most would assume your resume gets sent to a person, who reads it then makes a decision on your skills for an interview yes/no.</p><p>No, hell no.</p><p>A resume is now a metadata payloud about you but also with rich formatting as well.</p><p>Companies are paying $1–10k for this process to work; moreover, the fatigue levels of a candidate to a recruiter to interview process are excessive and unnecessary.</p><p>Simply put, the entire pipeline doesn’t feel like its doing anyone any favours.</p><h3>A title and skills aren’t easily consolidated.</h3><p>Software development titles today have taken on a much larger footprint than they did ten years ago, mainly with job titles emerging now that absorb a lot of touchpoints that aren’t boilerplate or industry-accepted. A Developer today working with node.js could easily be mistaken for a DevOps person, as they regardless if you have one staff or not need to know how to share their work with others in a very containerised environment.</p><p>Frontend developers that work in react need to understand design tools like Figma or Sketch, as they need to integrate how to take a detailed design and feed into a responsive website.</p><p>Interface Designers, at times, need to know code, and coders need to understand design and so on.</p><p>The roles are overloaded, and to classify each function into to a very niche category and to have ads titled “Full stack dev” and do questions like “do you know AWS?” are not only broad and vague, it is borderline insulting.</p><blockquote>Example — take this entire diagram and come up with a way to describe not only the title, but what’d you ask from a developer before hiring them. Does that answer go beyond “Fullstack developer who knows react/AWS?”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YanhuW9KC8ZT3WVS" /><figcaption>Roadmap for a Front End Developer (<a href="https://github.com/kamranahmedse/developer-roadmap">https://github.com/kamranahmedse/developer-roadmap</a>)</figcaption></figure><p>How does <a href="http://www.jobadder.com/">JobAdder </a>know to filter this back to the right title and right role?</p><p>It would be easy to blame the recruitment industry for this behaviour, but I feel it goes much broader in terms of how we communicate with one another. I think that resumes aren’t the right way we connect for that next role.</p><p>There is so much more to this problem beyond convincing a human who’s got limited experience in this space you are the right candidate for an interview.</p><p>Your resume is the only medium right now available to you to get your foot in the door for an interview. Once you sit down with the potential employer, that is where the chance of explaining your skills and abilities will get into much deeper territories — as now both parties are trying to figure out how that relationship could now work.</p><p>However, if you screw your resume up and don’t seed it with the right amount of keywords or your titles don’t match up with the job advertisment in the right way under the right conditions — you won’t even get that chance for an interview. The recruiter probably won’t even factor you into their list to put forward to the client, essentially you have failed to rise above the noise.</p><p>The only way to fix this is to remove the automated systems, and ensure that recruiters go back to understanding the domain(s) they are selling into.</p><p>A statement like that, seems reasonable but will not happen for quite some time.</p><p>Some of you are out of work due to COVID-19 the next challenge you face is working through this pipeline. A pipeline that has no documentation, no handbook and is based around a lot of trial and error process.</p><p>The more we dig into this pipeline and its process, the more I openly ask the question on what value is being produced between the moment you update your resume to the moment you sit with a potential employer.</p><p>It’s hard enough for people dealing with the concept of not being employed, but to have no guidance, low empathy and moreover be held to a undocumented and unclear metadata criteria that isn’t consistant or fit to any standard while at the same time consolidating years of hard work into a keyword search.</p><p>Think on that, diagram above. A front end developer has had to figure out on their own an amazing amount of boxes to check off in order to build their career to enable others to build solutions, yet when it comes to find their next gig, a paragraph and keywords is what they have to be reduced to.</p><p>How did we end up as this being the best idea of the day still?</p><p>I know this, a resume built in Microsoft Word isn’t going to give your next future employer a true understanding of the depth and breadth of work you performed at your last role.</p><p>A recruiter asking you to switch out titles and description isn’t doing the role I thought they were offering, there is no advocacy in such a process, it would appear everyone is time poor.</p><p>Hiring someone for over $100,000 per year and we don’t have enough time to consider if they are even good enough to do the job beyond a paragraph? …we invest more time in a tinder, instagram, twitter, facebook etc profiles than we appear to for our careers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=768b91a906bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XAML Standard — Blessing and Curse]]></title>
            <link>https://medium.com/@dorizzdt/xaml-standard-blessing-and-curse-4b820a37093f?source=rss-b31097e577e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b820a37093f</guid>
            <category><![CDATA[uwp]]></category>
            <category><![CDATA[wpf]]></category>
            <category><![CDATA[xaml]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[xamarin]]></category>
            <dc:creator><![CDATA[dorizztd]]></dc:creator>
            <pubDate>Mon, 22 May 2017 03:42:50 GMT</pubDate>
            <atom:updated>2017-05-22T03:52:57.496Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week <a href="http://github.com/Microsoft/xaml-standard/issues/97">my name was invoked</a> in the XAML Standard(s) GitHub Issue list. First glance I laughed and felt flattered by it and initially wrote it off as being a humorous moment at best.</p><p>I went to lunch and didn’t think much of it until the walk back when for some reason I focused on the one word — <strong><em>standard</em></strong>. Not specification, not the proposal but standard.</p><p>In a space such as XML when someone throws that word around it takes on an important meaning, because what you’re saying out loud is we need to all agree now on a final version of this thing we are working with.</p><p>I’m now suspicious of Microsoft’s intent on defining a standard on an XML vocabulary that has been mutated quite a lot over the years, in that are they actually wanting to bring all boats to the same tide mark? or is this just a dump and run strategy?</p><p>I probed, I began asking questions and making change requests to see what comes back and sure enough, some folks in the Microsoft team took that bait. They updated the repo with some more specifics around “who” and “what” but still haven’t really cemented “why” (it’s vague at the time of writing).</p><p>The key ingredient to the probe was the answer to who is accountable and has authority on what gets in or out for this new “standard”. Sure enough, it ended with what I suspected, UWP and XAML Forms team(s) have the final say.</p><h3>Why is this bad?</h3><p>Well, firstly why are they two separate teams to begin with?</p><p>Seems odd, I mean I get the acquisition of Xamarin occurred but where is that odd project name that explains the “merger” of the two forces? Seems as if the two are still in isolation and that’s not a good thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*kmQx3f8YmrG9ug7ovk0Osw.png" /></figure><p>Secondly, why are these two teams having a say in an XML vocabulary they themselves have mutated beyond what it once was in WPF/Silverlight days. Where is the third voice, the friction that says “<em>don’t forget what we had done in the past</em>” and if there is a fork in the road on the difference(s) — why? that question still goes unanswered today.</p><h3>What is the solution to the bad?</h3><p>Outside counsel, the different set of players, folks who have a dog in the fight as well as those who don’t. As at the end of the day the important point of defining an XAML Standard is to place a point on a roadmap and say out loud “<strong><em>everyone please move your vessels in this direction so we all land here in the next XYZ months/years</em></strong>”.</p><p>Instead, Microsoft has stated they want the standard done by the end of the year and that these two teams are the ones who’ll act as the ones who “<em>review</em>” the changes. It’s kind of like saying Microsoft will act as the people who will review HTML6 because the Internet Explorer team have a browser already? —<em> you’d not accept that right? …..right? ..please tell me you agree</em>.</p><h3>You didn’t answer the question, who?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Q4Vypqw1jEUH83zBmAdf_g.png" /></figure><p>In order to answer that question, we need to agree on “why” first.</p><blockquote>Why create an XAML standard and what’s the end game look like here?</blockquote><blockquote>Is it to make lives easier for the UWP/Xamarin team? or is it to enable companies like Unity3D, Adobe, SketchApp etc to create Tooling to support XAML while Microsoft and others create frameworks to implement?</blockquote><p>If its the later, then the who is simple — Invite others who want to bridge the gap between designer and developer into the mix so that multiple lenses can be applied to the “review” of changes.</p><h3>Is XAML Microsofts though? why do others need to be involved?</h3><p>Friction. You need to look at how the implementation of XAML is going to work not just from the “framework” of choice but also the tooling and platform that are supposed to support it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*xUNhyeIvJHHahhZAY2ebRA.png" /></figure><p>XAML’s job is to describe the intention of the User Experience platform, its job is to not tell you which language (C#, Java, JavaScript etc) you do the implementation on. It simply defines an agreed contract between developers and designers on how a user interface composition is to both behave and visually look.</p><p>To keep it independent it needs to live beyond Microsoft or subject itself to the failure of the Expression Suite past. Make no mistake that entire strategy failed and it left a bitter taste in the companies appetite to try again.</p><p>Microsoft want to teach developers how to design, but they lack the understanding of what makes the design instinct work and furthermore, they lack the ability to translate a great user experience from a non-Microsoft team into their pipeline.</p><p>They can’t be apart of this designs discussion until they fix this wound between developer and designer workflows. Anything but this is just lip service and theorycrafting.</p><h3>Next steps then?</h3><p>Microsoft needs to take a step back and ask the question “why” are they doing this and “who” is it intended for. If the answers keep coming back to making UWP and Xamarin Forms converge into a unified story, then it’s not a standard it’s a specification play. Fine, be upfront about this but do not declare a standard in an open source community to only hijack it with your own agenda.</p><p>If it is a standard than you the developers of Microsoft community have a very rare opportunity to fix the last 5–6 years of strategy in one hit. This is your opportunity to establish a contract between the UX Platform(s) of tomorrow and your cross-device / cross-platform strategies.</p><p>XAML 1.0 standard will be significant for the future of Microsoft going forward and if done right will likely jump start the companies UX strategy. As to define an XAML standard means to define what must at a minimum be compliant in order to wear the “standard compliant” badge. To then come up short is a huge party foul on the companies part, and will be a massive weak point in any upcoming product release ergo creating more pressure to get it right.</p><p>The Microsoft developer and designer community need to now hold this one GitHub repo accountable more so than ever, as you falter here in the slightest, you seal your own fate and no amount of “transparency” and “open source” narrative will save you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*Skkb_OqsDTuGaewgvbEWsw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b820a37093f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>