Astromations / Hazy

A translucent spicetify theme
262 stars 10 forks source link

high CPU/GPU usage #50

Closed grewanhassan closed 9 months ago

grewanhassan commented 10 months ago

I noticed a high CPU/GPU usage. I found out that the reason was probably the progress bar of Galaxy. But just commenting out the future color of the progress bar fixed the problem :)

/* smooth progress bar from Galaxy */
/*.x-progressBar-fillColor {
    transition: transform 1s linear;
}
.progress-bar__slider {
    transition: left 1s linear;
}
.playback-progressbar-isInteractive .DuvrswZugGajIFNXObAr .x-progressBar-fillColor,
.playback-progressbar-isInteractive .DuvrswZugGajIFNXObAr .progress-bar__slider {
    transition: none;
}

.ChipClearComponent-chipClear-useBrowserDefaultFocusStyle,
.ChipInnerComponent,
.ChipComponent-checkbox-chip-useBrowserDefaultFocusStyle > span {
  border-radius: var(--button-border) !important;
}

.x-progressBar-sliderArea {
  box-shadow: -2px 1px 7px 1px rgb(0 0 0 / 14%)
}

.main-addButton-active,
.control-button-heart {
  transition: filter 0.25s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.main-addButton-button[aria-label="Remove from Your Library"]:hover {
  filter: drop-shadow(0 0 6px var(--spice-button));
}

.main-addButton-button[aria-label="Save to Your Library"]:hover {
  filter: drop-shadow(0 0 2px rgba(var(--spice-rgb-selected-row),.7));
}*/
Astromations commented 9 months ago

Really? Interesting. There's a fair number of issues complaining about high GPU usage. I'll remove this line from the main build until I can find a way to reimplement the smooth playbar without causing system strain. Thank you.