Giter Site home page Giter Site logo

Dx11 Present hook spikes GPU usage about kiero HOT 1 CLOSED

lmoe avatar lmoe commented on July 23, 2024
Dx11 Present hook spikes GPU usage

from kiero.

Comments (1)

lmoe avatar lmoe commented on July 23, 2024

So. I have some results. I've learned a big lession today. Don't use cheap Dx11 demos for hook performance tests. It turns out that the demo is calling Present ~8000 times per second. As the detour places a jmp, and my hook jmp's back into the original Present function, it's safe to estimate ~24000 calls per second just for the render function alone. I've also assumed that this overhead would just put load on the CPU, because the real Present function still only gets called 8000 times like before. Well that a mistake as well.

I've just tested a real demanding game to verify, and it turns out that neither Detours 4, nor Minhook had any considerable impact at all. Who would have guessed. However, Detours seemed to handle the load/overhead a bit better than Minhook as the GPU load was ~10% less.

Sigh. Talking about fundamentals. It was basically right in front of my eyes.
Maybe this is a lession for someone else too.

from kiero.

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.