DEV Community

Toàn Lương Bảo profile picture

Toàn Lương Bảo

Building Automotive HMI by day, making Games with Unity by night. Here to share notes on C#, performance, and stuff I figured out along the way.

Location Hanoi, VN Joined Joined on  Personal website https://toanlb.dev/ github website twitter website
GameManager Is a Singleton and Cannot Be Touched: Handling Dependencies for New Unit Tests

GameManager Is a Singleton and Cannot Be Touched: Handling Dependencies for New Unit Tests

Comments
10 min read

Want to connect with Toàn Lương Bảo?

Create an account to connect with Toàn Lương Bảo. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
2-Week Deadline: Where Does Clean Architecture Fit?

2-Week Deadline: Where Does Clean Architecture Fit?

Comments
9 min read
Why Large Projects Avoid Singleton Even Though It's Convenient

Why Large Projects Avoid Singleton Even Though It's Convenient

Comments
9 min read
Looking at the GTA VI Wave: Why Rockstar Burns Money on Wind-Rippled Shirts While We Cut Every Line Without ROI

Looking at the GTA VI Wave: Why Rockstar Burns Money on Wind-Rippled Shirts While We Cut Every Line Without ROI

Comments
5 min read
GTA VI Locking 30 FPS Is Not a GPU Problem: A Game Developer's View on Frame Budgets

GTA VI Locking 30 FPS Is Not a GPU Problem: A Game Developer's View on Frame Budgets

Comments
4 min read
Observer Pattern in Unity: Instance Class or Static Class?

Observer Pattern in Unity: Instance Class or Static Class?

Comments
9 min read
Scaling 500 Puzzle Levels in One Week: Data-Driven Pipeline, Parametric Variation, and Automated Validators

Scaling 500 Puzzle Levels in One Week: Data-Driven Pipeline, Parametric Variation, and Automated Validators

Comments
14 min read
Why Does Addressables Reduce Build Size? Lifecycle-Based Asset Delivery and Cutting a 200MB Mobile Game Down to 80MB

Why Does Addressables Reduce Build Size? Lifecycle-Based Asset Delivery and Cutting a 200MB Mobile Game Down to 80MB

Comments
14 min read
MaterialPropertyBlock Prevents Material Duplication, So Why Does It Break the SRP Batcher?

MaterialPropertyBlock Prevents Material Duplication, So Why Does It Break the SRP Batcher?

Comments
12 min read
Why Choose ASTC 6x6? Texture Block Compression Internals and Mobile VRAM Trade-offs

Why Choose ASTC 6x6? Texture Block Compression Internals and Mobile VRAM Trade-offs

Comments
10 min read
Static Batching, GPU Instancing, and SRP Batcher: Hardware-Level Architecture and Engineering Trade-offs

Static Batching, GPU Instancing, and SRP Batcher: Hardware-Level Architecture and Engineering Trade-offs

Comments
10 min read
Reflections on AI in Game Development (Part 5): Game Development Beyond Metrics: When AI Restores Pure Creative Freedom

Reflections on AI in Game Development (Part 5): Game Development Beyond Metrics: When AI Restores Pure Creative Freedom

Comments
6 min read
Vibe Coding and the Cultivation Fantasy: An Outsider's Perspective

Vibe Coding and the Cultivation Fantasy: An Outsider's Perspective

Comments
5 min read
Do High Draw Calls Mean a Slow Game? CPU Submission Internals and 3 Real-World GPU Bottlenecks

Do High Draw Calls Mean a Slow Game? CPU Submission Internals and 3 Real-World GPU Bottlenecks

Comments
11 min read
Reflections on AI in Game Development (Part 4): Confessions of a Traditional Dev: How I Actually 'Cheat' with AI

Reflections on AI in Game Development (Part 4): Confessions of a Traditional Dev: How I Actually 'Cheat' with AI

Comments
8 min read
If FixedUpdate Runs on a Stable Timestep, Why Not Process All Logic Inside It?

If FixedUpdate Runs on a Stable Timestep, Why Not Process All Logic Inside It?

Comments
13 min read
Large Texture Atlas vs Small Textures: Batching Mechanics and VRAM Trade-offs

Large Texture Atlas vs Small Textures: Batching Mechanics and VRAM Trade-offs

Comments
11 min read
Multithreading in Unity: Why Mobile and WebGL Runtimes Require Radically Different Architectures

Multithreading in Unity: Why Mobile and WebGL Runtimes Require Radically Different Architectures

Comments
10 min read
Late Join in Observer Pattern: When Events Are Not Enough for State Synchronization

Late Join in Observer Pattern: When Events Are Not Enough for State Synchronization

Comments
10 min read
Handling Scene Unloads During Async Operations: CancellationToken Architecture, Eliminating Zombie Tasks, and Preventing Memory Leaks in Unity

Handling Scene Unloads During Async Operations: CancellationToken Architecture, Eliminating Zombie Tasks, and Preventing Memory Leaks in Unity

Comments
12 min read
Why Ads SDKs Mandate Main Thread Execution: OS Native UI Thread Internals and Plugin Threading Boundaries

Why Ads SDKs Mandate Main Thread Execution: OS Native UI Thread Internals and Plugin Threading Boundaries

Comments
8 min read
Renderer.material vs Renderer.sharedMaterial: Memory Leak Traps, Broken Batching, and the MaterialPropertyBlock Solution

Renderer.material vs Renderer.sharedMaterial: Memory Leak Traps, Broken Batching, and the MaterialPropertyBlock Solution

Comments
9 min read
Running Background Tasks in Unity: UnitySynchronizationContext Internals and Safe UI Thread Dispatching

Running Background Tasks in Unity: UnitySynchronizationContext Internals and Safe UI Thread Dispatching

Comments
10 min read
Coroutine, C# Task, UniTask, or Awaitable (Unity 6): Execution Internals, Threading, and Memory Management

Coroutine, C# Task, UniTask, or Awaitable (Unity 6): Execution Internals, Threading, and Memory Management

Comments
12 min read
Camera Jitter When Following Player: A Decision Tree from Physics Timestep, Script Execution Order to Sub-pixel Jitter

Camera Jitter When Following Player: A Decision Tree from Physics Timestep, Script Execution Order to Sub-pixel Jitter

Comments
9 min read
Under the Hood of FixedUpdate's Time Accumulator: The Spiral of Death and How to Extinguish It

Under the Hood of FixedUpdate's Time Accumulator: The Spiral of Death and How to Extinguish It

Comments
8 min read
Does a 150MB Mobile Game Really Need Addressables? The Direct Reference Illusion and the RAM Reality

Does a 150MB Mobile Game Really Need Addressables? The Direct Reference Illusion and the RAM Reality

Comments
9 min read
How to Partition Addressables Groups for Hot Updates and DLC: A 4-Tier Strategy Without Ballooning CDN Costs

How to Partition Addressables Groups for Hot Updates and DLC: A 4-Tier Strategy Without Ballooning CDN Costs

Comments
10 min read
Why RAM Does Not Drop After Scene Transitions in Addressables: A Profiler Leak Tracing Guide

Why RAM Does Not Drop After Scene Transitions in Addressables: A Profiler Leak Tracing Guide

Comments
9 min read
Addressables Reference Counting: Why Object.Destroy Fails to Free Memory

Addressables Reference Counting: Why Object.Destroy Fails to Free Memory

Comments
10 min read
From Resources and AssetBundles to Addressables: Tool Upgrade or Resource Management Mindset Shift?

From Resources and AssetBundles to Addressables: Tool Upgrade or Resource Management Mindset Shift?

Comments
12 min read
Is Object Pooling a Silver Bullet? Premature Optimization and Practical Architecture Boundaries

Is Object Pooling a Silver Bullet? Premature Optimization and Practical Architecture Boundaries

Comments
8 min read
Object Pool Keeps Bloating: How to Solve Pool Bloat and Peak Memory Retention in Unity

Object Pool Keeps Bloating: How to Solve Pool Bloat and Peak Memory Retention in Unity

Comments
9 min read
Reflections on AI in Game Development (Part 3): The Fragile Boundary Between 'Creativity' and 'AI-Slop' (A Matter of Taste)

Reflections on AI in Game Development (Part 3): The Fragile Boundary Between 'Creativity' and 'AI-Slop' (A Matter of Taste)

Comments
7 min read
Object from Pool Has Corrupted State: What Should You Suspect First?

Object from Pool Has Corrupted State: What Should You Suspect First?

Comments
8 min read
Instantiate and Destroy in Unity: Is GC Really the Most Expensive Cost?

Instantiate and Destroy in Unity: Is GC Really the Most Expensive Cost?

Comments
13 min read
Pursuing Zero-Allocation in Unity: The Holy Grail or an Architectural Trap?

Pursuing Zero-Allocation in Unity: The Holy Grail or an Architectural Trap?

Comments
10 min read
Out of Memory Crashes on Mobile: What Is the True Culprit?

Out of Memory Crashes on Mobile: What Is the True Culprit?

Comments
12 min read
Why Doesn't Mobile Game RAM Decrease After Garbage Collection?

Why Doesn't Mobile Game RAM Decrease After Garbage Collection?

Comments
13 min read
Incremental GC in Unity: Does It Truly Eliminate Frame Drops and Stutter?

