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

Removed world stack #7

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Removed world stack #7

merged 3 commits into from
Aug 13, 2024

Conversation

GuusKemperman
Copy link
Owner

Our weird combination of dependency injection AND using a world stack led to a lot of bugs. Forgetting to push the world could lead to a crash (but only in specific circumstances), and forgetting to pop (which STILL happens in a few places in the main branch) leads to the stack slowly growing over time.

The world stack made multi-threading difficult, it has been replaced with dependency injection. Script components now hold references to the world, and the world is guaranteed not to move around in memory

@GuusKemperman GuusKemperman merged commit 675643b into main-lite Aug 13, 2024
4 checks passed
@GuusKemperman GuusKemperman deleted the remove-world-stack branch August 13, 2024 17:11
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