Toast Engine
Loading...
Searching...
No Matches
tick_scheduler.hpp File Reference

Dependency-graph tick scheduling shared by World and PlayWorkspace. More...

#include "box.hpp"
#include "node.hpp"
#include "wave_executor.hpp"
#include <mutex>
#include <unordered_map>
#include <variant>
#include <vector>
Include dependency graph for tick_scheduler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toast::_detail::NodeCluster
struct  toast::_detail::TickSchedule
class  toast::TickScheduler
struct  toast::TickScheduler::DependencyGraph

Namespaces

namespace  toast::_detail
 Member-robber pattern used by the generated reflection code.

Typedefs

using toast::_detail::Interactions = std::unordered_map<Box<Node>, std::vector<Box<Node>>>
 For a node, the nodes whose scripts it calls or is called by, see Node::interactsWith().

Functions

auto toast::_detail::planWave (const TickSchedule::Wave &wave, TickFunctionList func, const Interactions *interactions=nullptr) -> std::vector< WaveJob >
 Splits a wave into the jobs that run it in parallel.

Detailed Description

Dependency-graph tick scheduling shared by World and PlayWorkspace.

Author
Xein
Date
06 Jul 2026