-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
Tracy and coroutines #936
Comments
Please read about fibers in the manual. |
Thank you very much about the hin. I read the part about fibers in the documentation and gave it a try: This is my main worker function. It graps a Job and executes/resumes it. As described in your documentation, I Added the TracyFiberEnter and TracyFiberLeave macros. I also defined TRACY_FIBERS
Unfortunately, this didn't change anything. As written in the documentation, I added TracyFiberEnter macros, everytime I resume a coroutine:
But I still geht the "Zone ended twice" error. Did I miss something else? |
@Sven-v-Beuningen Any progress? I have the same issue, though when reading the manual I'm not sure if the |
@HodBadichi We've found a solution which does work in a way, that it doesn't crash and doesn't produce "zone ended twice" errors. But from our current point of view it is not very useful for us. |
I'm currently working on a c++20 coroutine based JobSystem.
The JobSystem schedules coroutines on multiple threads. Calls to co_await can suspend the current coroutine and the JobSystem schedules another coroutine on the same thread. Later on the scheduler returns to the co_awaited coroutine.
Because of this it can happen that a coroutine is suspended and resumed multiple times.
I tried to use Tracy with this system, but always get "Zone is ended twice" error.
Is there anything I can do about that, or does Tracy just not support using coroutines?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: