The refresh rate will affect the speed of your program if your program (or the graphics library) is syncing with the refresh (IOW waiting for vertical retrace). Ignoring some complicating details the higher the refresh rate the less time your program spends waiting.