• stingpie@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    13 hours ago

    Instead of spinners, you should use progress bars. When the endpoint of a process is unknown, you should just have a ticker that displays an increasing number. In codex, for example, just show me the number of tokens read or generated so far. It gives me feedback that the process hasn’t frozen, and it provides useful information. What an easy and cheap solution!

    • optional@sh.itjust.works
      link
      fedilink
      arrow-up
      30
      ·
      16 hours ago

      Not vibecoded, completely vibed:

      while(working) {
         chatgpt.prompt("Please generate an image similar to the current spinner image, but rotated a slight bit more to the right.");
      }
      

      Their fix will probably be, adding “Give a quick answer, don’t think too hard” to the prompt.

    • chilicheeselies@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      17 hours ago

      I use an agent at work, and it added a little animated icon for me to a page. Seemed just fine. My colleague removed it a week later because he found it was causing a huge performance lag on some of the pages he maintains.

      It used a css key frame animation. Seemed fine, but apparently was not.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      16 hours ago

      The Codex TUI has a similar bug where a useless animation costs way too many resources, but it’s definitely a different area of code. It was originally redrawing the entire TUI screen every 32ms. That one has a Codex-created fix, but user PR’s aren’t considered anymore. It was originally memory leaking 20GB (!) over 2-3 days

  • Rentlar@lemmy.ca
    link
    fedilink
    arrow-up
    12
    ·
    16 hours ago

    We should go back to the 8 frame wristwatch from the old Mac days. 🕛🕑🕒🕓🕕🕖🕘🕚 perhaps that will save resources.

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    14
    ·
    17 hours ago

    Pretty sure I’ve seen this exact problem in many versions of web browser with their loading throbbers.

    I still wouldn’t call them “useless”. The visual feedback that something is happening is useful.

      • RedstoneValley@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        16 hours ago

        Especially if you could use the space to display what the model is actually doing, like the thinking process or other current model states (prefill, decode, idly waiting for a slot…)

      • optional@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        16 hours ago

        Wrong. If more processing power is used for displaying the spinner, then the actual task will take longer, thus the spinner will be displayed for a longer time, so the spinner becomes even more useful.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    All apps developed by AI use useless, annoying, battery draining animations. That’s why you have to close them once you’re done if you want any battery life at all. The Suno app will chew through 50% of my battery in an hour.