Skip to content

Update cd_frame_generator.cpp #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gokulbnr
Copy link

Given that the events are accumulated into frames where the accumulation windows are overlapping in nature, the "fps" and "display_accumulation_time_us" ideally should be decoupled from each other. The variable "notify_slice_us_", conditional on the value of "display_accumulation_time_us", seems to affect the output framerate in proportion to the event accumulation time. For example, if the fps is set to 100Hz, and the accumulation time is set to 50000us, next_notify_us_ is set to 50000/3 = 1666.67, making the resultant output framerate 60Hz even when CPU cores are available. The proposed change to set notify_slice_us_ to a constant 100us attempts to decouple output frame rate from event accumulation times.

Given that the events are accumulated into frames where the accumulation windows are overlapping in nature, the "fps" and "display_accumulation_time_us" ideally should be decoupled from each other.  The variable "notify_slice_us_", conditional on the value of "display_accumulation_time_us", seems to affect the output framerate in proportion to the event accumulation time. 
For example, if the fps is set to 100Hz, and the accumulation time is set to 50000us, next_notify_us_ is set to 50000/3 = 1666.67, making the resultant output framerate 60Hz even when CPU cores are available.
The proposed change to set notify_slice_us_ to a constant 100us attempts to decouple output frame rate from event accumulation times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant