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

Resource sim : handle timestep induced storage incoherencies. #19

Open
gotmachine opened this issue Jul 29, 2021 · 0 comments
Open

Resource sim : handle timestep induced storage incoherencies. #19

gotmachine opened this issue Jul 29, 2021 · 0 comments
Labels
code enhancement New feature or request

Comments

@gotmachine
Copy link
Contributor

Typical case is solar panel power : at low warp speed, battery capacity is required to get past shadow time. However, once analytical mode kicks in at high warp speeds, batteries are often useless, only the overall production vs consumption balance matters. While this tend to be in favor of the player, the practical effect is that you often end up with crafts that can't survive the night all reaching zero EC when dropping out of timewarp.

A potential solution would be to make 2 full vessel updates instead of a single one, with full / no solar power, splitting elapsedTime according to the sunlight %. This would require a bit of refactoring so we can call the environment update once and everything else twice.

Note : there is likely a similar issue (and solution) with thermal conditions.

@gotmachine gotmachine added code enhancement New feature or request labels Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant