Hi,
I am developing a Platformer using unreal engine and have added a gun to my character that shoots a laser. Now for some reason if I shoot while running it lags every few seconds.
I really don’t know how to fix this issue and if there is any advice you can give I really appreciate it.
Thanks
Emissive materials and overdraws (translucent materials) come with a performance cost, if you are also running a line trace on event tick along with a bunch of other stuff on tick they are all being calculated every frame of the game. You should limit the use of event tick with heavy calculations because those calculations are run every frame which causes a lot of frame rate loss. To narrow down the exact cause of the frame rate drop you will need to do some performance checks. This video may be helpful as well: Rendering Best Practices | Live Training | Unreal Engine - YouTube