Tldraw/packages
David Sheldrick 1951fc0e47
Fix lag while panning + translating at the same time (#3186)
Before

![Kapture 2024-03-18 at 09 42
33](https://github.com/tldraw/tldraw/assets/1242537/d27c5852-9514-4e44-8b75-d2cb2571362a)


After

![Kapture 2024-03-18 at 09 41
27](https://github.com/tldraw/tldraw/assets/1242537/f5cbebfd-a45c-48d9-915b-18823f4555ff)

The probelm was manifesting because our camera updates were not
throttled and our render tick was on a different tick timeline to our
tick manager. Fixing the latter gets rid of the lag without requiring us
to throttle the camera updates.

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [x] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [x] `bugfix` — Bug fix



### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Add a brief release note for your PR here.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-03-18 16:03:44 +00:00
..
assets Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00
editor Fix lag while panning + translating at the same time (#3186) 2024-03-18 16:03:44 +00:00
namespaced-tldraw Remove namespaced-tldraw/tldraw.css (#3068) 2024-03-04 17:13:12 +00:00
state [perf] Reinstate render throttling (#3160) 2024-03-15 16:18:23 +00:00
store Performance improvements (#2977) 2024-03-11 13:17:31 +00:00
tldraw Fix lag while panning + translating at the same time (#3186) 2024-03-18 16:03:44 +00:00
tlschema Remove dependabot config since it only controls version updates? (#3057) 2024-03-04 13:19:51 +00:00
tlsync [sync] allow connections from v4 clients (#3173) 2024-03-16 10:21:37 +00:00
utils Fix lag while panning + translating at the same time (#3186) 2024-03-18 16:03:44 +00:00
validate Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00