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

Fixes to determination of VkPhysicalDeviceLimits::timestampPeriod. #2043

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

billhollings
Copy link
Contributor

@billhollings billhollings commented Oct 17, 2023

  • On Apple GPUs, set timestampPeriod to 1.0.
  • On non-Apple GPUs, calculate timestampPeriod each time it is retrieved.
  • On older devices that do not support GPU timestamps, use nanosecond CPU timestamps to be consistent with timestampPeriod of 1.0.
  • Change MVKConfiguration::timestampPeriodLowPassAlpha and environment variable MVK_CONFIG_TIMESTAMP_PERIOD_LOWPASS_ALPHA to 1.0, to use only latest value by default.
  • Add build-time verification that MVKConfigMembers.def includes all members of MVKConfiguration (unrelated).

Fixes issue #2039.
Fixes issue #2040.

- On Apple GPUs, set timestampPeriod to 1.0.
- On non-Apple GPUs, calculate timestampPeriod each time it is retrieved.
- On older devices that do not support GPU timestamps, use nanosecond
  CPU timestamps to be consistent with timestampPeriod of 1.0.
- Change MVKConfiguration::timestampPeriodLowPassAlpha and environment
  variable MVK_CONFIG_TIMESTAMP_PERIOD_LOWPASS_ALPHA to 1.0, to use
  only latest value by default.
- Add build-time verification that MVKConfigMembers.def
  includes all members of MVKConfiguration (unrelated).
@billhollings billhollings merged commit b50ff83 into KhronosGroup:main Oct 17, 2023
@billhollings billhollings deleted the fix-timestampPeriod branch October 17, 2023 11:58
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.

2 participants