Skip to main content
Zubin KhavarianZubin Khavarian

Writing

RSS

Notes on front-end work, TypeScript, and the overlap with games and audio: skipLibCheck in tsconfig, ES modules, and ink outlines without a separate pass.

Loudness-Matching Generated Sound Effects

4 min read

AI sound effect generators hand you takes at wildly different levels. Here's the small routine that keeps Roll It's sounds consistent: prompt for the object, measure every take, master every file to one loudness, and keep the mix in code.

#audio#game-dev

One Sample Clock for Piano, Metronome and Sound Effects

6 min read

Treble Trouble renders every sound it makes in a single AVAudioSourceNode callback, so the metronome can't drift from the piano, and rhythm taps are judged on the same clock the sound came from. Every sound effect is synthesized, too.

#audio#ios#swift

240 App Store Screenshots from One Script

7 min read

How I make App Store screenshots for my iOS apps in 15 languages without touching a design tool: debug launch arguments, one simulator per app, a pinned status bar, a Python framing step that handles right-to-left captions, and a linter for the listing text.

#ios#app-store#tooling

TypeScript 7: What Breaks Is the API, Not Your Code

4 min read

TypeScript 7's native tsc type-checked my apps six to nine times faster and flagged nothing new. What broke was every tool that imports the compiler: the typescript package no longer ships the JavaScript API. One repo moved; this blog can't yet.

#typescript#tooling

Hundreds of Draw Calls Down to a Handful with BatchedMesh

7 min read

How Typo's Voyage draws every tile and every 3D letter through four three.js BatchedMeshes, poses a whole treadmill on the GPU with one vec4 a frame, and what breaks when you move instances in the vertex shader.

#threejs#game-dev

Stamp DEV on the Debug Icon

4 min read

My Debug builds are their own app: a .dev bundle ID, a Dev name, and the real icon with a DEV ribbon a small script draws across the corner. They install beside the App Store version and never touch its data.

#ios#swift#app-store#tooling

Your Shader Stutter Happens at First Draw

8 min read

A three.js hitch the first time an effect appears is usually a WebGL program link. It blocks at the first draw, not at compile, and a warm-up only fixes it if it links the same program variant your frames use.

#threejs#game-dev

Roll It Has No Outline Pass

9 min read

The ink lines in Roll It aren't a post-process. Each material finds its own edges: the median of three distances on a box, crease barycentrics on a mesh, and a view-angle band on the ball.

#threejs#game-dev

Soundscapes for Web Games: A Pluggable Howler Implementation, Part 2

13 min read

The soundscape engine is one class under a hundred lines. A six-function adapter is the seam.

#audio#game-dev

Soundscapes for Web Games: The Layer Beneath Your SFX, Part 1

8 min read

Most web games go silent the moment the player stops moving. A soundscape is the quiet layer underneath your SFX that keeps the room alive.

#audio#game-dev

Get new posts by email

One short email when a post goes out, about once a week. Unsubscribe any time.

Or follow along:RSSGitHubX

zubin@zubin.dev: man keys

// go to

  • ghhome
  • gwwriting
  • gaapps
  • gpprojects
  • goopen source
  • gnnow
  • guuses

// move

  • jscroll down
  • kscroll up
  • ggtop of page
  • Gbottom of page
  • }next section (posts)
  • {previous section (posts)
  • ]newer post
  • [older post

// do

  • ⌘Ksearch everything
  • /search, too
  • ttoggle light / dark
  • ?this sheet
  • escclose