The current function is not very reliable. Make sure you set the following variables at the beginning of main() :
time_smooth = 0; fps_lock=on;
ph_fps_max_lock= fps_max;

This should ensure that velocity remains constant and close to what you specified. The next update will have a more reliable version of phent_addvelcentral that's framerate independent.