Due to approximation, nobody assure that the distance will be always "greater" than 1.bitwise wrote:Nowhk wrote: But I will know qtickA is a real qtick at qtickB time (so, at the next buffer).
I need to check the "clock" tick in the "current" buffer, not in the next one
The first buffer is 0 so this is a valid qtick, call it qtickA ( = 0).
After 96 frames you get next buffer and you get the rounding error qtickB = 1.00136
but qtickB - qtickA = 1.00136 which is greater than 1 so... "qtick time".
Think to the difference between buffer 368 (91,875*4=367,5; which is 4.00544 in qtick), and 459 (91,875*5=459,375; which is 4.99592 in qtick): the gap is lower than 1, but they are both 2 valid qtick.
