Skip to content

Object allocation is slower since 4.0.beta9 #70853

Closed
@maldrasen

Description

@maldrasen

Godot version

v4.0 beta9

System information

Windows 11, 64bit

Issue description

Since migrating from Beta 8 to Beta 10, I've noticed a serious performance hit. I've tracked the problem down to a place where I'm creating a couple thousand objects. The object allocation used to take a couple microseconds, but ever since Beta 9 it takes hundreds of microseconds to construct a new object.

Steps to reproduce

Create a plain Godot class that extends Object. Create a few thousand of them. It takes a while.

Minimal reproduction project

AllocationExample.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions