Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stageless: move final apply outside of spawned executor (#7445)
# Objective - After the multithreaded executor finishes running all the systems, we apply the buffers for any system that hasn't applied it's buffers. This is a courtesy apply for users who forget to order their systems before a apply_system_buffers. When checking stageless, it was found that this apply_system_buffers was running on the executor thread instead of the world's thread. This is a problem because anything with world access should be able to access nonsend resources. ## Solution - Move the final apply_system_buffers outside of the executor and outside of the scope, so it runs on the same thread that schedule.run is called on.
- Loading branch information