OnUpdate should be reworked. It has nearly 150 lines of code being ran every frame. This is a CPU hog. Stuff like isShiftDown can be gathered from event handlers and doesn't need to be updated every frame. You're spreading yourself too thin with all of this inside of one function call.
OnUpdate should be reworked. It has nearly 150 lines of code being ran every frame. This is a CPU hog. Stuff like
isShiftDowncan be gathered from event handlers and doesn't need to be updated every frame. You're spreading yourself too thin with all of this inside of one function call.