Skip to content
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

VideoCommon: Don't round the refresh rate #8988

Merged
merged 1 commit into from Jul 28, 2020

Conversation

JosJuice
Copy link
Member

We now provide a double to the FPS counter and exact values to FIFO recording and frame dumping.

We now provide a double to the FPS counter and exact values
to FIFO recording and frame dumping.
s_codec_context->time_base.num = VideoInterface::GetTargetRefreshRateDenominator();
s_codec_context->time_base.den = VideoInterface::GetTargetRefreshRateNumerator();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is .num and .den switched around intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The time base is the length of a frame, not the number of frames per second.

@lioncash lioncash merged commit b354e34 into dolphin-emu:master Jul 28, 2020
10 checks passed
@JosJuice JosJuice deleted the no-refresh-rate-round branch July 28, 2020 21:18
Copy link

@umut-eng umut-eng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants