GUI: The curser is heavily lagging if GSync is set to windowed and full screen mode #94493

Open
opened 2021-12-30 11:43:53 +01:00 by Raimund Klink · 16 comments
Contributor

System Information
Operating system: Windows-11-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.29

Blender Version
Broken: version: Blender 2.79b up to Blender 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557

Short description of error
Everything is as expected if the mode is set to "Fullscreen only" (the default)
But as soon as you set to it to "Window- and Fullscreen mode" the mouse curser will lag heavily.
2021-12-30 11_39_43-aid_4768_compatible.png (707×588).png

Exact steps for others to reproduce the error

  1. Enable GSync
  2. Set it to "Enable for windowed and full screen mode"
  3. Save
  4. Open Blender and move the curser

Workaround
Just set it back to full screen mode only.
OR
If you go to nVidia Control Panel > Manage 3d Settings > Program Settings.

Add Blender under Select Program To Customize. Changing to the following settings can fix it:

Monitor Technology: Fixed Refresh
Preferred Refresh Rate: Application-controlled

Desired behavior
A fluid curser on the screen even with "windowed and full screen mode" enabled

**System Information** Operating system: Windows-11-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.29 **Blender Version** Broken: version: Blender 2.79b up to Blender 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` **Short description of error** Everything is as expected if the mode is set to "Fullscreen only" (the default) But as soon as you set to it to "Window- and Fullscreen mode" the mouse curser will lag heavily. ![2021-12-30 11_39_43-aid_4768_compatible.png (707×588).png](https://archive.blender.org/developer/F12781718/2021-12-30_11_39_43-aid_4768_compatible.png__707_588_.png) **Exact steps for others to reproduce the error** 1. Enable GSync 2. Set it to "Enable for windowed and full screen mode" 3. Save 4. Open Blender and move the curser **Workaround** Just set it back to full screen mode only. OR If you go to nVidia Control Panel > Manage 3d Settings > Program Settings. Add Blender under Select Program To Customize. Changing to the following settings can fix it: Monitor Technology: Fixed Refresh Preferred Refresh Rate: Application-controlled **Desired behavior** A fluid curser on the screen even with "windowed and full screen mode" enabled
Author
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Raimund Klink changed title from UI: The curser is heavily lagging if GSync is set to windowed and full screen mode to GUI: The curser is heavily lagging if GSync is set to windowed and full screen mode 2021-12-30 11:49:51 +01:00

Added subscriber: @chemicalcrux

Added subscriber: @chemicalcrux

Just copying some stuff from the chat here:

This has been an issue for other programs in the past; see https://github.com/microsoft/terminal/issues/649 for a discussion about Windows Terminal.

If the window is updating (e.g. if you're rotating the view around), then the mouse looks fine, since the display is refreshing rapidly.

Just copying some stuff from the chat here: This has been an issue for other programs in the past; see https://github.com/microsoft/terminal/issues/649 for a discussion about Windows Terminal. If the window is updating (e.g. if you're rotating the view around), then the mouse looks fine, since the display is refreshing rapidly.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Hi @Raimund58 , are you using High refresh rate monitor (as said in the bug report )?
I read few comment from that report and issue maybe same as yours.
Are you experiencing this only in Blender?

Hi @Raimund58 , are you using High refresh rate monitor (as said in the [bug report ](https://github.com/microsoft/terminal/issues/649))? I read few comment from that report and issue maybe same as yours. Are you experiencing this only in Blender?
Author
Contributor

Yes, I use the 144 hz mode. The monitor is the ASUS ROG Swift PG278QR 68,68 cm (27 Zoll).
I only experienced it in Blender so far. But it might happen in other programs as well.

Yes, I use the 144 hz mode. The monitor is the ASUS ROG Swift PG278QR 68,68 cm (27 Zoll). I only experienced it in Blender so far. But it might happen in other programs as well.
Member

Ok, thanks for the information :)

But it might happen in other programs as well.

Please update here if you notice this issue in other software.
I'm not sure how to triage this report further. Will ask someone if they have similar setup to test.

Ok, thanks for the information :) > But it might happen in other programs as well. Please update here if you notice this issue in other software. I'm not sure how to triage this report further. Will ask someone if they have similar setup to test.
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm the issue on Windows 11 with a RTX 3060.
If I enable G-Sync for windowed applications, the "update rate" of the cursor is reduced while Blender is open and the active/main application. (For my system, the update rate of the cursor is reduced to 48 hertz. Presumably this value is picked based on the G-Sync capabilities described by the monitor)

I believe this might be happening as G-Sync adapts the refresh rate of the monitor to the frame rate of the application open. Because Blender doesn't re-draw the user interface unless it needs too, the frame rate of Blender is considered to be "quite low" and thus the GPU and monitor lowers it's refresh rate which results in the "laggy mouse cursor".
As for why Windows isn't doing something like "We're moving the mouse, increase the frame rate to the monitors maximum", I don't know. I don't know enough about how the Nvidia drivers with G-Sync interact with Blender and the Windows compositor.

Could this issue be fixed in Blender? Yes, force constant redraws of the UI.
Could this issue be fixed within Blender without forcing constant redraws of the UI? I have no idea. This will need to be looked at by someone else.

Does this issue happen with G-Sync on Linux? No, but this is because on Linux you can't enable G-Sync for windowed applications.

I can confirm the issue on Windows 11 with a RTX 3060. If I enable G-Sync for windowed applications, the "update rate" of the cursor is reduced while Blender is open and the active/main application. (For my system, the update rate of the cursor is reduced to 48 hertz. Presumably this value is picked based on the G-Sync capabilities described by the monitor) I believe this might be happening as G-Sync adapts the refresh rate of the monitor to the frame rate of the application open. Because Blender doesn't re-draw the user interface unless it needs too, the frame rate of Blender is considered to be "quite low" and thus the GPU and monitor lowers it's refresh rate which results in the "laggy mouse cursor". As for why Windows isn't doing something like "We're moving the mouse, increase the frame rate to the monitors maximum", I don't know. I don't know enough about how the Nvidia drivers with G-Sync interact with Blender and the Windows compositor. Could this issue be fixed in Blender? Yes, force constant redraws of the UI. Could this issue be fixed within Blender without forcing constant redraws of the UI? I have no idea. This will need to be looked at by someone else. Does this issue happen with G-Sync on Linux? No, but this is because on Linux you can't enable G-Sync for windowed applications.

Added subscriber: @Gheromo

Added subscriber: @Gheromo

This comment was removed by @Gheromo

*This comment was removed by @Gheromo*
Author
Contributor

Update:
It is also happening in (Autodesk) AutoCAD Plant3D whenever I move the mouse to another interface (inside of AutoCAD).
I had to disable GSync completely to work around this bug.

Update: It is also happening in (Autodesk) AutoCAD Plant3D whenever I move the mouse to another interface (inside of AutoCAD). I had to disable GSync completely to work around this bug.

Added subscriber: @TurkeyMan

Added subscriber: @TurkeyMan

+1
2080Ti, 165hz, GSYNC enabled; Blender is unusable. Disable gsync, it's fine.
Windows 11, all drivers up to date, etc.
Never seen this before on any other software. There must be some way other applications are addressing this...

+1 2080Ti, 165hz, GSYNC enabled; Blender is unusable. Disable gsync, it's fine. Windows 11, all drivers up to date, etc. Never seen this before on any other software. There must be some way other applications are addressing this...
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:22:36 +01:00

I find it interesting that the solution to this issue exists online. Sadly I cannot find the original link. I have confirmed it works with blender and other programs that misbehave with gsync.

They are all windowed applications and this solution has worked every time with gsync ENABLED.

This is NOT a windows issue. It's poor driver implementation and configuration. Initialization values are set incorrectly by the geforce drivers by default.

Solution:

  1. Nvidia Control Panel > 3D settings > Program Settings > Add: blender, then scroll down the menu and change Framerate Technology to Fixed Refresh Rate and Preferred Refresh Rate to Maximum Available.

  2. Close Blender.

  3. Revert the previously changed options for blender in nvidia control panel.

  4. Open Blender. It now works lag free with gsync.

Nvidia is at fault here. They've been getting away with not fixing their drivers because people have been disabling gsync and assuming it's windows. The drivers are simply initializing settings incorrectly.

I find it interesting that the solution to this issue exists online. Sadly I cannot find the original link. I have confirmed it works with blender and other programs that misbehave with gsync. They are all windowed applications and this solution has worked every time with gsync ENABLED. This is NOT a windows issue. It's poor driver implementation and configuration. Initialization values are set incorrectly by the geforce drivers by default. Solution: 1. Nvidia Control Panel > 3D settings > Program Settings > Add: blender, then scroll down the menu and change Framerate Technology to Fixed Refresh Rate and Preferred Refresh Rate to Maximum Available. 2. Close Blender. 3. Revert the previously changed options for blender in nvidia control panel. 4. Open Blender. It now works lag free with gsync. Nvidia is at fault here. They've been getting away with not fixing their drivers because people have been disabling gsync and assuming it's windows. The drivers are simply initializing settings incorrectly.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#94493
No description provided.