window->update() now takes a step function that is called each fixed step that the window is running