Incremental GC in Unity: Does It Truly Eliminate Frame Drops and Stutter?

Comments
10 min read
1 KB Per Frame, 3.6 MB Per Minute at 60 FPS: How Much Memory Are Your Strings Trashing?

1 KB Per Frame, 3.6 MB Per Minute at 60 FPS: How Much Memory Are Your Strings Trashing?

Comments
10 min read
Using Structs to Avoid GC Alloc: Are We Actually Flooding the Profiler with Hidden Garbage?

Using Structs to Avoid GC Alloc: Are We Actually Flooding the Profiler with Hidden Garbage?

Comments
9 min read
Reflections on AI in Game Development (Part 2): The Gatekeeping Trap and Professional Pride

Reflections on AI in Game Development (Part 2): The Gatekeeping Trap and Professional Pride

Comments
6 min read
No 'new' Keyword in Code, Yet Profiler Reports GC Alloc: Dissecting 4 Hidden Allocation Traps in Unity

No 'new' Keyword in Code, Yet Profiler Reports GC Alloc: Dissecting 4 Hidden Allocation Traps in Unity

Comments
11 min read
Update Allocating Tens of KBs Per Frame: How to Pinpoint the Culprit Code in Unity?

Update Allocating Tens of KBs Per Frame: How to Pinpoint the Culprit Code in Unity?

Comments
11 min read
Game Runs Smoothly at 60 FPS Then Periodically Stutters: Deconstructing GC Spikes and Precise Profiler Diagnostics

Game Runs Smoothly at 60 FPS Then Periodically Stutters: Deconstructing GC Spikes and Precise Profiler Diagnostics

Comments
12 min read
Reflections on AI in Game Development (Part 1): The 'Vibe Coding' Surge and Games Built in Hours

Reflections on AI in Game Development (Part 1): The 'Vibe Coding' Surge and Games Built in Hours

Comments
4 min read
Inspecting Runtime State in Unity: Moving Beyond [SerializeField] and Debug.Log

Inspecting Runtime State in Unity: Moving Beyond [SerializeField] and Debug.Log

Comments
7 min read
Centralized vs Decentralized DataService: Architecting Modular and Crash-Resilient Save Systems in Unity

Centralized vs Decentralized DataService: Architecting Modular and Crash-Resilient Save Systems in Unity

Comments
7 min read
Saving Multi-Megabyte Game Data Without Frame Drops: Snapshots, Off-thread I/O, and Atomic Swaps

Saving Multi-Megabyte Game Data Without Frame Drops: Snapshots, Off-thread I/O, and Atomic Swaps

Comments
8 min read
Game Save Schema Migration: Preserving Player Progress Across Version Updates in Unity

Game Save Schema Migration: Preserving Player Progress Across Version Updates in Unity

Comments
8 min read
The 48-Hour Technical Take-Home Test: Avoiding the Singleton Trap Without Over-Engineering

The 48-Hour Technical Take-Home Test: Avoiding the Singleton Trap Without Over-Engineering

Comments
9 min read
PlayerPrefs, JsonUtility, Newtonsoft.Json, or Binary: Which Save Strategy Fits Your Unity Game?

PlayerPrefs, JsonUtility, Newtonsoft.Json, or Binary: Which Save Strategy Fits Your Unity Game?

Comments
8 min read
[Serializable] vs [SerializeField]: Why Doesn't Unity Serialize Your Field?

[Serializable] vs [SerializeField]: Why Doesn't Unity Serialize Your Field?

Comments
8 min read
Weapon Base Damage is 100: Is It Config, Runtime Data, or Business Logic?

Weapon Base Damage is 100: Is It Config, Runtime Data, or Business Logic?

Comments
9 min read
Should You Use ScriptableObjects as Runtime Data Containers?

Should You Use ScriptableObjects as Runtime Data Containers?

Comments
9 min read
Building an RPG with 1,000+ Items: What Happens When Designers Have to Call Devs for Every Balance Tweak?

Building an RPG with 1,000+ Items: What Happens When Designers Have to Call Devs for Every Balance Tweak?

Comments
10 min read
Practical System Design in Game Dev: Controlling Dependencies and Structuring Game Data

Practical System Design in Game Dev: Controlling Dependencies and Structuring Game Data

Comments
11 min read
When to Use Prefabs, When to Use JSON, and When to Use ScriptableObjects?

When to Use Prefabs, When to Use JSON, and When to Use ScriptableObjects?

Comments
11 min read
"Can You Tweak This Config for Me?" - Does a Game Designer Really Need a Dev to Change One Number?

"Can You Tweak This Config for Me?" - Does a Game Designer Really Need a Dev to Change One Number?

Comments
10 min read
loading...