erwinvc / runelite-plugins

Provides visual notifications when no longer actively performing the selected skill
BSD 2-Clause "Simplified" License
1 stars 4 forks source link

Fps improvement #26

Closed AbusiveTuna closed 1 month ago

AbusiveTuna commented 1 month ago

Basing this off what current version of this plugin is in RL, since it doesn't seem like the activity tracker stuff was every pushed into RL.

Noticed in my cc that this plugin was causing a large FPS drop of about 30-40 fps. Not sure how often PostScriptFired was running the sort but it seemed like it was 100+ times per second. Moving it to onGameTick made the fps drop go to only around 5-10fps.

Could still use improvements, most likely a check to see if there's any reason to sort at all, but figured I'd thrown in this quick improvement to see if you're interested in this quick fps fix.

erwinvc commented 1 month ago

That is a pretty big impact on FPS, interesting how you seem to be the first person to notice! Thanks for the suggestion, I'll update the plugin asap.