Jump to content

Tick: Difference between revisions

From Logic World Wiki
Added a paragraph on controlling the simulation speed
use keys template
 
Line 11: Line 11:
While every components state is calculated and updated at each tick, the number of ticks that occur in a second can be adjusted from as low as 1 tick per second (tps) all the way up to 10,000 tps.
While every components state is calculated and updated at each tick, the number of ticks that occur in a second can be adjusted from as low as 1 tick per second (tps) all the way up to 10,000 tps.


Adjustments can be made by opening up the simulation controls menu. By default, this is the <code>f9</code> button.
Adjustments can be made by opening up the simulation controls menu. By default, this is the {{keys|F9}} button.




Line 18: Line 18:
You can also pause/resume the simulation or step the simulation using hotkeys on your keyboard.
You can also pause/resume the simulation or step the simulation using hotkeys on your keyboard.


By default, this is <code>f10</code> to pause/resume the simulation, and <code>shift+f10</code> to step the simulation when paused.
By default, this is {{keys|F10}} to pause/resume the simulation, and {{keys|shift+F10}} to step the simulation when paused.
{{Todo|Add screenshots of the simulation controls menu}}
{{Todo|Add screenshots of the simulation controls menu}}

Latest revision as of 20:51, 10 September 2025

This article is a stub. Please help expand it by adding content.

A tick refers to one step of the game's logic simulation.

Most components take one tick to update the state of their output after their input changes state. Thus, on some ticks, the state of a component's outputs will be "wrong" compared to the state of its inputs.

TODO: Add more general information about timing

A demonstration of two AND gates being activated. The top AND gate has both its inputs active, but its output is not yet active because a delay of 1 tick has not yet passed. The bottom AND gate has had both its inputs active for at least 1 tick, and its output is therefore active.
A demonstration of two XOR gates being activated. The top XOR gate has one of its inputs active, but its output is not yet active because a delay of 1 tick has not yet passed. The bottom XOR gate has had one of its inputs active for at least 1 tick, and its output is therefore active.

Simulation Speed

While every components state is calculated and updated at each tick, the number of ticks that occur in a second can be adjusted from as low as 1 tick per second (tps) all the way up to 10,000 tps.

Adjustments can be made by opening up the simulation controls menu. By default, this is the F9 button.


Additionally, the simulation can be paused entirely, and stepped 1 tick at a time from the control menu. Useful for debugging circuits that don't behave like you'd expect.

You can also pause/resume the simulation or step the simulation using hotkeys on your keyboard.

By default, this is F10 to pause/resume the simulation, and ⇧ Shift + F10 to step the simulation when paused.

TODO: Add screenshots of the simulation controls menu