Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a fixed time step option #26

Open
erikwatson opened this issue Dec 21, 2020 · 1 comment
Open

add a fixed time step option #26

erikwatson opened this issue Dec 21, 2020 · 1 comment
Labels
enhancement New feature or request Future Don't let your dreams be dreams

Comments

@erikwatson
Copy link
Owner

plz

@erikwatson erikwatson added the enhancement New feature or request label Dec 21, 2020
@erikwatson erikwatson added this to the v1.0.0 milestone Apr 3, 2021
@erikwatson
Copy link
Owner Author

erikwatson commented Apr 4, 2021

Okay, having dived into this for a while today I have some thoughts and reasons for putting it off until quite a bit later.

Fixing the time step itself isn't actually very difficult, but the problem comes when blending the previous game state with the current game state to remove the jitter from left over accumulated time.

In Bramble at the moment, there really isn't much of a concept of an Entity system or a Scene Graph or anything like that, and that's honestly one of the things I like about it. You just make your own things, update those things and draw those things yourself. Unfortunately, it seems this would mean that you would also need to store 2 copies of all your entities state and do the blend between them yourself when rendering.

Bramble could handle this if we had some kind of Scene & Entity system, where you must add Entities to the Scene yourself. It could keep track of all the entities in the scene and their previous states automatically. I think this is not only out of scope, but also is in quite bad taste.

I need to have a good think on this one.

@erikwatson erikwatson added the Future Don't let your dreams be dreams label Apr 4, 2021
@erikwatson erikwatson removed this from the v1.0.0 milestone Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Future Don't let your dreams be dreams
Projects
None yet
Development

No branches or pull requests

1 participant