Skip to content

feat(Registry): add fixed update system management#63

Merged
ripel2 merged 8 commits intomainfrom
61-fixed-update
Nov 26, 2024
Merged

feat(Registry): add fixed update system management#63
ripel2 merged 8 commits intomainfrom
61-fixed-update

Conversation

@Miou-zora
Copy link
Contributor

I've added a way to add systems that will be added each specified ticks (50 per seconds per default). These systems should call Registry::GetFixedDeltaTime to get delta time rather than RealTimeProvider resource. I've also added a Clock that can be used as a clock to have specific tickrate.

@Miou-zora Miou-zora linked an issue Nov 24, 2024 that may be closed by this pull request
@Miou-zora Miou-zora requested a review from a team November 24, 2024 03:58
@Miou-zora Miou-zora self-assigned this Nov 24, 2024
@Miou-zora Miou-zora added the enhancement New feature or request label Nov 24, 2024
Copy link
Contributor

@ripel2 ripel2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be great to discuss about making the DeltaTime handling more coherent
Because right now we can have it directly in the registry for FixedDeltaTime but for RealTime we need to create and use a resource. Why should we create a resource for one and not the other ?

@ripel2
Copy link
Contributor

ripel2 commented Nov 25, 2024

Also, when testing with the SB-Test-Scene, the systems do not run if the framerate is over 50FPS. Here is how I did it, maybe I did something wrong

image
image

@ripel2
Copy link
Contributor

ripel2 commented Nov 25, 2024

Putting this PR in draft while we discuss it

@ripel2 ripel2 marked this pull request as draft November 25, 2024 15:16
@sonarqubecloud
Copy link

@ripel2
Copy link
Contributor

ripel2 commented Nov 26, 2024

The bug of the systems not running is fixed

@ripel2 ripel2 marked this pull request as ready for review November 26, 2024 08:52
@ripel2 ripel2 merged commit 022e314 into main Nov 26, 2024
@ripel2 ripel2 deleted the 61-fixed-update branch November 26, 2024 08:57
MasterLaplace pushed a commit that referenced this pull request Dec 6, 2024
I've added a way to add systems that will be added each specified ticks
(50 per seconds per default). These systems should call
`Registry::GetFixedDeltaTime` to get delta time rather than
`RealTimeProvider` resource. I've also added a `Clock` that can be used
as a clock to have specific tickrate.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixed update

2 participants