code for varying refresh rate versus operations per seconds