Giter Site home page Giter Site logo

Performance issues about softx HOT 6 CLOSED

discordstyles avatar discordstyles commented on June 19, 2024
Performance issues

from softx.

Comments (6)

Gibbu avatar Gibbu commented on June 19, 2024

That is because of the use of backdrop-filter. Nothing I can do about it other than completely removing it, which I am not going to do.

from softx.

Chiggy-Playz avatar Chiggy-Playz commented on June 19, 2024

Could it be a toggle which could be on by default just like glow? I really like the theme but would prefer it to be lag free 😅

from softx.

Sly0511 avatar Sly0511 commented on June 19, 2024

May I give some suggestions to workaround this issue

It is obviously caused by the animation making a 60 fps for 0.2 seconds of that backdrop blur, making it a huge mess performance wise.

I have 2 suggestions for this
First option, in case of backdrop and settings I think a blur filter can be instantly applied to the layer that hold everything but backdrop and settings layer, which means chat, server, members etc... blurring globally that part of the UI without tying it to the class that has the animation with a filter rather than using a backdrop-filter for settings and backdrop tabs

My other option which I am unsure if it would actually fix, but would be adding to from and to in the keyframes of fadeIn with the property of backdrop filter with the value set from the beggining rather than making it compute the blur, this also means the blur won't gradually come in which tbh is what causes the issues anyways, so it being gone seems fine to me~~

@-webkit-keyframes fadeIn {
  from {
    backdrop-filter: blur(var(--blur));
    opacity: 0;
  }
  to {
    backdrop-filter: blur(var(--blur));
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    backdrop-filter: blur(var(--blur));
    opacity: 0;
  }
  to {
    backdrop-filter: blur(var(--blur));
    opacity: 1;
  }
}

im no css pro, these are just suggestions, pardon my ignorance

from softx.

Gibbu avatar Gibbu commented on June 19, 2024

Both would still cause the massive lag. The only fix is if I remove them from the entire theme. Which I will not do.
Make sure you have Hardware Acceleration enabled in Advanced Discord settings.

Could it be a toggle which could be on by default just like glow? I really like the theme but would prefer it to be lag free 😅

Not possible with CSS. You either have it in, or no.

from softx.

Chiggy-Playz avatar Chiggy-Playz commented on June 19, 2024

Not possible with CSS. You either have it in, or no.

Welp. Alright thanks.

from softx.

Chiggy-Playz avatar Chiggy-Playz commented on June 19, 2024

I tried out Sly's CSS snippet and it seems to work! It reduces the lag by a lot.

from softx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.