Giter Site home page Giter Site logo

Comments (1)

jpxue avatar jpxue commented on May 27, 2024

I've tried capturing from the front buffer and noticed that it was more or less the same as using GDI (actually a few ms slower in my case).

Capturing directly from the back buffer would surely be the fastest option yes. I'm no Direct3D expert but I'm positive that you cannot access the backbuffer without injecting and hooking Present or EndScene which will inadvertently significantly increase your chances of getting banned so I did not even consider this option.

As for the Windows Media API, I do not know a thing about it. If it compresses the image it could cause a problem when finding the health bar seeing that it looks for specific RGB values which could change on compression. I also did not manage to find anything about it's performance vs GDI or Direct3D so I have no idea. If I had time, I would try it; providing that it is not a layer that still interfaces with GDI behind the scenes.

At this point, the capture algorithm could be improved by shrinking the size of the area to be captured. It is very simple to implement just by changing a few parameters when defining the HBITMAP and when calling BitBlt. Improving the mouse movement algorithm would also be a priority because it takes 3 cycles to get the mouse to where it actually should be thus the speed could be cut by 3x in this regard.

from overwatch-aim-assist.

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.