630207d590
Measures packet data rate and sleeps to prevent data from going above the set data rate. Uncomment the TEST_FRAMEDROPS macro, then set DROPTEST_MAX_KBPS to the desired kb/s (for example 3000 for 3000 kilobits per second), and then it will limit the data rate to that specified amount, forcing the thread to sleep to ensure it can only output the desired data rate.