Hey,
a thing i noticed recently in my bot is that the hook seems to be a bottleneck
i'm hooking a method that is called very often(even more often when the game is minimized O.o), but still it could be faster to execute code and get return values
so am i the only one experiencing this or are there others that notice this too?
and my question would be what i could do against it?
currently i'm just executing each method one after each other like
IsSpellReady() => injected code runs => i get the return value,compare it => CastSpell() => injected code runs => return value(not needed in this case but you get the point)
my first idea was to create a queue for all the method-requests,and to run a thread for executing all those methods at once like every 10ms.
the problem in doing this would be that i'd have to run all my requests in new threads too,not? otherwise this won't give me more performance then my current method.
as always thanks for your help
streppel