Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Constant GPU load drains my MacBook in the macOS desktop app (~57–62 W) and again in the web UI (~41 W, 18 W with the tab closed) #40581

Openjalonsoluc(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop (macOS), and apps/web

Summary

I really like T3 Code, but I had to stop using it this week because it was eating my battery. It started in the macOS desktop app (Nightly): its GPU process stayed pegged, all 19 GPU cores sat at 99–100%, and my MacBook was pulling roughly 57–62 W. On Nov 19 the battery went from 100% to 3% in about 78 minutes while T3 Code was the app I had in front most of the time, and the next night it went from 100% to 61% in 37 minutes. The battery itself is fine (81% health, 287 cycles, condition Normal). When the app restarted itself for an update, the GPU went straight back to 100%.

As a fallback, I quit the desktop app, ran the server with t3 service and used the web UI in my browser instead. The same thing happened there: with just the T3 Code tab open, the browser's GPU process became the top process on the machine and the laptop was drawing about 41 W on battery. Closing that one tab brought it down to about 18 W within a few seconds, with nothing else changed.

Since it shows up in both the desktop app and a plain browser tab, I don't think it's only the hidden-preview problem from #14730. It looks like the client UI itself keeps the GPU rendering constantly.

Environment

  • MacBook Pro 16" (M2 Pro, 16 GB), macOS 27.2.1 (26B131), model Mac14,10
  • T3 Code Nightly 0.1.11-nightly.20261119.4954 (both the desktop app and the t3 service were on this build)
  • Browser for the fallback: Zen (Firefox-based) 1.24.1b (build ID 20261106124806)
  • Server for the fallback: t3 service install, launchd agent com.t3tools.t3code.service, listening on port 3773, with the relay connection on (nothing else paired to it). The web UI was opened at http://localhost:3773 and signed in with a pairing link.
  • Display: happens both on the built-in display alone and with an external monitor plugged in

Steps to reproduce

Desktop app:

  1. Open the T3 Code Nightly desktop app on macOS and leave it in front showing the normal UI.
  2. On battery, watch power draw and GPU usage for a few minutes.

Browser (the fallback):

  1. Quit the desktop app completely.
  2. Run t3 service install and confirm the server is up on port 3773.
  3. Open the web UI in Zen from the pairing link and leave the tab open and in front, just showing the normal UI.
  4. On battery, watch power draw and GPU usage for a minute, then close only the T3 Code tab and watch again.

Expected behavior

With T3 Code open and nothing much happening, it should cost about as much as any other app or web tab. The GPU should be close to idle, and closing it shouldn't change the draw much.

Actual behavior

Desktop app (measured around 01:20–01:45 on Nov 20, Chile time, on battery):

  • All 19 GPU cores at 99–100% device utilization, with about 6 GB of memory allocated to the GPU.
  • The app's GPU process (T3 Code (Nightly) Helper --type=gpu-process) was using about 78% of the GPU on its own, plus roughly 50–54% CPU.
  • Its renderer was at about 23–25% CPU while I wasn't doing anything in the app.
  • WindowServer was using another ~17% of the GPU and ~55% CPU, which looks like it's just compositing the frames T3 Code keeps producing.
  • The machine was drawing roughly 57–62 W the whole time.
  • The battery log shows two drops at that same ~59 W rate: 100% to 3% in 78 minutes on Nov 19 (14:37–15:55), with T3 Code as my main foreground app, and 100% to 61% in 37 minutes on Nov 20 (00:48–01:25) with it running.
  • The app auto-restarted for an update at 01:23 and the GPU went straight back to 100% right after launch.
  • There was a preview partition (t3code-preview-… under t3code-v2/Partitions/) that was updated at 01:24, right while this was happening, so part of it may be what #14730 describes.

Browser: with the T3 Code tab open, the GPU sat at 74%, Zen's GPU helper was the top process at 87% CPU, WindowServer was at 74% CPU, and the machine was drawing about 41 W on battery (macOS estimated 3:43 left at 94%). As soon as I closed the tab, the draw dropped to 17.8 W and stayed there across three samples, and Zen's GPU helper fell out of the top processes.

Browser measurements

The desktop-app numbers above come from the night of Nov 19–20; I didn't keep a full table for them. The browser readings below are all from Nov 20, on battery, same browser session, same other tabs and apps. Power is InstantAmperage × Voltage from ioreg -rn AppleSmartBattery, GPU is Device Utilization % from ioreg -r -c IOAccelerator, CPU is from ps -Ao pid,pcpu,comm -r.

T3 Code tab openT3 Code tab closed
System power draw~41.2 W (3,458 mA at 11.906 V)17.8 W (3 samples, 5 s apart)
GPU device utilization74%48%, 42%, 59%
Zen GPU Helper CPU87.0% (top process)not in the top 7
WindowServer CPU74.3%41.8%
Zen content process (plugin-container) CPU23.2%12.4%
Zen main process CPU17.8%10.0%

Top processes with the tab open:

  PID  %CPU %MEM COMM
 2607  87.0  0.7 /Applications/Zen.app/Contents/MacOS/gpu-helper.app/Contents/MacOS/Zen GPU Helper
  631  74.3  0.7 /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer
64188  23.2  1.8 /Applications/Zen.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container
 2367  17.8  3.0 /Applications/Zen.app/Contents/MacOS/zen
  828   7.3  0.1 /usr/sbin/coreaudiod

And after closing just that tab:

  PID  %CPU COMM
  631  41.8 /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer
16885  12.4 /Applications/Zen.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container
 2367  10.0 /Applications/Zen.app/Contents/MacOS/zen
  828   7.0 /usr/sbin/coreaudiod

What I ruled out

  • It isn't only the desktop app. It happened again in the browser, and the desktop app wasn't running at all during those measurements. The t3 service was still installed and idle, so the 18 W reading includes the server running in the background.
  • It isn't another tab. I closed only the T3 Code tab. All my other Zen tabs stayed open, and the drop happened right away.
  • It isn't audio. Something was playing audio in both readings (coreaudiod at ~7% before and after), so whatever that was, it didn't change between the two.
  • It isn't the rest of the system. The 18 W reading already includes my other apps and the Claude desktop app, which I'd opened in the meantime. For full transparency: the Mac had been up for about 5.5 days with 15 of 16 GB of RAM in use and some swapping, and Low Power Mode was off. That's the same baseline in every reading, though, and it doesn't explain the GPU going from busy to calm the moment T3 Code closes.
  • It isn't the battery. Health is 81% (7,000 of 8,694 mAh design capacity), 287 cycles, condition Normal.

Impact

Major degradation or frequent failure. On a laptop it's basically unusable on battery: with the desktop app I went from full to 3% in under an hour and a half, and the browser fallback at ~41 W isn't much better.

Workaround

I switched to Claude Code for now and uninstalled the service with t3 service uninstall. My threads and settings are still there, so I'm happy to reinstall to test a fix.

Happy to help

If it's useful, I can reinstall a newer nightly and re-measure the same way, record a performance trace from the desktop app or a Firefox Profiler capture (Zen supports it) of the T3 tab, try the same thing in Safari or Chrome to see whether it's browser-specific, or turn on reduced motion to see whether an animation is keeping it busy. Just tell me which would help most.

  1. tanstack-source added labelsbug

  2. @jalonsoluc Could you record a 10–15 second Firefox Profiler capture (the "Graphics" preset) of the T3 Code tab while it sits idle and uses the GPU, share the link, and include a screenshot of what the tab was showing (which thread, which panels were open, and whether any agent was running)?

  3. juliusmarminge added labelsneeds more info

  4. jalonsoluc(GitHub profile, opens in a new tab)commented

    @juliusmarminge Here's a ~15 s Firefox Profiler capture (Graphics preset) from Zen on macOS (M2 Pro), with the T3 Code tab at localhost:3773 in front and untouched: https://share.firefox.dev/4A60j18

    State during the capture: one thread open, no agent running (last activity was days ago), the project/git dropdown open at the top right, no preview or terminal panels. Screenshot attached (blurred for privacy).

    The load only happens while the T3 tab is the active tab. During the capture Zen was at ~99% CPU and WindowServer at ~60%.

    image image
  5. juliusmarminge removed labelsneeds more info

  6. jalonsoluc(GitHub profile, opens in a new tab)commented

    @juliusmarminge Found it: it was a custom theme I had active, not T3 itself.

    The theme, written by an agent inside T3 Code, ran an infinite background-position animation on 7 stacked full-size layers, so the tab repainted every frame. With a built-in theme, the idle T3 tab went from ~144 refreshes/s to ~3/s (new profile). I'll check the desktop app too and only report back if something's left.

    One suggestion: the theme guide agents read (THEME_GUIDE) doesn't mention animations. A line ruling out continuously repainting ones, or a warning from t3_theme_set, would prevent this. Feel free to close.

Sign in to join this conversation.