8000 100% CPU usage on client startup · Issue #1071 · wolfpld/tracy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
100% CPU usage on client startup #1071
Open
@PiMoNFeeD

Description

@PiMoNFeeD

I have a game engine that consists of dozens of DLLs, so I build tracy as a static library with TRACY_ENABLE, TRACY_ON_DEMAND, TRACY_DELAYED_INIT (this one is required because otherwise I get a crash on startup) and then I link that static library to the entire solution (all defines are shared across all projects in solution, not just the static library project). When I run the engine, CPU usage very quickly spikes up to 100% and then I get a bazillion broadcasted clients in my server window (meaning I have a ton of different clients). I thought that it initiates a broadcast for every module, so I rebuild with added TRACY_NO_BROADCAST to the static library project (because it's not used in the headers, so I didn't add it to the entire solution since rebuilding it is slow). Obviously no more broadcasted clients, but CPU usage is still crazy high, almost making me unable to even use my PC entirely. I couldn't find anything useful in documentation or issues so not sure what to do now.
I did see a TRACY_MANUAL_LIFETIME define though, could that help me? Would it work across all modules if I only call startup and shutdown in one module or am I supposed to call them in all modules?
I am using VS 2022 with tracy 0.12.1 (latest release).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0