1. A method in a system, the method comprising: identifying an event in the system; and aligning, in response to identifying the event, both activation of a timer-driven animation routine that updates a state of an animation by updating the display of one or more regions and activation of a paint controller module that identifies updates to the state of the animation and composes a frame that includes the updates to the state of the animation, the aligning including adjusting, based on whether there is sufficient time for the timer-driven animation routine to update the state of the animation at a current rate at which the timer-driven animation routine and the paint controller module are activated, a rate at which both the timer-driven animation routine is activated and the paint controller module is activated.