on_tick_20 & on_tick_60 events
Posted: Fri Jul 24, 2015 3:28 pm
Request: A tick event that only fires every 20 ticks (3 events per second.), and another that only fires every 60 ticks (One event per second). Events should have the same event.tick available as the normal tick event.
Purpose: Less performance hungry tick options for entities/code that do not require fast update cycles.
Can currently be achieved by using if statements and checking the number of ticks passed since last execution, but can still end up being thousands of unneeded if checks if large lists are involved.
Examples: Simulating tree growth; Weather patterns; Simulating alien strategic decisions;
Purpose: Less performance hungry tick options for entities/code that do not require fast update cycles.
Can currently be achieved by using if statements and checking the number of ticks passed since last execution, but can still end up being thousands of unneeded if checks if large lists are involved.
Examples: Simulating tree growth; Weather patterns; Simulating alien strategic decisions;