Archives
All the articles I've archived.
One Rendering Optimization Left Before Launch: Why Prioritize Overdraw and Pixel Bandwidth?
Mid-range mobile URP builds dropping below 30 FPS with thermal throttling right before release: How to isolate the bottleneck in 5 minutes, 3 high-ROI fixes for Overdraw and Tile Memory bandwidth, and a C# quality-priority guard.
Diagnosing GPU Bottlenecks on Mobile in Unity: The Right Order for Profiler and Frame Debugger
Mobile builds dropping below 30 FPS with thermal throttling while the CPU sits idle: A 4-step diagnostic sequence from CPU Timeline and Render Scale isolation to URP Frame Debugger passes and C# frame timing telemetry.
Looking at the GTA VI Wave: Why Rockstar Burns Money on Wind-Rippled Shirts While We Cut Every Line Without ROI
Having never finished every GTA, I still cannot shake how Rockstar pours thousands of engineering hours into details with zero direct revenue - the exact opposite of commercial mobile game sprints.
GTA VI Locking 30 FPS Is Not a GPU Problem: A Game Developer's View on Frame Budgets
Locked at 30 FPS on current-gen consoles even when lowering resolution cannot unlock 60 FPS: What GTA VI's CPU-bound simulation teaches game developers about frame pacing and architectural trade-offs.
Observer Pattern in Unity: Instance Class or Static Class?
Why choosing a static class for an Observer system just to skip instance management does not prevent memory issues: Dissecting MulticastDelegate GC Root retention, Domain Reload traps, and lifecycle-driven scoping.
Scaling 500 Puzzle Levels in One Week: Data-Driven Pipeline, Parametric Variation, and Automated Validators
Why brute-forcing Scene prefabs fails at 500 levels a week: Agreeing on a level schema with Game Design, scaling stacked-cube layouts via MaxStackHeight parameters, and blocking deadlocks with an automated C# level validator.
Why Does Addressables Reduce Build Size? Lifecycle-Based Asset Delivery and Cutting a 200MB Mobile Game Down to 80MB
Addressables does not compress textures or audio smaller: How temporal asset partitioning by player lifecycle cut a 2D PSB puzzle game from over 200MB down to 80MB, along with CDN and operational trade-offs.
MaterialPropertyBlock Prevents Material Duplication, So Why Does It Break the SRP Batcher?
Migrating from Built-in to URP with MaterialPropertyBlock to stop material leaks often disables the SRP Batcher in Frame Debugger: How UnityPerMaterial CBUFFER layouts conflict with per-renderer overrides and practical alternatives.
Why Choose ASTC 6x6? Texture Block Compression Internals and Mobile VRAM Trade-offs
Why ASTC 6x6 is the de facto mobile default: Inside the fixed 128-bit block architecture, balancing bits-per-pixel against TBDR memory bandwidth, and partitioning compression across UI, Normal Maps, and Albedo.
Static Batching, GPU Instancing, and SRP Batcher: Hardware-Level Architecture and Engineering Trade-offs
Why fewer Draw Calls do not guarantee smooth frame rates: A hardware-level deep dive into vertex duplication in RAM (Static Batching), per-instance matrix buffers (GPU Instancing), and CBUFFER caching (SRP Batcher).
Reflections on AI in Game Development (Part 5): Game Development Beyond Metrics: When AI Restores Pure Creative Freedom
When was the last time you made a game purely for fun? As AI drives the cost of experimentation to zero, developers reclaim the unadulterated joy of creation.
Vibe Coding and the Cultivation Fantasy: An Outsider's Perspective
Why do eight out of ten vibe coders build Xianxia cultivation games? Technical insights and psychological reflections from a complete outsider to the genre.
Do High Draw Calls Mean a Slow Game? CPU Submission Internals and 3 Real-World GPU Bottlenecks
Slashing Draw Calls from 500 to 70 yet FPS still crawls and the phone overheats: The truth about CPU Render Thread submission, SetPass state switches, and 3 actual mobile GPU bottlenecks.
Reflections on AI in Game Development (Part 4): Confessions of a Traditional Dev: How I Actually 'Cheat' with AI
Real engineers don't boycott AI. A candid confession from a decade-long game dev: 3 workflows where AI delivers 5x velocity, red-teaming code, and painful scars.
If FixedUpdate Runs on a Stable Timestep, Why Not Process All Logic Inside It?
The architectural clash between Simulation Time and Presentation Time: 4 production hazards of dropped inputs, micro-stutter, input lag, Spiral of Death amplification, and a decoupled game loop.
Large Texture Atlas vs Small Textures: Batching Mechanics and VRAM Trade-offs
Why packing atlases minimizes GPU draw calls but indiscriminate grouping causes severe memory retention and AssetBundle bloat: GPU state changes, mobile TBDR architectures, and lifecycle-driven partitioning.
Multithreading in Unity: Why Mobile and WebGL Runtimes Require Radically Different Architectures
Confidently deploying C# Tasks and Job System on Mobile leads to critical failures when porting to WebGL: Key runtime divergences between POSIX threads and WebAssembly sandbox, COOP/COEP security bottlenecks, and Time-Slicing architectures.
Late Join in Observer Pattern: When Events Are Not Enough for State Synchronization
UI screens instantiated after events fire render stale or blank states: The Late Join problem, stateless Observer limitations, and State-Aware ObservableProperty architecture in Unity.
Handling Scene Unloads During Async Operations: CancellationToken Architecture, Eliminating Zombie Tasks, and Preventing Memory Leaks in Unity
Scene unloads during active asset loading trigger MissingReferenceException and silent RAM leaks: CancellationToken lifecycle integration, destroyCancellationToken, and leak-free cancellation patterns in Unity.
Why Ads SDKs Mandate Main Thread Execution: OS Native UI Thread Internals and Plugin Threading Boundaries
Wrapping mobile ad loading calls in Task.Run under the mistaken assumption of optimizing network I/O is a primary cause of native application crashes. Bóc tách Native UI Thread internals, JNI hazards, and safe callback dispatching.
Renderer.material vs Renderer.sharedMaterial: Memory Leak Traps, Broken Batching, and the MaterialPropertyBlock Solution
A casual renderer.material.color call can destroy your game performance: spawning hidden Material copies in RAM, multiplying Draw Calls, and leaking C++ native memory. Discover the engine internals and optimal MaterialPropertyBlock techniques.
Running Background Tasks in Unity: UnitySynchronizationContext Internals and Safe UI Thread Dispatching
Heavy background tasks crash with UnityException when touching UI or Transform: How UnitySynchronizationContext marshals continuations and 3 production thread-dispatching patterns.
Coroutine, C# Task, UniTask, or Awaitable (Unity 6): Execution Internals, Threading, and Memory Management
Using standard C# Tasks in gameplay loops triggers Main Thread crashes and heap allocation. Runtime internals, UniTask zero-alloc struct pooling, and Unity 6 native Awaitable threading.
Camera Jitter When Following Player: A Decision Tree from Physics Timestep, Script Execution Order to Sub-pixel Jitter
Running at 120 FPS but camera tracking still jitters: A 3-tier troubleshooting decision tree from 50Hz Physics timestep mismatches and Script Execution Order to sub-pixel rounding.
Under the Hood of FixedUpdate's Time Accumulator: The Spiral of Death and How to Extinguish It
Frame drops causing physics time accumulation that spirals into total freeze: How Unity's internal loop triggers the Spiral of Death and how Time.maximumDeltaTime acts as a circuit breaker.
Does a 150MB Mobile Game Really Need Addressables? The Direct Reference Illusion and the RAM Reality
A 150MB build eating up 700MB of RAM and crashing under Low Memory Killer: Direct reference memory bloat and how local Addressables keep runtime footprints lean.
How to Partition Addressables Groups for Hot Updates and DLC: A 4-Tier Strategy Without Ballooning CDN Costs
A minor tweak forcing users to re-download hundreds of megabytes from CDN: A 4-tier Addressables grouping strategy using ContentUpdateRestrictions and content_state.bin for Live-ops games.
Why RAM Does Not Drop After Scene Transitions in Addressables: A Profiler Leak Tracing Guide
Unloading a scene yet native RAM on the Profiler remains pegged at peak usage: Lifecycle decoupling between scenes and AsyncOperationHandles, with a 3-step leak tracing procedure.
Addressables Reference Counting: Why Object.Destroy Fails to Free Memory
Destroying GameObjects leaves native RAM unchanged due to Addressables two-tier reference counting. Bundle-level asset pinning mechanics and how to pair Addressables safely with Object Pooling.
From Resources and AssetBundles to Addressables: Tool Upgrade or Resource Management Mindset Shift?
Migrating from Resources to Addressables is an architectural paradigm shift, not a syntax change: Asynchronous lifecycles, bundle-level reference counting traps, and WaitForCompletion pitfalls.
Is Object Pooling a Silver Bullet? Premature Optimization and Practical Architecture Boundaries
Overusing Object Pools bloats native RAM and piles up state reset technical debt: Reality checks on optimization zealotry and when simple Instantiate-Destroy is actually superior.
Object Pool Keeps Bloating: How to Solve Pool Bloat and Peak Memory Retention in Unity
Burst combat expands object pools to hundreds of instances that never release their native RAM footprint: 4 memory-conscious pool shrinking strategies tailored for mobile constraints.
Reflections on AI in Game Development (Part 3): The Fragile Boundary Between 'Creativity' and 'AI-Slop' (A Matter of Taste)
Why AI games get dismissed as soulless slop: When technical barriers vanish, artistic taste, craft, and vision become the defining difference between spam and genuine games.
Object from Pool Has Corrupted State: What Should You Suspect First?
Spawned bullets flying backward or pooled enemies spawning already dead: 4 classic stale state traps across Awake vs OnEnable, Rigidbody inertia, C# event leaks, and ghost coroutines.
Instantiate and Destroy in Unity: Is GC Really the Most Expensive Cost?
Blaming Instantiate primarily for GC spikes overlooks where the real bottleneck lies: Native C++ deserialization overhead, transform hierarchy dirtying, and how to optimize spawns.
Pursuing Zero-Allocation in Unity: The Holy Grail or an Architectural Trap?
Obsessing over zero-allocation for cold paths like UI popup clicks wastes time and damages code readability: Drawing pragmatic lines between Hot and Cold execution paths.
Out of Memory Crashes on Mobile: What Is the True Culprit?
Mobile games vanishing abruptly with zero exception logs: How iOS Jetsam and Android LowMemoryKiller terminate apps, distinguishing Native from Managed memory, and practical diagnosis.
Why Doesn't Mobile Game RAM Decrease After Garbage Collection?
Profiler confirms garbage collection succeeded yet total mobile RAM never drops: The non-compacting nature of Boehm GC, High-Water Mark retention, and heap fragmentation.
Incremental GC in Unity: Does It Truly Eliminate Frame Drops and Stutter?
Enabling Incremental GC splits sweep phases into slices, yet gameplay still stutters: The limits of time slicing, allocation pacing spikes, and why zero-alloc design remains essential.
1 KB Per Frame, 3.6 MB Per Minute at 60 FPS: How Much Memory Are Your Strings Trashing?
Allocating 1KB per frame seems harmless until 60 FPS piles up megabytes of garbage: The StringBuilder.ToString() UI trap and zero-alloc string formatting techniques.
Using Structs to Avoid GC Alloc: Are We Actually Flooding the Profiler with Hidden Garbage?
Switching from Class to Struct to avoid GC spikes often triggers hidden boxing allocations: Interface casting traps, virtual dispatch pitfalls, and zero-alloc generic constraints in C#.
Reflections on AI in Game Development (Part 2): The Gatekeeping Trap and Professional Pride
Why seasoned engineers felt resentful watching newcomers build games effortlessly: Unpacking technical defensiveness, professional gatekeeping, and redefining engineering value in the AI era.
No 'new' Keyword in Code, Yet Profiler Reports GC Alloc: Dissecting 4 Hidden Allocation Traps in Unity
Zero 'new' keywords in code yet Profiler reports constant GC Allocations: 4 hidden heap culprits—struct boxing, lambda closures, LINQ execution, and string formatting—with zero-alloc solutions.
Update Allocating Tens of KBs Per Frame: How to Pinpoint the Culprit Code in Unity?
Update loops allocating dozens of kilobytes per frame with the exact line unknown: A 3-step diagnosis workflow using Unity Profiler, Deep Profile, and Memory Profiler.
Game Runs Smoothly at 60 FPS Then Periodically Stutters: Deconstructing GC Spikes and Precise Profiler Diagnostics
Smooth 60 FPS gameplay freezing for a split-second every 15 seconds: Stop-The-World Boehm GC pauses, heap expansion dynamics, and a 4-step Profiler diagnosis to eliminate periodic spikes.
Reflections on AI in Game Development (Part 1): The 'Vibe Coding' Surge and Games Built in Hours
Scrolling social feeds filled with AI-generated games built in hours: Amusement, shock, or career anxiety? An honest perspective on the vibe coding wave from a seasoned game developer.
Inspecting Runtime State in Unity: Moving Beyond [SerializeField] and Debug.Log
Exposing private fields with [SerializeField] clutters the Inspector while spamming Debug.Log in Update generates GC spikes: Cleaner runtime diagnosis using Debug Mode, Gizmos, and IMGUI.
Centralized vs Decentralized DataService: Architecting Modular and Crash-Resilient Save Systems in Unity
Letting each manager write its own save file creates race conditions, while a centralized DataService creates a bloated God Class: Building a clean Single Source of Truth Save System.
Saving Multi-Megabyte Game Data Without Frame Drops: Snapshots, Off-thread I/O, and Atomic Swaps
Freezing the screen for half a second while saving a multi-megabyte game state: Main-thread state snapshotting combined with background thread async IO and atomic file swapping.
Game Save Schema Migration: Preserving Player Progress Across Version Updates in Unity
Players losing their save progress after updating because a new field broke deserialization: Designing a versioned Save Schema Migration pipeline with zero data loss.
The 48-Hour Technical Take-Home Test: Avoiding the Singleton Trap Without Over-Engineering
Faced with a 48-hour game test: Singletons get disqualified while heavy DI frameworks like Zenject add bloat. Practical Pure C# Dependency Injection keeps architecture clean and 100% testable.
PlayerPrefs, JsonUtility, Newtonsoft.Json, or Binary: Which Save Strategy Fits Your Unity Game?
Misusing PlayerPrefs for complex RPG data causes IO freezing and corrupted saves: Performance comparison between JsonUtility, Newtonsoft, and Binary, with atomic file write safeguards.
[Serializable] vs [SerializeField]: Why Doesn't Unity Serialize Your Field?
Adding [SerializeField] yet the field remains hidden or loses values across scene loads: Unity's native C++ serialization rules and 4 mandatory conditions for field persistence.
Weapon Base Damage is 100: Is It Config, Runtime Data, or Business Logic?
Should base weapon damage live in a ScriptableObject, Component, or Calculator? Drawing clear boundaries between Config, Runtime Data, and Business Logic keeps game architecture maintainable.
Should You Use ScriptableObjects as Runtime Data Containers?
Storing player HP and ammo directly in ScriptableObjects works in Editor but breaks in standalone builds: The shared state trap and architectural separation between Blueprints and Session Data.
Building an RPG with 1,000+ Items: What Happens When Designers Have to Call Devs for Every Balance Tweak?
Game designers blocked on developers just to tweak item stats: Building an automated Google Sheets to Flyweight ScriptableObject pipeline for instant, hot-reloadable game balancing.
Practical System Design in Game Dev: Controlling Dependencies and Structuring Game Data
Spaghetti architecture emerges when game systems call each other circularity: Single-direction dependency boundaries, the Data-Logic-View model, and the Single Writer principle.
When to Use Prefabs, When to Use JSON, and When to Use ScriptableObjects?
Misplacing game data causes bloated builds and messy maintenance: The distinct technical roles of Prefabs, JSON, and ScriptableObjects, and how to orchestrate all three seamlessly.
"Can You Tweak This Config for Me?" - Does a Game Designer Really Need a Dev to Change One Number?
Game designers pinging developers whenever a balance tweak is needed despite using ScriptableObjects: Decoupling data from runtime code so designers stay empowered without crashing builds.
2-Week Deadline: Where Does Clean Architecture Fit?
Forcing Clean Architecture onto a 2-week prototype creates architectural bloat and missed deadlines: Practical architectural trade-offs between rapid delivery and future extensibility.
Event, Observer, DI, or Message Bus: The Trade-off Between Decoupling and Traceability in Unity
Over-decoupling code with global Message Buses makes bug tracing a nightmare: Evaluating architectural trade-offs between C# Events, Observers, DI, and structured communication layers.
Polling UI in Update(): When Quick Fixes Turn into Technical Debt
Polling score text and health bars inside Update() triggers needless Canvas rebuilds and CPU overhead: The hidden cost of UI polling and a clean migration path to Event-Driven MVP.
GameManager Is a Singleton and Cannot Be Touched: Handling Dependencies for New Unit Tests
Writing unit tests for new features when the legacy GameManager Singleton cannot be touched: A 3-tier decoupling strategy using wrappers, capability interfaces, and incremental service facades.
Why Large Projects Avoid Singleton Even Though It's Convenient
Singletons accelerate early prototyping but quickly become static GC roots, race condition hazards, and zombie objects. Pragmatic decoupling strategies as game projects scale.