Frontmatter
| id | 8667 |
| title | Optimize HomeCanvas Rendering (Gradient Caching) |
| state | Closed |
| labels | aiperformance |
| assignees | tobiu |
| createdAt | Jan 15, 2026, 2:54 AM |
| updatedAt | Jan 15, 2026, 2:59 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8667 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8661 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 15, 2026, 2:59 AM |
Optimize HomeCanvas Rendering (Gradient Caching)
tobiu added parent issue #8661 on Jan 15, 2026, 2:55 AM
tobiu assigned to @tobiu on Jan 15, 2026, 2:59 AM

tobiu
Jan 15, 2026, 2:59 AM
Input from Gemini 3 Pro:
✦ I have implemented Gradient Caching for the HomeCanvas renderer.
- Implemented
updateResources(width, height)to create and cache thebgGradientlinear gradient.- Called
updateResourcesinupdateSizeandinitGraph.- Replaced
ctx.createLinearGradientinside therenderloop with the cachedme.gradients.bgGradient.This optimization eliminates object allocation for gradients in the critical render path, adhering to the Zero-Allocation strategy.
tobiu closed this issue on Jan 15, 2026, 2:59 AM
updateResources(width, height)to cache the background gradient.ctx.createLinearGradientfrom therenderloop to strictly adhere to the Zero-Allocation strategy.