The CommandStream processes a given fraction of the AI events on every loop.
More...
The CommandStream processes a given fraction of the AI events on every loop.
Crystal.CommandStream.CommandStream |
( |
int |
initialQueueSize | ) |
|
|
inline |
Initializes a new instance of the T:Crystal.CommandStream class.
- Parameters
-
initialQueueSize | Initial queue size. |
Adds the specified command.
- Parameters
-
- Returns
void Crystal.CommandStream.Process |
( |
| ) |
|
|
inline |
Processes as many items as possible withing the given Time limits.
int Crystal.CommandStream.CommandsCount |
|
get |
The number of scheduled commands in the queue.
float Crystal.CommandStream.ExtraTimeNeeded |
|
get |
Gets the accumulated number of seconds the updates were overdue this frame, i.e. sum of all updates.
double Crystal.CommandStream.MaxProcessingTime |
|
getset |
The maximum Time in milliseconds the Process() is allowed to take.
The max process Time.
int Crystal.CommandStream.ProcessedCount |
|
get |
The number of items in the queue that were processed during the previous cycle.
double Crystal.CommandStream.TotalMilliseconds |
|
get |
Total milliseconds used on the last Process().
The documentation for this class was generated from the following file:
- Source/Scheduling/CommandStream.cs