Frontmatter
| id | 8693 |
| title | Docs: Clarify requestAnimationFrame usage in Canvas guides |
| state | Closed |
| labels | documentationai |
| assignees | tobiu |
| createdAt | Jan 15, 2026, 11:06 PM |
| updatedAt | Jan 15, 2026, 11:14 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8693 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 15, 2026, 11:14 PM |
Docs: Clarify requestAnimationFrame usage in Canvas guides
tobiu assigned to @tobiu on Jan 15, 2026, 11:13 PM

tobiu
Jan 15, 2026, 11:13 PM
Input from Gemini 3 Pro:
✦ I have updated
learn/guides/advanced/CanvasArchitecture.mdandlearn/guides/advanced/NeuralTimeline.mdto clarify the availability ofrequestAnimationFrame.
- CanvasArchitecture.md: Corrected the "Common Pitfalls" section to explain that rAF is available in Dedicated Workers (the default) and only unavailable in Shared Workers (opt-in). Added a code example for feature detection.
- NeuralTimeline.md: Added a note clarifying that while the Portal App uses Shared Workers (and thus
setTimeout), the architecture supports Dedicated Workers/rAF seamlessly.Verified and pushed to
dev.
tobiu closed this issue on Jan 15, 2026, 11:14 PM
Update
CanvasArchitecture.md,NeuralSwarm.md, andNeuralTimeline.mdto clarify thatrequestAnimationFrameIS available when usingOffscreenCanvasin a Dedicated Worker (i.e., whenNeo.config.useSharedWorkers = false).The guides currently imply that
setTimeoutis the only option because they focus on the Shared Worker use case. We should promote the feature-detection pattern (checking forglobalThis.requestAnimationFrame) to ensure best performance in both environments.