MCPcopy
hub / github.com/tldraw/tldraw / getSyncFps

Method getSyncFps

packages/sync-core/src/lib/TLSyncClient.ts:864–866  ·  view source on GitHub ↗

Get the target FPS for network operations based on presence mode

()

Source from the content-addressed store, hash-verified

862
863 /** Get the target FPS for network operations based on presence mode */
864 private getSyncFps(): number {
865 return this.presenceMode?.get() === 'solo' ? SOLO_MODE_FPS : COLLABORATIVE_MODE_FPS
866 }
867
868 /**
869 * Applies a 'network' diff to the store this does value-based equality checking so that if the

Callers 1

constructorMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected