Skip to content

2d Physics Interpolation in scenes with thousands of Nodes decreases performance a lot even when doing nothing #111177

@MatthiasBae

Description

@MatthiasBae

Tested versions

v4.5.stable.mono.official [876b290]

System information

Godot v4.5.stable.mono - Windows 11 (build 26100) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 32.0.15.8129) - 13th Gen Intel(R) Core(TM) i9-13900KF (32 threads) - 31.81 GiB memory

Issue description

When having a scene with a lot of subscenes / nodes turning physics interpolation on in the project settings decreases the performance a lot.

In my case from about 500 FPS to about 100 FPS. Initially mentioned in a different issue which lacks a GDScript MRP. So I made one.

Even when nothing happens in game and nothing is moving the FPS is constantly low. I would expect higher FPS as there is no need for interpolating positions when nothing is moving.

Steps to reproduce

  1. Create a scene which has about 10.000 Nodes
  2. Check FPS
  3. Turn on "Physics Interpolation" in the Project Settings
  4. Check FPS again

Minimal reproduction project (MRP)

Physics Interpolation Test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions