the parameter that most computer audio interface use ti set the latency is called the input buffer. the smaller the buffer setting, the lower the latency becomes, but the harder the cpu has to work. lf you lower the buffer size too much,the setting can produce crackling noises, which can happen even with a computer with a lot of horsepower. these noises crop up when the cpu literally has to drop audio byter because it can't keep up with the audio stream.
other things that can affect latency but are usully not thought of parameters such as your wireless connection,how many programs are running, whether your computer has a virus,current background activity,connected yet unneeded peripherals,and even the graphics card. when in doubt, turn it off