socd icon indicating copy to clipboard operation
socd copied to clipboard

performance issues

Open FireNinja7365 opened this issue 9 months ago • 6 comments

works great, until i use a macro. i have A and D set to opposite, but i can feel it slow down when spamming an unrelated key, in this case my space bar.

FireNinja7365 avatar Mar 02 '25 17:03 FireNinja7365

Hey, what do you mean by "until I use a macro"? What exactly slows down? A/D slows down, or space bar comes out with a delay? Also, just in case try to run as admin and let me know if it helps or not.

valignatev avatar Mar 02 '25 17:03 valignatev

sorry for not explaining clearly, what happens is when i use my macro(built into my mouse) to spam the space bar, the detection of the A and D keys slow down drastically, taking ~0.5 of a second before they register.

FireNinja7365 avatar Mar 02 '25 20:03 FireNinja7365

hmm, I see. Does it only affect A/D, or any other keys? I recently bought a fancy mouse, so maybe will be able to try and reproduce something similar.

valignatev avatar Mar 02 '25 22:03 valignatev

I think it happens to all keys. And i think the reason it's happening, is because when I'm spamming so many inputs, it takes it longer to filter through them to find the ones it needs to then change the output

FireNinja7365 avatar Mar 02 '25 23:03 FireNinja7365

I see, I guess the last question before I can start investigating is:

  1. is this on a global profile or on a profile for a specific application?
  2. You have any antiviruses? They can easily nerf low level keyboard hook that I use (like, they can attach tracing to them on entry/exit, thus slowing the whole thing down). If you have - try without them
  3. Are you running normally or as admin? If normally - try under admin (because then Windows gives low level hooks higher priority).

Regardless - could you please post your log.txt and settings file too? Thanks!

valignatev avatar Mar 03 '25 00:03 valignatev

Global profile

Only av is built in windows stuff

Tried as admin, didn't help

My mouse's macro is about 63 per second, which is the fastest it'll go

FireNinja7365 avatar Mar 04 '25 01:03 FireNinja7365

Hey, I just released a new version that fixed few memory leaks and improved performance here and there. And also added a toggle to spam even more logs. If it didn't help, I'd appreciate any videos with demonstrations and other potentially related info!

I've never been able to reproduce the thing you reported, but one potential reason for this is maybe the mouse macro is implemented through another low level hook that registers itself first, and then maybe it short-circuits itself instead of invoking next hooks in line. This is just an educated speculation on my part.

Release link: https://github.com/valignatev/hitboxer/releases/tag/0.13

valignatev avatar Sep 01 '25 00:09 valignatev

i can't even reproduce it anymore myself lol, but yeah it looks good 👍

FireNinja7365 avatar Sep 05 '25 00:09 FireNinja7365