Skip to content

revert: bump up the target rate to 120fps (#6868)#6985

Merged
MitjaBezensek merged 1 commit intomainfrom
mitja/revert-120
Oct 22, 2025
Merged

revert: bump up the target rate to 120fps (#6868)#6985
MitjaBezensek merged 1 commit intomainfrom
mitja/revert-120

Conversation

@MitjaBezensek
Copy link
Copy Markdown
Contributor

@MitjaBezensek MitjaBezensek commented Oct 22, 2025

This reverts commit 2e5f9f2.

API changes

  • Revert the 120 fps changes.

Change type

  • bugfix

Test plan

  • Unit tests
  • End to end tests

Release notes

  • Reverted the target frame rate to 60fps.

Note

Standardizes throttling to 60fps (removing custom/120fps logic), updates TLSyncClient scheduling, simplifies FPS debug display, and adjusts the utils API.

  • Utils:
    • Reverts fpsThrottle to fixed 60fps; removes custom FPS support and related state.
    • Updates docs/comments and throttleToNextFrame to reference 60fps.
    • API change: fpsThrottle(fn) no longer accepts getTargetFps.
  • Sync Core (packages/sync-core/src/lib/TLSyncClient.ts):
    • Removes dynamic sync FPS logic (SOLO_MODE_FPS, COLLABORATIVE_MODE_FPS, getSyncFps).
    • flushPendingPushRequests and scheduleRebase now use fpsThrottle() without FPS getter.
  • UI (packages/tldraw/src/lib/ui/components/DefaultDebugPanel.tsx):
    • Simplifies FPS output to FPS <current> (removes max FPS display).

Written by Cursor Bugbot for commit c9995c0. This will update automatically on new commits. Configure here.

@huppy-bot huppy-bot bot added the bugfix Bug fix label Oct 22, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
analytics Building Building Preview Oct 22, 2025 5:29pm
examples Ready Ready Preview Oct 22, 2025 5:29pm
4 Skipped Deployments
Project Deployment Preview Updated (UTC)
chat-template Ignored Ignored Oct 22, 2025 5:29pm
tldraw-docs Ignored Ignored Oct 22, 2025 5:29pm
tldraw-shader Ignored Ignored Oct 22, 2025 5:29pm
workflow-template Ignored Ignored Oct 22, 2025 5:29pm

@huppy-bot
Copy link
Copy Markdown
Contributor

huppy-bot bot commented Oct 22, 2025

API Changes Check Passed

Great! The PR description now includes the required "### API changes" section. This helps reviewers and SDK users understand the impact of your changes.

@MitjaBezensek MitjaBezensek added the dotcom-hotfix-please ⚙️ Triggers tldraw.com production deploy after merge label Oct 22, 2025
@MitjaBezensek MitjaBezensek added this pull request to the merge queue Oct 22, 2025
Merged via the queue into main with commit bc4067f Oct 22, 2025
31 checks passed
@MitjaBezensek MitjaBezensek deleted the mitja/revert-120 branch October 22, 2025 17:52
huppy-bot bot pushed a commit that referenced this pull request Oct 22, 2025
This reverts commit 2e5f9f2.

### API changes
- Revert the 120 fps changes.

### Change type

- [x] `bugfix`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Standardizes throttling to 60fps (removing custom/120fps logic),
updates TLSyncClient scheduling, simplifies FPS debug display, and
adjusts the utils API.
> 
> - **Utils**:
> - Reverts `fpsThrottle` to fixed 60fps; removes custom FPS support and
related state.
> - Updates docs/comments and `throttleToNextFrame` to reference 60fps.
>   - API change: `fpsThrottle(fn)` no longer accepts `getTargetFps`.
> - **Sync Core** (`packages/sync-core/src/lib/TLSyncClient.ts`):
> - Removes dynamic sync FPS logic (`SOLO_MODE_FPS`,
`COLLABORATIVE_MODE_FPS`, `getSyncFps`).
> - `flushPendingPushRequests` and `scheduleRebase` now use
`fpsThrottle()` without FPS getter.
> - **UI**
(`packages/tldraw/src/lib/ui/components/DefaultDebugPanel.tsx`):
> - Simplifies FPS output to `FPS <current>` (removes max FPS display).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c9995c0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
huppy-bot bot added a commit that referenced this pull request Oct 22, 2025
This is an automated hotfix for dotcom deployment.

Original PR: #6985
Original Author: @MitjaBezensek
MitjaBezensek added a commit that referenced this pull request Oct 24, 2025
mimecuvalo added a commit that referenced this pull request Dec 17, 2025
@steveruizok steveruizok added sdk Affects the tldraw sdk api API change labels Jan 2, 2026
@steveruizok steveruizok changed the title Revert "Bump up the target rate to 120fps. (#6868)" revert: bump up the target rate to 120fps (#6868) Jan 2, 2026
NathanFlurry pushed a commit to rivet-dev/tldraw that referenced this pull request Jan 18, 2026
This reverts commit 2e5f9f2.

### API changes
- Revert the 120 fps changes.

### Change type

- [x] `bugfix`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Standardizes throttling to 60fps (removing custom/120fps logic),
updates TLSyncClient scheduling, simplifies FPS debug display, and
adjusts the utils API.
> 
> - **Utils**:
> - Reverts `fpsThrottle` to fixed 60fps; removes custom FPS support and
related state.
> - Updates docs/comments and `throttleToNextFrame` to reference 60fps.
>   - API change: `fpsThrottle(fn)` no longer accepts `getTargetFps`.
> - **Sync Core** (`packages/sync-core/src/lib/TLSyncClient.ts`):
> - Removes dynamic sync FPS logic (`SOLO_MODE_FPS`,
`COLLABORATIVE_MODE_FPS`, `getSyncFps`).
> - `flushPendingPushRequests` and `scheduleRebase` now use
`fpsThrottle()` without FPS getter.
> - **UI**
(`packages/tldraw/src/lib/ui/components/DefaultDebugPanel.tsx`):
> - Simplifies FPS output to `FPS <current>` (removes max FPS display).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c9995c0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api API change bugfix Bug fix dotcom-hotfix-please ⚙️ Triggers tldraw.com production deploy after merge sdk Affects the tldraw sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants