Lag spike causes lag in a game

0

So the story is very simple, from time to time I have a huge "lag" in the game and it lasts for like 1 second. This is very annoying. I've done some investigating and it turns out that during the lag, there's a huge spike on a disk usage caused by the same game. Is there any way to avoid the lag? Or is it just a game issue? I send an image showing performance analysis.

Screenshot here

Tomek

Posted 2018-04-04T11:46:56.717

Reputation: 1

1Disk usage cannot cause latency. What you describe is a hardware performance problem. Solution is to upgrade the bottleneck. – Ramhound – 2018-04-04T11:50:25.863

Answers

1

If an application suddenly spikes disk usage, it's usually an indication that a file it needs is either corrupted or fragmented. The "lag" you experience is because there's a problem either reading a file or writing to on, and the thread holds execution until it's finished loading the data to prevent an unstable application state.

If this is a Steam game, verify the application cache or local files.

If this is on an HDD, run a disk defragmenter. Don't use the one embedded in Windows, as it's actually a stripped-down and rebranded demo of another application. Instead, use something like the Auslogics Disk Defragmenter.

Antivirus utilities can also cause read spikes. If something about your application is triggering sandboxing of any kind, this will happen. If temporarily disabling your network security suite solves the problem, you should run a full system scan to make sure that your AV hasn't got a reason to be suspicious. Software cracks can also trigger this.

CDove

Posted 2018-04-04T11:46:56.717

Reputation: 1 155

run a disk defragmenter. Don't use the one embedded in Windows, as it's actually a stripped-down and rebranded demo of another application. - Any proof? – Ultrasonic54321 – 2018-04-04T12:20:28.527

1

Just a conversation with Scott Hanselman and some other Microsoft reps at CodeStock one year, nothing reproducible. To be fair, Windows 7 and 8 was the context of the conversation. It was apparently done that way because the old defrag (pre-XP) was a full version and the anti-monopoly lawsuits made them go third-party afterward.

– CDove – 2018-04-04T12:27:17.133

I'll just have to take your word for it. – Ultrasonic54321 – 2018-04-04T12:28:39.090

1@Ultrasonic54321 It’s well documented. It’s been true since at least Windows 7. However, there is absolutely nothing wrong, with the built-in tool. So I don’t agree with this answer. – Ramhound – 2018-04-04T12:40:43.780

It just doesn't do the job as well, which is what I consider "wrong". Benchmarks on Win7

– CDove – 2018-04-04T13:20:14.960