mirror of
https://github.com/hyprwm/aquamarine.git
synced 2026-05-06 01:48:08 +02:00
AQ_FAST_MODESET
This commit is contained in:
parent
c320e68d44
commit
0bc0e6acdb
2 changed files with 8 additions and 5 deletions
|
|
@ -8,6 +8,7 @@ Unless specified otherwise, a variable is enabled if and only if it's set to `1`
|
|||
`AQ_NO_ATOMIC` -> Disables drm atomic modesetting
|
||||
`AQ_MGPU_NO_EXPLICIT` -> Disables explicit syncing on mgpu buffers
|
||||
`AQ_NO_MODIFIERS` -> Disables modifiers for DRM buffers
|
||||
`AQ_FAST_MODESET` -> Skips modeset if mode is unchanged
|
||||
|
||||
### Debugging
|
||||
|
||||
|
|
|
|||
|
|
@ -187,11 +187,13 @@ void Aquamarine::CDRMAtomicRequest::addConnectorModeset(Hyprutils::Memory::CShar
|
|||
return;
|
||||
}
|
||||
|
||||
drmModeModeInfo* currentMode = connector->getCurrentMode();
|
||||
bool modeDiffers = true;
|
||||
if (currentMode) {
|
||||
modeDiffers = memcmp(currentMode, &data.modeInfo, sizeof(drmModeModeInfo)) != 0;
|
||||
free(currentMode);
|
||||
bool modeDiffers = true;
|
||||
if (envEnabled("AQ_FAST_MODESET")) {
|
||||
drmModeModeInfo* currentMode = connector->getCurrentMode();
|
||||
if (currentMode) {
|
||||
modeDiffers = memcmp(currentMode, &data.modeInfo, sizeof(drmModeModeInfo)) != 0;
|
||||
free(currentMode);
|
||||
}
|
||||
}
|
||||
|
||||
if (modeDiffers) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue