ValveSoftware / Dota2-Gameplay

Public Bug Tracker for Dota2
1.49k stars 85 forks source link

ONLY on Windows 11 - Game stutters / frame-spike issues - mostly in team-fights! RTX 4070 / 5800X3D (Windows 10 doesn't have this issue) #21567

Open kepler2 opened 3 months ago

kepler2 commented 3 months ago

Description

Hello!

PC Specs:

CPU: Ryzen 5800x3d GPU: RTX 4070 RAM: 2 x 16 GB DDR4 3600MHZ @ CL18 Storage: Kingston KC3000 SSD 1TB Res: 1920x1080 OS: Windows 11 (23h2 - latest updates) - installed latest AMD chipset driver / Nvidia drivers Monitor: 144hz GSYNC Compatible monitor Internet connection: Gigabit Wired - 20ms ping

Settings: NVCP: Low Latency Enabled, GSYNC Enabled, VSYNC (use 3d application setting) Dota 2: VSYNC On Windows: Disabled Memory Integrity / Core Isolation

Issue:

Game stutters in certain team-fights. Actually it feels like a mini-stutter, the FPS only drops by ~5-7 FPS but even moving the camera is stuttery. It's not actually a FPS drop but it's more like many mini stutters...

Note 1: This issue only occurs on Windows 11. WIndows 10 is smooth as butter. Same settings, same config.

Note 2: I cannot seem to reproduce this issue when watching replays - only when playing the actual game.

Is there any way to diagnose this problem? I'm willing to invest time / effort to fix this because it only happens on Windows 11!

Thanks!

Example Match ID (and possibly Timestamp)

No response

Screenshots

These are my settings:

image

IgorHoruzha commented 3 months ago

Could You record a video how does stutters looks like, please?

kepler2 commented 2 months ago

Hello @IgorHoruzha I've managed to narrow the issue to DX11, only on Windows 11! Windows 10 is smooth.

VULKAN works better.

I will post a video regarding the issue, I have to record it while playing because in replays it doesn't show up.

Thanks!

kepler2 commented 2 months ago

@IgorHoruzha I have managed to attach the video here. This is just an example, but may happen randomly in-game.

1 - This is with DX11 - VSYNC ON + VSYNC On from Nvidia Control panel 2 - GSYNC Enabled 3 - Game runs @ ~137 FPS (locked due to VSYNC) 4 - You'll notice that the performance will drop @ second 11 - to 122 FPS 5 - Performance will be back to normal after some time but game is jittery 6 - Observe the frame-times and the FPS in the top right side of the screen - using RTSS

https://github.com/user-attachments/assets/f4afeab6-1e48-4860-a6f3-fda579dccbe7

IgorHoruzha commented 2 months ago

@IgorHoruzha I have managed to attach the video here. This is just an example, but may happen randomly in-game.

1 - This is with DX11 - VSYNC ON + VSYNC On from Nvidia Control panel 2 - GSYNC Enabled 3 - Game runs @ ~137 FPS (locked due to VSYNC) 4 - You'll notice that the performance will drop @ second 11 - to 122 FPS 5 - Performance will be back to normal after some time but game is jittery 6 - Observe the frame-times and the FPS in the top right side of the screen - using RTSS

Dota.-.stutter.mp4

Interesting, could You provide a full record, please? Does the issue happened when different heroes are chosen?

To me it looks like 30 or less FPS. Could You try UFO test, please? image

There 2 main option of the test: 1 Does the game in test looks nice. 2 Are there any browser shutters.

IgorHoruzha commented 2 months ago

What is Your Monitor? What framerate is chosen?

IgorHoruzha commented 2 months ago

16384 Possible related issue

kepler2 commented 2 months ago

@IgorHoruzha

What is Your Monitor? What framerate is chosen?

1 - Asus 144hz GSYNC Monitor (GSYNC Certified) 2 - Frame-rate on DX11 is VSYNC ON - 137 FPS limit from Dota 2

kepler2 commented 2 months ago

@IgorHoruzha I have managed to attach the video here. This is just an example, but may happen randomly in-game. 1 - This is with DX11 - VSYNC ON + VSYNC On from Nvidia Control panel 2 - GSYNC Enabled 3 - Game runs @ ~137 FPS (locked due to VSYNC) 4 - You'll notice that the performance will drop @ second 11 - to 122 FPS 5 - Performance will be back to normal after some time but game is jittery 6 - Observe the frame-times and the FPS in the top right side of the screen - using RTSS Dota.-.stutter.mp4

Interesting, could You provide a full record, please? Does the issue happened when different heroes are chosen?

To me it looks like 30 or less FPS. Could You try UFO test, please? image

There 2 main option of the test: 1 Does the game in test looks nice. 2 Are there any browser shutters.

1 - UFO Test is perfect 2 - Where can I upload full recording? It has 1.4 gb video

IgorHoruzha commented 2 months ago

Where can I upload full recording? It has 1.4 gb video

Outlook or Google drive is ok.

kepler2 commented 2 months ago

Where can I upload full recording? It has 1.4 gb video

Outlook or Google drive is ok.

@IgorHoruzha

I have attached the video here:

https://drive.google.com/file/d/1jAybxNGtWno6hw7aNs-NS-KPgJsKa6Lq/view?usp=sharing

1 - Observe the frame times in the top right side of the screen 2 - The issue is visible beginning from 03.29 minutes

IgorHoruzha commented 2 months ago

For now, I see camera blinking like in 30fps. I'm looking for a contrast to exactly recognize the issue, could You also provide a video of the same moment from a record, please?

Could You recognize the issue on these tries of reproduction?

https://github.com/user-attachments/assets/79f44cae-93eb-423b-aa3f-fb637e29ec4f

https://github.com/user-attachments/assets/5f3ed698-6d6d-4979-9a1c-f936c1cdd3f5

https://github.com/user-attachments/assets/d74eea66-0852-428c-b97c-d9b27a49b252

Could You also record how does Camera movements usually look, please? Do You have experience when You play in party and somebody of teammates, have the same issue? Could You also provide any other examples of the issue, or a as short as possible moment that show the issue as clear as possible?

kepler2 commented 2 months ago

Hello @IgorHoruzha

Could You also record how does Camera movements usually look, please?

https://drive.google.com/file/d/15ml-soxwOHwwnIOcdJ2AI_ciuIival6p/view?usp=sharing

Do You have experience when You play in party and somebody of teammates, have the same issue?

I only play solo and happens randomly while playing.

Could You also provide any other examples of the issue, or a as short as possible moment that show the issue as clear as possible?

https://drive.google.com/file/d/1rgjrWkYkCAICfeB6uw71LfReP79MROAe/view?usp=sharing

IgorHoruzha commented 2 months ago

@kepler2 What tool do You use to record videos?

https://github.com/user-attachments/assets/e709aaf1-50bd-4e0f-a9a0-e751e072b22e

https://github.com/user-attachments/assets/f4522774-d1dd-42a9-bdc3-7d419baf2384

I found that the first video changes frames approximately every 33 milliseconds, while the second one changes every 16 milliseconds. This means the frame rate for the first video/game is about 1000ms ÷ 33ms ≈ 30fps, and for the second one, it's 1000ms ÷ 16ms ≈ 60fps.

Is this a description of Your experience? I recently experienced a similar issue, but in my case, it lasted for about 5 seconds. In non-fight scenario.

How long does this issue typically last?

kepler2 commented 2 months ago

Hello.

What tool do You use to record videos?

NVidia Geforce Experience - Instant Replay.

Is this a description of Your experience?

It's impossible to record the video in 144 FPS, It records in 60 FPS. But if you watch the top right corner of the screen, you can see the actual FPS.

How long does this issue typically last?

In that example it lasted almost 20s.

IgorHoruzha commented 2 months ago

Where can I upload full recording? It has 1.4 gb video

Outlook or Google drive is ok.

@IgorHoruzha

I have attached the video here:

https://drive.google.com/file/d/1jAybxNGtWno6hw7aNs-NS-KPgJsKa6Lq/view?usp=sharing

1 - Observe the frame times in the top right side of the screen 2 - The issue is visible beginning from 03.29 minutes

It also appears that in the video, we have one frame change every 33ms, meaning the video runs at 30fps.

https://github.com/user-attachments/assets/2a22f679-aaa4-44aa-8cac-abb3f7fe5017

https://github.com/user-attachments/assets/3faf93c1-df7e-4e1f-a321-55807ece3ca4

The question is: Do You notice the screen being laggy (like freezing for a moment between frames), or does it feel more jumpy (with frames not transitioning smoothly)?

IgorHoruzha commented 2 months ago

Could You set the game to 30fps in the console and try demo mode to see whether it provides the same experience, please?

Console command is:

fps_max 30

https://github.com/user-attachments/assets/1f0484e9-7ca3-4c72-aca6-581f17839432

kepler2 commented 2 months ago

The question is: Do You notice the screen being laggy (like freezing for a moment between frames), or does it feel more jumpy (with frames not transitioning smoothly)?

Hello!

Yes, the screen / camera is laggy. Like stuttering, not smooth, when moving the camera.

kepler2 commented 2 months ago

Could You also record how does Camera movements usually look, please?

This is how it looks in normal demo - camera is very smooth:

60 FPS Video:

https://drive.google.com/file/d/1odqa1XY7qSvji0BMIpvc5sWTWqYPSqnS/view?usp=sharing

Download the video for 60 fps...

IgorHoruzha commented 2 months ago

Download the video for 60 fps...

I see Your point. It seems that, for some reason, the frame rate sometimes changes independently of the metrics. 1 frame per 16ms.

https://github.com/user-attachments/assets/0c7cefea-815b-4de7-a26d-3c9d663b13b5

Could You record one more 60fps video when the lag occurs, then switch to the desktop and move the cursor quickly for a while? I'm interested in determining whether the issue is related to the game or Windows.

kepler2 commented 2 months ago

Could You record one more 60fps video when the lag occurs, then switch to the desktop and move the cursor quickly for a while? I'm interested in determining whether the issue is related to the game or Windows.

It is just in-game when it happens.

The behavior is this:

1 - Play for a while

2 - At a certain point in the game (randomly) - this random stutter / janky camera movement is visible, game becomes choppy for several moments - let's say 15-20 s?

I'm on Windows 10 now I will try to reproduce it on DirectX 11 - same config - VSYNC / GSYNC Enabled - FPS locked to 136, 137 FPS (I have 144hz monitor)

On Vulkan the behavior is different, the game feels "smoother" but I get some additional input lag? I still have to investigate.

Thanks @IgorHoruzha

IgorHoruzha commented 2 months ago

@kepler2

Could You also try to turn off Microsoft Defender real-time protection while playing? image

IgorHoruzha commented 2 months ago

It's possible that an antivirus or another process starts running tasks like virus scanning in the background, which divides resources between that process and the game.

kepler2 commented 2 months ago

Hello @IgorHoruzha

I tried to monitor but the anti-virus is not the issue.

I feel that VULKAN renderer is a little bit smoother vs DX11?