mherkazandjian / fastgrab

Python package for taking super-fast screenshots
GNU General Public License v3.0
60 stars 4 forks source link

[OPTMIZATION] - screenshot #12

Open Kirattus opened 3 years ago

Kirattus commented 3 years ago

Yo! what way do u think is more optimized? Each Thread print with specific area (bbox) and do your own stuffs or 1 thread print and the others crop ur needed area to find your stuffs??

i`ve many thread and each one find something in a specific area in RPGMMO (Buff / Debuff), Life, Mana, Speed, hunger, status, etc. studding and trying to make a simple bot

mherkazandjian commented 1 year ago

i think since fastgrab uses low level X11 bindings screenshotting with each thread a bbox and processing it would be faster. I personally have benchmarked it on a single thread because for my purposes that was already fast enough. But i am curious to know if e.g screenshoting using 16 or 32 threads would actually throttel the X11 part down.

it also depends how expensive your processing is after you take the screenshot.