Giter Site home page Giter Site logo

Comments (4)

jrfonseca avatar jrfonseca commented on May 28, 2024

I agree this would be nice in theory, but I'm afraid this is extremely hard (if not outright impossible) to achieve in practice.

To be precise, get a trace from the point apitrace is attached is doable, but that trace would be useless -- it would be incomplete and one would not be able to replay it.

from apitrace.

pinwhell avatar pinwhell commented on May 28, 2024

By replay you mean, sending the exact sequence of calls to another computer, right when they happend? if so, then what are the exact complications from doing it from right inside the actual Injected/tracing process?

from apitrace.

jrfonseca avatar jrfonseca commented on May 28, 2024

By replay you mean, sending the exact sequence of calls to another computer, right when they happend?

Yes. That's how Apitrace is able to inspect graphics state and debug.

if so, then what are the exact complications from doing it from right inside the actual Injected/tracing process?

That's possible, but it's not how Apitrace was designed.

Apitrace copes with the huge interface surface of APIs like OpenGL and Direct3D by using automatic code generation, meaning a few folks (mostly me) need only to write a small amount of code to handle these APIs.

Start/stopping tracing mid execution or debugging live process would require an insane amount of hand-written code to understand/serialize the graphics state, and the army of developers required to write it does not exist.

There have been much such efforts in the past for OpenGL, some even forks of Apitrace, and most fail. They quickly handle toy apps, but never get to the point to handle real life GL apps well. See also #31

The only project I know that can do this for modern OpenGL / Direct3D is https://renderdoc.org/ I recommend I take a look.

To summarize, although this feature would be great in theory, it is unfeasible in practice, and therefore not a direction I'm willing to pursue or entertain.

from apitrace.

pinwhell avatar pinwhell commented on May 28, 2024

Thank you for taking the time to clarify the intricacies of Apitrace and the challenges associated with implementing real-time tracing within the injected/tracing process. Your detailed explanation put exact enfasis on the complexities involved, and I appreciate your perspective on this matter, i fully understnad your position.

from apitrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.