Skip to content

Conversation

kcbanner
Copy link
Contributor

@kcbanner kcbanner commented Jul 19, 2025

  • Update tracy to 0.12.4
  • Remove usingnamespace usage
  • Update build.zig

@hazeycode hazeycode requested a review from Copilot July 20, 2025 09:48
Copilot

This comment was marked as outdated.

@kcbanner kcbanner marked this pull request as ready for review July 22, 2025 05:03
kcbanner added 3 commits July 26, 2025 11:28
- Update build.zig
- Bump minimum zig version, for std.fmt usage
@kcbanner kcbanner changed the title Update for 0.15.x Update for 0.15.x, update tracy to 0.12.4 Jul 26, 2025
@Avokadoen
Copy link
Contributor

Missing update to the readme 👀

src/ztracy.zig Outdated

pub const AppInfo = if (enabled) impl.AppInfo else stub.AppInfo;

pub const TracyAllocator = if (enabled) impl.AppInfo else stub.AppInfo;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is incorrect, it should be

pub const TracyAllocator = if (enabled) impl.TracyAllocator else stub.TracyAllocator;

@Avokadoen
Copy link
Contributor

@hazeycode other than my previous comment, is there anything else blocking this PR from being merged?

@hazeycode hazeycode requested a review from Copilot September 7, 2025 16:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates Tracy to version 0.12.4 and removes deprecated usingnamespace usage to ensure compatibility with Zig 0.15.x. The update includes refactoring the code structure to use explicit imports instead of namespacing, and updating build configuration.

Key changes:

  • Update Tracy from version 0.11.1 to 0.12.4 with numerous new features and improvements
  • Replace usingnamespace with explicit function declarations to maintain API compatibility
  • Refactor code organization by splitting functionality into separate stub.zig and impl.zig files

Reviewed Changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated 1 comment.

File Description
src/ztracy.zig Removes usingnamespace and replaces with explicit function declarations, splits implementation into separate files
src/stub.zig Contains stub implementations for when Tracy is disabled
src/impl.zig Contains full Tracy implementation when enabled
libs/tracy/* Updates Tracy library to version 0.12.4 with numerous enhancements and bug fixes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@hazeycode
Copy link
Member

@hazeycode other than my previous comment, is there anything else blocking this PR from being merged?

Looks good other than the TracyAllocator definition

@hazeycode hazeycode merged commit 20cf6ff into zig-gamedev:main Sep 7, 2025
3 checks passed
@Avokadoen
Copy link
Contributor

Wops. Did not notice before now. The tracy version is invalid. 0.12.4 does not exist and it seems to not be introducing either 0.12, 0.12.1 or 0.12.2. @kcbanner what am I missing here?

@kcbanner
Copy link
Contributor Author

kcbanner commented Sep 8, 2025

Wops. Did not notice before now. The tracy version is invalid. 0.12.4 does not exist and it seems to not be introducing either 0.12, 0.12.1 or 0.12.2. @kcbanner what am I missing here?

I used the version from TracyVersion.hpp:

enum { Minor = 12 };
enum { Patch = 4 };

I assumed that was the most recently released version, but you are correct, 0.12.2 was the most recently released and 0.12.4 hasn't been released yet.

@Avokadoen
Copy link
Contributor

Makes sense. Thanks for the good work on the PR! ❤️

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

Successfully merging this pull request may close these issues.

3 participants