everytime i play factorio within 10 minutes i will start having latency but if i alt tab press some random buttons then alt tab back to factorio it is fixed for like 10 seconds but then starts happening again i only have 1 mod and its even distrubution and also this has been happening for a couple of days now pls help also it will randomly happen there is nothing that i have seen that triggers it
#latency with wasd and other controls
1 messages · Page 1 of 1 (latest)
Are you playing single player? Or connecting to a server?
singe player @turbid nacelle
Few possible causes.
- Something is flooding the application with messages faster than it can process them. This causes input messages to get increasingly further delayed. Could be some background application causing this such as an overlay.
- Rendered frames are getting queued up somewhere, for example between the application and the GPU rendering them. This functionality is used to increase GPU throughput but will add increasing latency as the number of frames buffered increases. Usually can be controlled and even set to 0 by GPU drivers.
so how do i check if it is those problems
What OS are you using?
os?
Operating system.
Also have you tried the silly thing of restarting the computer? In case it is just some gremlin that fixes itself after a reboot.
i've restarted my laptop recently but it always happens even with restarting
also is this what you meant by operating system
Does the laptop have a discrete GPU? or only Intel IGPU?
Discrete will usually be something like Nvidia RTX blah or AMD Radeon Blah.
Some newer mid tier laptops might also have Intel Arc blah.
i have a nvidida geforce rtx 4070 @turbid nacelle
Make sure factorio is using the RTX 4070 and not the Intel IGPU.
You might be able to see this in task manager by looking at the GPU utilisation while factorio is running.
im cunffuzzled im not a tech person so i don't know what to look for
You should have 2 GPUs there. While running factorio leave task manager open to log what the GPUs are doing. Ideally Facotrio should be running on your Nvidia RTX GPU and no the Intel integrated GPU.
The image above is of my system which only has 1 GPU. In your case the list likely has a GPU 0 and GPU 1.
it mostly just uses my 4070
but it will spike on the other gpu sometimes
actually a lot
Try closing background applications like web browsers, possibly even discord and seeing if the latency goes away. Some people online say it is caused by other applications in the background.
well its random and i didn't haave it opened for that long just to check what my gpu was
do you have any controllers, streamdecks, etc. etc. etc. plugged in or otherwise connected to your computer?
i'm aware of some software that gets flooded with inputs when certain controllers are connected even if most other software isn't reading anything from the controller
no i have nothing else connected @left narwhal also when it makes all my buttons delayed it also does it to alt tab and literally every key that isn't right click or left click
But the computer does not beep? So it is not a case of interrupt overload.
Which falls to possibly something is flooding factorio with messages faster than it can process.
@turbid nacelle so how do i fix that then
You tried closing background applications? Unfortunately I have never had the issue to personally diagnose so I do not know exactly what causes it and how to solve it.
I wonder if this intermittent issue is caused by the game sometimes getting moved onto the processor's E cores which are much slower than the P cores... I don't have a CPU with heterogeneous cores but i have read that there are things that can be done in windows to help keep foreground tasks like the game on the P cores but I'd have to ask someone with a modern intel processor to weigh in on that. in the meantime, you could check your power profiles and make sure it is set to "high performance" while you're playing Factorio
You can test this with task manager by setting the factorio process affinity. Untick the E cores.
That said I doubt the E cores should be causing input latency? They are not that slow as they have ~1/2 the throughput of the P cores each. E cores are not LPE cores like on the new Intel Ultra CPUs, they are technically throughput for power/die area optimised unlike P cores that are throughput per core optimised but have poor power efficiency and use a lot of die area.