Skip to content

Source generate NeedsUpdate and NeedsFrameUpdate for entity systems - #6952

Draft
DrSmugleaf wants to merge 2 commits into
masterfrom
refactor/entity-system-needs-update
Draft

Source generate NeedsUpdate and NeedsFrameUpdate for entity systems#6952
DrSmugleaf wants to merge 2 commits into
masterfrom
refactor/entity-system-needs-update

Conversation

@DrSmugleaf

@DrSmugleaf DrSmugleaf commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

I want those 100 milliseconds (on debug) back seymour

Draft because it needs to force EntitySystems to be partial first (otherwise if you inherit partial A without update methods to non-partial B, the game will think B has no update methods)
To test:

public partial class A : EntitySystem;

public sealed class B : A
{
    public override void Update(float frameTime)
    {
        base.Update(frameTime);
    }

    public override void FrameUpdate(float frameTime)
    {
        base.FrameUpdate(frameTime);
    }
}

@DrSmugleaf
DrSmugleaf marked this pull request as draft August 9, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant