This repository has been archived by the owner on Apr 18, 2022. It is now read-only.
RFC: Refactor context #125
Labels
diff: normal
Achievable by an reasonable experienced developer. If new to Amethyst, may need some guidance.
pri: important
Something other teams are relying on, or a low-level, critical piece of functionality.
Projects
Motivation
The
context
struct is a large struct containing different subsystems (amethyst/src/context/src/lib.rs
Lines 53 to 65 in ea43b89
Arc<..>
to the different processor requiring to lock the whole context.Proposal
Split the
context
into the separated subsystems + a newcontext
(withdelta_time
,timestep
, ...).The subsystems are added as resources to the world, allowing a more fine-granual locking and removes the need of a global object passed around trough the whole engine.
Open questions
How does this influence the entity-component system in terms of scheduling?
Will we only have a single world in the future, if not how should the resources be handled?
The text was updated successfully, but these errors were encountered: