Add support for syncing redraws to screen refresh