High CPU usage when clicking with the mouse

My shooter game has a cpu usage spike on the profiler every time I click with the mouse to shoot. I read it somewhere that it could be something with the Graphics Raycaster on Canvas but I removed the component from every canvas and it still happens. It doesn’t happen with other inputs.
Any idea on what causes this “NotifyUpdate” and “InputUpdate”?

“performed” in the bottom there calls your code, can you check what your code is doing? maybe try enabling “Deep Profile” in the top that should give you a better idea what is called from the callback

I don’t think the issue has to do with the update methods you highlighted, I assume it has to do with whatever function or event is called when you click with the mouse, if the code you call on click is performance heavy or you call a lot of code when you click that would be your issue, I also recommend you look through your code and see how much and what is getting called on click.