X Tutup
Skip to content

Starfield moving with player#4838

Merged
sturnclaw merged 4 commits intopioneerspacesim:masterfrom
fluffyfreak:starfield-moving
Mar 21, 2020
Merged

Starfield moving with player#4838
sturnclaw merged 4 commits intopioneerspacesim:masterfrom
fluffyfreak:starfield-moving

Conversation

@fluffyfreak
Copy link
Contributor

We populate the background star field with stars, this should track the players position through the galaxy but it wasn't until this PR.

Fixes #4837

sturnclaw and others added 3 commits March 21, 2020 13:34
We were calling Starfield::Fill() twice, which was resulting in 314,928 GetCached<Sector>() calls. This caused a 250+ MCycle performance cost under debug build.
…tem so it moves with the player through the galaxy. Also remove the unused Refresh method.
@fluffyfreak fluffyfreak requested a review from sturnclaw March 21, 2020 17:08
@richardpl
Copy link
Contributor

Cool!

@sturnclaw sturnclaw merged commit b379c50 into pioneerspacesim:master Mar 21, 2020
@fluffyfreak fluffyfreak deleted the starfield-moving branch March 21, 2020 20:49
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.

Background stars don't track sector position

3 participants

X Tutup