Skip to content

Expression2 is laggy #3639

Description

@Zvbhrf

Describe the bug

Unfortunately, new compiler is perf-heavy.
I host a build server where people often fight with each other on vehicles like tanks, cars, etc. They use Expression2 mostly for hud stuff or to rotate certain parts of their vehicles. Most of the their code is 20-80 lines of code.

Image There were ~35 e2's and ~15 players during this profiler session (~8 seconds!)

This did not happen with old compiler at all.

How to reproduce the bug

Players place tanks, planes and fight with each other. I suppose random dupes/advdupes from workshop can cause this too, since most of my players use the same e2 code from workshop builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions