Changing FPS dynamically

[color=blue]how can i change FPS dynamically?[/color]