zakarumych / edict

Other
82 stars 6 forks source link

Parallel queries from threads #1

Closed akhilman closed 1 year ago

akhilman commented 2 years ago

Could you please briefly describe how the parallel queries will work?

zakarumych commented 2 years ago

Atomic borrows from &World (kinda like in hecs) will validate that mutable aliases are never created by queries. Unsafe unchecked version of methods would exist for those who need them.

Stageless scheduler will run systems without conflicts as systems specify ahead of time what components they access and how. Scheduler will probably live in another crate.

akhilman commented 2 years ago

Here is plan to make parallel access possible:

zakarumych commented 1 year ago

Threading support is implemented using runtime checks. Unsafe version could be added IF profiling would show that checks is a bottleneck