Search The Query
Search

Indie Game Development Guides, Tutorials & Business Insights

Screenshot from Unity comparing Update and FixedUpdate functions, featuring the text: "Unity FixedUpdate vs Update – Stop Jitter. Ship Smoother Games," alongside icons and the Unity code interface.

FixedUpdate vs Update in Unity: Why They Aren’t Twin Brothers

If your Rigidbody character slides on one machine and stutters on another, you’re probably calling physics code in the wrong loop. Understanding Unity FixedUpdate vs Update is the single most impactful lesson a Unity developer can internalize — and it takes about ten minutes to get right.



⚡ Quick Summary
  • 💡 Update() = frame-rate dependent. Use for input, UI, animations.
  • ⚙️ FixedUpdate() = fixed timestep. Use for all Rigidbody physics.
  • 🐛 Wrong loop = jitter, tunneling, device-specific bugs.
  • 🔑 Pattern: read input in Update(), apply forces in FixedUpdate().
  • 📐 Always match your deltaTime multiplier to the loop you’re in.
  • 🚀 One refactor can eliminate cross-device physics inconsistency completely.

A timeline with three labeled frames illustrates Unity FixedUpdate vs Update: a game controller sits above Frame 1 (8f), followed by Frame 2 (18f) and Frame 3 (5f). Solid and dotted lines indicate distinct segments.
Unity Update loop showing variable frame intervals tied to device FPS

Table of Contents

Introduction — The Two-Clock Problem

Unity FixedUpdate vs Update refers to the two primary game-loop callbacks in MonoBehaviour. Update() fires once per rendered frame at a variable rate tied to device performance, while FixedUpdate() fires at a fixed timestep synchronized with the Unity physics engine, defaulting to every 0.02 seconds (50 Hz).

Think of Update() as the driver and FixedUpdate() as the engine. A driver controls what you want to do; the engine delivers the actual force. You would never use a Formula 1 engine to buy groceries — and you should never put Rigidbody physics inside a frame-rate-dependent loop.

Unity’s physics simulation runs on discrete timesteps. The physics step always happens inside FixedUpdate(), which means collision detection, force accumulation, and velocity integration all occur on this fixed clock — not your render clock. When you apply forces in Update(), you’re operating on an unsynchronized, variable-rate loop that the physics engine never fully sees, producing the classic symptoms: jitter, tunneling, and behavior that changes between a MacBook and a gaming PC.


What Is Update() and When to Use It

Update() is called by Unity once per rendered frame. Its execution rate is variable and depends entirely on the current FPS. Use Time.deltaTime — the seconds elapsed since the last frame — to keep non-physics logic frame-rate independent.

According to the Unity 6 MonoBehaviour documentation, Update() is the place for anything that must respond immediately to the current frame: capturing keyboard/mouse input, updating UI text and HUD elements, triggering animations based on state, and running non-physics game logic.

The biggest risk of putting physics code here is frame-rate dependency. If you multiply a force by Time.deltaTime in Update(), you compensate for variable timing — but you still bypass the physics engine’s fixed step. Even with deltaTime, applying rigidbody.AddForce() from Update() can feed multiple forces into a single physics step or skip steps entirely.

Read Next: Time.deltaTime explained for Unity beginners

What belongs in Update():

  • Player input reading (Input.GetAxis, Input.GetKeyDown)
  • UI updates, score displays, health bars
  • Camera follow logic (or LateUpdate() for post-physics camera)
  • Animation state machine logic
  • Non-physics object positioning via Transform
  • Countdown timers and cooldown tracking

A teal clock face displays three labeled sections—Step 1 at the top, Step 2 at the lower left, and Step 3 at the lower right—each marked "Physics," referencing Unity FixedUpdate vs Update. A gear icon sits prominently at the center.
Unity FixedUpdate physics clock showing equal fixed timestep intervals

What Is FixedUpdate() and Why Physics Needs the Unity FixedUpdate Loop

FixedUpdate() is called by Unity at a fixed timestep, synchronized with the PhysX physics engine. Any manipulation of a Rigidbody with isKinematic = false must happen here; otherwise, the documentation warns, the results are indeterminate. Use Time.fixedDeltaTime — not Time.deltaTime — for any time-based scaling inside this loop.

As the Unity Manual on Fixed Updates explains, the physics system updates at a fixed time interval “which is important for the accuracy and consistency of physics simulations.” The default fixed timestep is 0.02 seconds (50 physics steps per second), configurable via Edit → Project Settings → Time → Fixed Timestep.unity3d

