qbcore-framework / qb-weapons

Weapon Logic Script For QB-Core :gun:
GNU General Public License v3.0
28 stars 194 forks source link

Up to 30 FPS Loss While Using Weapons' Ironsight #2

Closed thegambid closed 3 years ago

thegambid commented 3 years ago

Steps to reproduce: 1- Get a pistol on your hand. 2- Switch to first person view 3- Repeadetly spam the left click (shoot) button with ironsight. (How to open ironsight: While holding rightclick, use scroll up)

Not sure if the reason is about this script, it might be spamming bullet casings or something else as well.

DmACKGL commented 3 years ago

For some reason when you fire the weapon reloads all the chat suggestions image Profiler: https://frontend.chrome-dev.tools/serve_rev/@901bcc219d9204748f9c256ceca0f2cd68061006/inspector.html?loadTimelineFromURL=https://gist.githubusercontent.com/DmACKGL/088398d257359c9b6f3794d6d1c5da59/raw/169dc9a9bc5462fdfecc39b91996a3f256ed1fc2/profileData.json%2520-%2520Weapon%2520Issue