• rdri@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    2
    ·
    1 year ago

    You probably missed a part where Chrome, Chromium, and CEF are practically the same thing when it comes to resource consumption. Man, I can’t even make Steam consume less than 1 gb ram at any time anymore, even when minimized. CPU consumption, the amount of processes, loading times are also problematic. I wish companies would rely on a labor of programmers, not just web programmers.

    • Aux@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      1 year ago

      I don’t think that Steam would consume less resources if it wasn’t a web app. Most of the resources usage there comes from crap loads of high quality images. You can’t have hundreds of images in a single window without eating loads of RAM.

      • rdri@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Sorry what? I literally said that it consumes this amount of memory while there is no active windows. You can close them all and it won’t change much.

        Also years ago the website was still filled with images and it didn’t consume that much.

        Also, do you really think high quality images consume more resources? High resolution I can understand, but quality is irrelevant when it comes to ram.

        • Aux@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 year ago

          What do you mean there are no active windows? You can only have no active windows if the app is closed. If you don’t see it on the screen, it doesn’t mean there are no windows or related services running in the background. If you want to free up memory, shut the app down.

          Also part of image quality is its resolution. And image resolution has grown a lot ib the last 10-15 years. Rendered images also went from 8 bit and 256 colours byte arrays to 32 bit byte arrays (already 4x bigger) plus colour correction and all kinds of other meta data stored in memory.

          And then you should keep in mind that Steam main storefront page has hundreds if not thousands images in one place. And they are pre-rendered and cached in memory so that you have nice and smooth experience. People seriously underestimate how many resources are consumed by media. As a software developer I can tell you that you can easily have a few megabytes of code and then hundreds of megabytes of COMPRESSED images, fonts and sounds for a small app. Unpack everything into memory and no wonder modern mobile phones need 16+ gigs of RAM.

          • rdri@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            1 year ago

            You seem to not understand what you are talking about.

            First, it’s possible to have an app active without spending resources on background windows. This process is called “close a window”. If an app has the tray icon available it should be perfectly viable option and, guess what, it works like that with many apps. But no, even the tray menu for Steam is now a damn web-rendered element. Also even in Chromium based browsers, you can have 2 or more windows opened, and when you close one of them you can expect less ram usage than before you closed it. I’ve seen at least one VScodium derived app that completely unloads browser based code when no active windows are visible. You don’t need to be a huge corporation to know how to do it.

            Second, it’s insane to propose that thousands of images from some site (or even from disk cache) are going to be cached into memory immediately upon app launch. You could at least do some research or try Steam app yourself. Want to also tell me how I need thousands of images in my ram even when using Steam small mode?

            Third, you mustn’t tell me what I need to sacrifice to have “nice and smooth experience”. I know enough about code and have seen enough apps to know that you don’t need to require GBs of ram from every user to provide good experience. There are literally web based alternatives to CEF that consume 5x-10x less. And then there are many other options for native code.

            You mention few megabytes of code. Yeah. Problem is, Chromium code is tons more than that. Those are not “small” apps.

              • rdri@lemmy.world
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                edit-2
                1 year ago

                I do. First you talk about how apps’ windows work under desktop environment (ignoring basic UI design logic and good coding practices), then talk about evolution of image media ignoring the fact that it doesn’t really matter considering specifics of Steam website which over the years did not start presenting exponentially bigger amount of images in a single web view, followed by how you presented yourself as a software developer who proposes to momentary unpack hundreds of megabytes of compressed images into memory for whatever reason.

                And do you understand what I’m talking about?

                • Aux@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 year ago

                  No, I don’t understand you at all, sorry. You’re just throwing random words around trying to look smart. Not cool.

                  • rdri@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    1 year ago

                    And what a response should look like for you to call it cool? Do you expect others to blindly accept your point even if it contains lies?

      • Hyperi0n@lemmy.film
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        3
        ·
        1 year ago

        Bullshit. Steam works well when CEF isn’t working right, like no internet connection. Images are still loaded. It’s 100% thier storefront.