When frame rate drops below the physics rate, Unity calls FixedUpdate() multiple times per frame to catch up. When frame rate exceeds the physics rate, Unity renders frames between physics steps. This decoupled architecture is what makes physics deterministic — critical for multiplayer, replay systems, and cross-platform consistency.

What belongs in FixedUpdate():

  • rigidbody.AddForce() and rigidbody.AddTorque()
  • Velocity changes: rigidbody.velocity = ... (with caution)
  • Rigidbody-based movement and jumping
  • Physics-based interaction checks (custom gravity, buoyancy)
  • Kinematic Rigidbody positioning via MovePosition() and MoveRotation()

Unity FixedUpdate vs Update — Feature Comparison

The fundamental difference between Update() and FixedUpdate() is their execution cadence: Update() is driven by the render thread at a variable FPS, while FixedUpdate() is driven by the physics subsystem at a fixed Hz rate. Choosing incorrectly causes frame-rate-dependent behavior that is difficult to reproduce and debug.

Feature / BehaviorUpdate()FixedUpdate()
Execution rateVariable (tied to FPS)Fixed (default 50 Hz / 0.02 s)
Synchronized with physics?✗ No✓ Yes
Best for player input✓ Yes✗ No (can miss key events)
Best for Rigidbody forces✗ No✓ Yes
Time multiplier to useTime.deltaTimeTime.fixedDeltaTime
Collision detection accuracyPoor (out-of-sync)Accurate (in-sync with PhysX)
UI updates✓ Yes✗ Unnecessary overhead
Animation triggers✓ Yes✗ Not designed for this
Deterministic behavior✗ No✓ Yes
Camera followAcceptable (prefer LateUpdate)✗ No

Side-by-side comparison of a video game using Unity FixedUpdate vs Update: 30 FPS (jittery) on the left and 144 FPS (smooth) on the right, highlighting the difference in smoothness and frame times.
Unity physics bug showing jitter caused by Rigidbody code inside Update

Common Mistakes That Break Your Unity Physics

The most common Unity physics mistake is placing Rigidbody.AddForce() or velocity assignments inside Update(). On a 30 FPS device, this applies force 30 times per second; on 144 FPS, it applies force 144 times per second — producing a character that moves five times faster on high-end hardware, guaranteed.

Mistake #1 — Reading Input in FixedUpdate()

This is the counter-intuitive flip. Because FixedUpdate() can run multiple times per frame or skip frames, Unity developers on the official forums report that Input.GetKeyDown() events are frequently missed when read inside FixedUpdate(). The key press happens in a frame that fires no physics step, and the event is lost.

Mistake #2 — Directly setting rigidbody.velocity in Update()

Setting rigidbody.velocity directly is already considered bad practice per the LogRocket Unity guide, because it overrides the physics engine’s accumulated forces. Doing it in Update() makes it doubly harmful: you get frame-rate-dependent magnitude and race conditions against the physics step.

Mistake #3 — Using Time.deltaTime inside FixedUpdate()

Inside FixedUpdate(), always use Time.fixedDeltaTime. Although Unity automatically sets Time.deltaTime to equal Time.fixedDeltaTime when called from within FixedUpdate(), explicitly using fixedDeltaTime makes your intent clear and prevents bugs if code is later refactored into Update().

Mistake #4 — Putting camera-follow code in FixedUpdate()

Camera rendering happens after Update() — not FixedUpdate(). Camera code belongs in LateUpdate() so it always runs after the player has moved that frame, eliminating the “camera lags behind” stuttering that comes from mismatched update order.


Side-by-side code comparing Unity FixedUpdate vs Update: input handling in Update(), physics in FixedUpdate(), and a shared variable for movement data.
Unity code pattern showing input captured in Update applied via AddForce in FixedUpdate

Best Code Patterns for Unity FixedUpdate and Update

The correct Unity pattern for physics-driven characters is: read input inside Update(), store the value in a member variable, then apply forces using that variable inside FixedUpdate(). This separates the concerns of input capture (frame rate) and physics application (fixed timestep).

The pattern recommended by the GameDev.tv community and confirmed by Stack Overflow’s Unity experts:gamedev

public class PlayerController : MonoBehaviour
{
    [SerializeField] private float moveSpeed = 5f;
    [SerializeField] private float jumpForce = 8f;

    private Rigidbody rb;
    private float horizontalInput;   // Captured in Update()
    private bool jumpRequested;       // Captured in Update()

    void Awake() { rb = GetComponent<Rigidbody>(); }

    // ✅ Read input here — every frame
    void Update()
    {
        horizontalInput = Input.GetAxis("Horizontal");
        if (Input.GetKeyDown(KeyCode.Space))
            jumpRequested = true; // GetKeyDown MUST be in Update
    }

    // ✅ Apply physics here — fixed timestep
    void FixedUpdate()
    {
        Vector3 moveForce = new Vector3(horizontalInput * moveSpeed, 0f, 0f);
        rb.AddForce(moveForce, ForceMode.Force);

        if (jumpRequested)
        {
            rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
            jumpRequested = false; // Consume the request
        }
    }
}

Why prefer AddForce() over setting velocity directly?

AddForce() works with the physics engine — it adds to the force accumulator for the next physics step. Setting rigidbody.velocity directly overrides whatever the physics engine computed, potentially causing issues with friction, drag, and collisions. Use ForceMode.Impulse for instant changes (jumps) and ForceMode.Force for continuous application (movement).

Rigidbody Interpolation — Smoothing the gap

Even with correct loop usage, you may see slight jitter during camera movement if physics runs at 50 Hz but rendering is at 120+ Hz. Enable Rigidbody Interpolation in the Inspector — this tells Unity to interpolate the object’s visual position between physics steps, giving smooth rendering even when the physics clock is slower than the render clock.


Developer Stories — Real Lessons Learned

First-person developer accounts illustrate how the Update() vs FixedUpdate() confusion manifests in real projects: from console ports that fail QA to mobile games with device-specific behavior, the wrong loop choice causes concrete, measurable bugs that cost significant debugging time.

💡 Dev Story #1 — The Console Port Nightmare Senior Gameplay Programmer · Mid-size indie studio · PS5 port project

“We had a PC game running beautifully at 120 FPS. Our character’s Rigidbody movement was in Update() — I thought Time.deltaTime would save us. When we ported to PS5 locked at 60 FPS, every jump arc was different. Platforms that were trivially jumpable on PC became impossible on console. One refactor — moving AddForce to FixedUpdate and caching input in Update — fixed every single discrepancy. The QA team couldn’t believe it was one afternoon of work.”

💡 Dev Story #2 — The Mobile Mystery Solo Developer · Mobile puzzle-platformer · Android & iOS release

“I had players complaining on low-end Android devices that the game felt ‘slippery.’ High-end iPhones had no issues. I spent a week thinking it was a friction setting. It turned out I was reading GetKeyDown in FixedUpdate() — on slower devices, FixedUpdate ran more often per input frame, eating multiple ‘presses’ that didn’t exist. Moving input to Update() and setting a boolean flag was a one-line fix.”

Action Plan — 3 Steps to Fix Your Physics Code

🚀 Action Plan

  1. Audit every MonoBehaviour script. Search for Rigidbody, AddForce, velocity, MovePosition — any occurrence inside Update() is a bug waiting to happen. Move all of them to FixedUpdate().
  2. Implement the input-caching pattern. Create private member variables (e.g., _moveInput, _jumpRequested) to bridge the two loops. Read input in Update(), consume it in FixedUpdate(), and reset flag booleans after consumption.
  3. Enable Rigidbody Interpolation. On every character and physics object, set Rigidbody → Interpolate → Interpolate in the Inspector. This eliminates sub-physics-step visual jitter at no gameplay cost, especially important for 60+ FPS rendering with a 50 Hz physics loop.

Unity Update vs FixedUpdate : FAQ

Can I use AddForce() inside Update() if I multiply by Time.deltaTime?


Technically possible, but strongly discouraged. Time.deltaTime compensates for variable frame durations but does not synchronize your force with Unity’s physics step. Collisions, friction, and drag are computed inside the physics step — feeding forces from outside creates timing mismatches that deltaTime cannot resolve.

Why does my jump feel inconsistent even with FixedUpdate()?


The most common culprit is reading Input.GetKeyDown() inside FixedUpdate(). Move input reading to Update() with a boolean flag (_jumpRequested = true), then check and consume that flag inside FixedUpdate().discussions.unity

What is the default fixed timestep in Unity and should I change it?


The default is 0.02 seconds (50 physics steps per second), set via Edit → Project Settings → Time → Fixed Timestep. For fast-paced games requiring precise collision detection, you might lower it to 0.01 (100 Hz), but this increases CPU cost. Avoid going below 0.01 without profiling.unity3d

What is LateUpdate() and when should I use it?


LateUpdate() runs after all Update() calls in the same frame. It’s ideal for camera follow logic — by waiting until all character movement is processed, the camera can position itself relative to the player’s final position that frame.

Is it ever okay to put physics code in Update()?


Yes — for kinematic objects (isKinematic = true) moved via Transform rather than forces, Update() is acceptable. Corrective position snapping for boundary checks can also live in Update() or LateUpdate() when visual accuracy matters more than physics accuracy.discussions.unity

How does Unity 6 change anything about FixedUpdate vs Update?


Unity 6 introduces improved physics substep control and better Physics 2D Simulation Mode integration, but the fundamental rule is unchanged: Rigidbody manipulation belongs in FixedUpdate(), input reading in Update(). Always check the Unity 6 documentation for API-level changes.unity3d

What is the key difference between Update and FixedUpdate in Unity?

The key differences between Update and FixedUpdate are timing and purpose: Update runs once per rendered frame and is tied to the game’s framerate (frames per second), while FixedUpdate runs on a fixed time step (often 50 times per second by default) and is intended for physics calculations and physics-related code. Because Update may execute a variable number of times per second as the application runs, use FixedUpdate for applying forces to a Rigidbody or other physics update to avoid jittery behavior and keep physics sync with the physics engine.

When should I use FixedUpdate instead of Update for physics-based code?

You should use FixedUpdate for physics-based calculations, force to a Rigidbody, and any code that changes physics state every fixed frame. Since FixedUpdate will run at a consistent time step (fixed frame), using FixedUpdate prevents backlog and keeps physics calculation stable regardless of frame update fluctuations. If you use Update to apply physics, the update running at an inconsistent framerate can cause uneven movement or jittery results when frames per second change.

How does FixedUpdate relate to frame rate and frames per second like 50fps or 50 times per second?

FixedUpdate is decoupled from the rendered frame rate: Unity’s default physics time step often results in FixedUpdate running 50 times per second (50fps equivalent for physics). If the game is running at a higher than the fixed update framerate, multiple Update calls may occur between FixedUpdate calls. Conversely, if framerate drops, FixedUpdate may run multiple times in one frame to catch up, which is why time step and backlog handling are important for stable physics calculations.

How do I handle user input and real-time interactions with physics objects like a cube?

Read input in Update or a built-in input callback so you capture per-frame user input, then store that input and execute physics calculations in FixedUpdate. For example, read movement intent in Update and apply force to a cube’s Rigidbody in FixedUpdate to ensure the force to a rigidbody is applied in the physics update loop. This pattern prevents missed input or inconsistent movement when update running and fixed frame timing differ.

Why does my gameObject move jittery or seem out of sync between frames, and how can I fix it?

Jittery motion often arises when physics-related code runs in Update rather than FixedUpdate, or when rendering interpolation is off. Use FixedUpdate for physics calculations and enable Rigidbody interpolation to smooth visual movement between physics updates. Ensure your time step is appropriate (the physics time step controls updates per second), avoid heavy work that causes backlog, and consider synchronizing calculation by applying velocities or forces every fixed frame to keep the previous frame and next frame in proper sync.


Unity FixedUpdate vs Update Conclusions & FINAL QUIZ

The Unity engine gives you two loops for a reason. Update() is your input layer — it listens to the world at the speed of your monitor. FixedUpdate() is your physics layer — it speaks the language of the physics engine at a predictable, device-agnostic cadence. Mixing them is like asking your driver to also be your mechanic mid-race.

[YOU MIGHT BE INTERESTED IN READING: Unity CharacterController vs Rigidbody — when to use each]

The pattern is easy to internalize: one member variable bridges the two loops. Read input in Update(), store it, apply forces in FixedUpdate(). Add Rigidbody Interpolation to smooth visual rendering. That single architectural decision eliminates an entire class of cross-platform physics bugs.

Unity FixedUpdate vs Update — Quiz
⚙️

Unity FixedUpdate vs Update

Test your knowledge of Unity’s two most important game loops. 20 questions covering physics, input, timing, and best practices.

20 Questions ⏱ 10 Minutes Beginner → Advanced
Question 1 of 20
10:00
Question 1
0
Correct
0
Wrong
0%
Score