Speed up detecting of available inputs. #3

Open
opened 9 months ago by Okxa · 0 comments
Okxa commented 9 months ago
Owner

Currently to get possible inputs of a display we loop through ALL capabilities of a monitor, which is very slow. This is done to get the display names of each input (VGA-1 etc.).

It only matters when adding monitors to the main list, so it is not hindering the switching process, but it would be good to have it be more performant.

The scanning happens in DDCManager::getMonitorInputsByIndex, where we loop through capabilities->vcp_codes to find the code 0x60 (input).

Currently to get possible inputs of a display we loop through ALL capabilities of a monitor, which is very slow. This is done to get the display names of each input (VGA-1 etc.). It only matters when adding monitors to the main list, so it is not hindering the switching process, but it would be good to have it be more performant. The scanning happens in `DDCManager::getMonitorInputsByIndex`, where we loop through `capabilities->vcp_codes` to find the code `0x60` (input).
Okxa added the
Kind: Enhancement
Priority: High
labels 9 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Okxa/qddcswitch#3
Loading…
There is no content yet.