Skip to content

Conversation

@DaMatrix
Copy link
Contributor

@DaMatrix DaMatrix commented Jul 4, 2024

Description

This cleans up some APIs and adds extensive documentation which was left out of the first PR.

Additionally, the Vulkan context is now kept globally, so that we don't have to set up everything from scratch every single time a block is mined (setting up the context and compiling the compute shader is fairly expensive).

Changelog

Type of Change

Please mark the appropriate option by putting an "x" inside the brackets:

  • Bug fix
  • New feature
  • Enhancement or optimization
  • Documentation update
  • Other (please specify)

Checklist

Put an "x" in the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • I have tested the changes locally and they work as expected.
  • I have added necessary documentation or updated existing documentation.
  • My code follows the project's coding standards and style guidelines.
  • I have added/updated relevant tests to ensure the changes are properly covered.
  • I have checked for and resolved any merge conflicts.
  • My commits have clear and descriptive messages.

Screenshots (if applicable)

If the changes affect the UI or have visual effects, please provide screenshots or GIFs showcasing the changes.

Additional Context (if applicable)

Add any additional context or information about the changes that may be helpful in understanding the pull request.

Related Issues (if applicable)

If this pull request is related to any existing issues, please list them here.

Requested Reviewers

@BHouwens

@DaMatrix DaMatrix requested a review from a team as a code owner July 4, 2024 14:59
@BHouwens BHouwens merged commit 782be88 into AIBlockOfficial:difficulty_function_gpu Jul 8, 2024
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