-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Remove Entity Component System entirely; add Mach object system instead #1305
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
emidoots
added a commit
to hexops/machengine.org
that referenced
this pull request
Nov 24, 2024
part of hexops/mach#1305 Signed-off-by: Stephen Gutekanst <[email protected]>
Signed-off-by: Stephen Gutekanst <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR remove the Entity Component System from Mach entirely.
After multiple years of working on our ECS, and investigating and learning how other very popular ECS implementations work, I have ultimately not been happy with the tradeoffs that they make. ECS forces you, by necessity of its design goals, down a very particular path which has serious and massive implications for how developers must write code and the types of problems and software bugs they must deal with.
Instead, over the past few months we have been experimenting with a new Mach object system - which is not an ECS but which solves the same problems, and with very different tradeoffs and design decisions. Ultimately I believe this will be a better path forward for us.
Documentation
There is a new Object system section on the website which describes in-depth the key concepts and how it all works.
Note about this change
Note: the
main
branch of Mach is currently experimental, and this change:mach.Core
functionality - such as setting window titles - and will also break examples that aren't just rendering a triangle.mach.Core
's API to the new object system.gfx.Text
,gfx.Sprite
,sysaudio
,sysgpu
, and other APIs to use the new object system - with the goal first of getting all examples building again.