notgoodusename / OsirisAndExtra

Other
127 stars 64 forks source link

Optimization / Multipoint changes #505

Closed tommyka1 closed 10 months ago

tommyka1 commented 1 year ago

- Replaced current optimizations (multipoint / backtrack) with new "Low Performance Mode" (much more dynamic and less impactful to ragebot performance):

- Added feet as a selectable ragebot hitbox group. - Added hands to the arms hitbox group. - Scaled multipoint into two options: head multipoint and body multipoint.

tommyka1 commented 1 year ago

- Scaled low performance mode into 2 options (ragebot / backtrack) to allow the use of it while legit cheating.

notgoodusename commented 1 year ago

I like your idea about not processing certain body parts depending off FPS The scaling multipoint seems to work, since low FPS disables ragebot altogether, but i prefer to have ragebot work 24/7 even in low fps situations Scalling backtrack is a bad idea, since it would remove ticks, the ragebot doesnt use every tick, it only takes the last possible tick Also the neck not being scanned is on purpose

tommyka1 commented 1 year ago

Scaling backtrack does remove ticks, but it's much better than backtrack being ignored alltogether when fps is low. Also, ragebot should still work properly in low fps situations, it will just ignore limbs (head and body will still be targeted). If you think that's too much though, i can delete that part and keep the scaling multipoint, which gives a pretty nice fps boost when several enemies are scanned. (Also, i'm aware that neck isn't being scanned on purpose)

notgoodusename commented 1 year ago

Scaling backtrack does remove ticks, but it's much better than backtrack being ignored alltogether when fps is low.

Its better to disable backtrack because with backtrack enabled you are running ragebot twice on every player, scalling ticks down doesnt stop this, it just makes the rage backtrack worse

Also, ragebot should still work properly in low fps situations, it will just ignore limbs (head and body will still be targeted). If you think that's too much though, i can delete that part and keep the scaling multipoint, which gives a pretty nice fps boost when several enemies are scanned. (Also, i'm aware that neck isn't being scanned on purpose)

https://streamable.com/8yw86l

tommyka1 commented 1 year ago

This shouldn't be happening, I'll push a new version addressing that bug and reverting the backtrack changes soon.

tommyka1 commented 1 year ago

Everything should be working fine now. I've restored the backtrack optimizations to their original version, and fixed some other issues. The ragebot will always target the head and body hitboxes, and will also target the limbs if they're the only selected hitboxes or the user's fps is higher than the server's tickrate. The multipoint will always scan every head point, and will also scan the points of other body parts depending on how much fps the user has (multipoint will work on every hitbox if the user has fps equal to or greater than 2 * (the server's tickrate), and will only work on the head hitbox if the user's fps is less or equal to the server's tickrate. Between those values, it will dynamically scan a certain amount of body parts, going from top to bottom).

JannesBonk commented 1 year ago

a good way to optimize it is using threads, works great for me

Smellon69 commented 1 year ago

My fps after adding this went in the negatives. Great pr!