You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -311,9 +311,20 @@ Each example demonstrates different aspects of snaproll:
311
311
- Performance optimization techniques
312
312
- Multiple subscription management
313
313
314
+
## Timing precision and HTTP headers
315
+
316
+
For higher timer precision in simulation or measurement workloads, configure the top-level response with:
317
+
318
+
```http
319
+
Cross-Origin-Opener-Policy: same-origin
320
+
Cross-Origin-Embedder-Policy: require-corp
321
+
```
322
+
323
+
`Cross-Origin-Embedder-Policy: credentialless` is a possible alternative in some deployments, but support is not universal (notably unavailable in Safari and Safari on iOS).
324
+
314
325
## API
315
326
316
-
### class Snaproll [↗](src/snaproll.ts#L459-L699'Snaproll')
327
+
### class Snaproll [↗](src/snaproll.ts#L460-L700'Snaproll')
317
328
318
329
Fixed-timestep animation loop with independent draw and update rates.
319
330
@@ -493,7 +504,7 @@ Cancels any previous ongoing operation before starting a new one. Results are de
0 commit comments