t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Desktop v0.0.4: Long startup, multi-second view transitions, and multi-second chat input lag on MacBook Pro M3 Max

Open VargasDevelopment opened this issue 8 months ago • 14 comments

Summary

I'm seeing very poor desktop app performance on v0.0.4 on an Apple Silicon Mac.

Symptoms:

  • App takes a couple of minutes to become usable after launch
  • Switching between views (for example, Settings -> chat thread or chat thread -> Settings) takes several seconds
  • Typing in the chat input has ~2–3 seconds of input lag

This was reproducible enough that I wanted to file it as a focused performance issue rather than a one-off glitch.

Environment

  • T3 Code version: v0.0.4
  • OS: macOS Tahoe 26.3
  • Machine: MacBook Pro M3 Max
  • Memory: 64 GB RAM

Reproduction

  1. Fresh install of v.0.0.4 Desktop from DMG (no prior installs)
  2. Launch the desktop app
  3. Wait for the UI to become interactive
  4. Navigate between views such as: - Settings -> chat thread
    • chat thread -> Settings
  5. Click into the chat input and type

Expected behavior

  • App should become usable shortly after launch
  • View transitions should feel effectively immediate / near-instant
  • Chat input should respond without visible typing delay

Actual behavior

  • Initial startup takes minutes
  • View transitions take several seconds
  • Chat input has ~2–3 seconds of lag before text appears

Resource observations

I checked Activity Monitor while this was happening and did not observe obviously significant resource usage, which made the slowdown feel a bit surprising.

Additional diagnostics

  • Fresh install or upgrade?: Fresh isntall
  • Reproducible on every launch?: yes
  • Existing chats/config present?: Not initially, then after re-install yes
  • Approximate cold start time to usable UI: ~1 minute
  • Approximate delay when switching views: 10-15 seconds
  • Approximate input lag in chat box: ~5 seconds

Notes

  • This was severe enough to make the app feel difficult to use in its current state on this machine
  • I can provide a screen recording or additional diagnostics if helpful

VargasDevelopment avatar Mar 07 '26 22:03 VargasDevelopment

@VargasDevelopment, i am having a look at this. Went through the code and found some areas that caused this. i do not have a mac so i cannot test on mac env.

chuks-qua avatar Mar 08 '26 05:03 chuks-qua

@VargasDevelopment run this pr and tell me if it resolves ur issue #497

chuks-qua avatar Mar 08 '26 06:03 chuks-qua

@chuks-qua This resolved my performance issues! Great work! I'll leave a comment on your PR as well. I appreciate it!

VargasDevelopment avatar Mar 08 '26 14:03 VargasDevelopment

I'm glad I was able to help!

chuks-qua avatar Mar 08 '26 16:03 chuks-qua

Can confirm the same issues on M2 Pro.

@t3dotgg

TheCrazyLex avatar Mar 09 '26 00:03 TheCrazyLex

Same here on M4.

marcos-vinicius-mafei avatar Mar 09 '26 01:03 marcos-vinicius-mafei

Same on M4 Max

tommaay avatar Mar 09 '26 04:03 tommaay

Can confirm this on version 0.0.8 on M4 Pro

itsyaasir avatar Mar 09 '26 06:03 itsyaasir

@itsyaasir, waiting on approval from julius before merging the fix.

chuks-qua avatar Mar 09 '26 06:03 chuks-qua

Per this thread: https://x.com/i/status/2030915679654703565

Some of the people suffering from performance issues may be due to people running x64 builds rather than arm64.

hwanseoc avatar Mar 09 '26 10:03 hwanseoc

Per this thread: https://x.com/i/status/2030915679654703565

Some of the people suffering from performance issues may be due to people running x64 builds rather than arm64.

Great catch! I overlooked this initially, but after double-checking my downloads, I realized I had installed the x64 build rather than arm64.

I just installed the latest arm64 build (v0.0.9) and I’m no longer seeing the severe performance issues I originally reported.

It’s also worth noting that @chuks-qua’s PR appeared to fix the issue for me as well, but that is likely because I built and ran it as arm64 during testing.

So at this point, it seems likely that the main issue on my machine was running the wrong CPU architecture rather than the app itself broadly. Given that, I’m okay with closing this if maintainers think the root cause is understood, though it may still be useful to keep open if there’s a discoverability / distribution issue causing Apple Silicon users to end up on x64 builds.

VargasDevelopment avatar Mar 09 '26 13:03 VargasDevelopment

Yeah really looks like we are just a bunch of people who installed the x64 version by mistake

TheCrazyLex avatar Mar 09 '26 14:03 TheCrazyLex

Theo has merged #641 , should be fixed now after update

hwanseoc avatar Mar 09 '26 22:03 hwanseoc

Closing since perf enhancements got merged, and root cause (incorrect architecture download) was identified. Thanks all

VargasDevelopment avatar Mar 10 '26 02:03 VargasDevelopment