> -             drawtimeout.tv_nsec = (1000/xfps) * 1E6;
> +             drawtimeout.tv_nsec = 1000000000 / xfps;

I like the patch, but not the comment. In the original code there is no
floating point calculation at all; the division is integer, but is true
that there is accuary lost. Maybe the best option is:

                drawtimeout.tv_nsec = (1000*1E6) / xfps;

Regards,


Reply via email to