A feature I've kinda been jonesin' for. I'm using callbacks for my threaded atmos, but callbacks are too "high priority" for it: they're always run, each and every one, each and every tick. So I've changed the default to one that allows for the behavior I desire: only runs if there's enough time left in the tick, only runs as long as there's enough time left in the tick. You can make one with the old behavior with the new Callback::new_priority function. Here's an example of usage:
A feature I've kinda been jonesin' for. I'm using callbacks for my threaded atmos, but callbacks are too "high priority" for it: they're always run, each and every one, each and every tick. So I've changed the default to one that allows for the behavior I desire: only runs if there's enough time left in the tick, only runs as long as there's enough time left in the tick. You can make one with the old behavior with the new
Callback::new_priority
function. Here's an example of usage: