I've watched a couple of videos where the developer demonstrates an algorithm using some visualisation and an ability to 'step' manually or set the processing speed of such an algorithm. See Casey's Killing The Walk Monster or Oskar Stålbergs's Townscaper video.
I was just wondering, syntactically, how that works. I'm used to the idea of an algorithm executing as fast as the main update loop executes, so is it as simple as setting this up to only execute on a step value and then increment that externally. It would be great if someone could break it down for me how to setup code like this in general.