Another concerning aspect is that we appear to have lost a buffer (dropped from 4 to 3). Where did it go?
So three questions:
1. Can you please try modifying the code to just skip the call to sleep_until for timestamps in the past?
2. Any idea why the number of buffers in the stream dropped from 4 to 3? Did the compositor leak a bypass buffer?
3. What thread/function exactly is spinning the CPU? Is it inside clock_nanosleep? Needs some profiling.
Another concerning aspect is that we appear to have lost a buffer (dropped from 4 to 3). Where did it go?
So three questions:
1. Can you please try modifying the code to just skip the call to sleep_until for timestamps in the past?
2. Any idea why the number of buffers in the stream dropped from 4 to 3? Did the compositor leak a bypass buffer?
3. What thread/function exactly is spinning the CPU? Is it inside clock_nanosleep? Needs some profiling.