Skip to content

Conversation

@mcollina
Copy link
Member

Summary

  • Cap WebGL buffer size to 4096px to prevent GPU rendering issues with very large framebuffers

Problem

Some systems exhibit rendering artifacts where content at Y=0 becomes invisible when the canvas buffer exceeds certain dimensions, even when within WebGL's reported MAX_TEXTURE_SIZE limits.

Solution

Cap the WebGL buffer dimensions to 4096px maximum. The CSS display size remains unchanged - the buffer is simply rendered at lower resolution when the viewport is very large, then CSS-scaled to fill the container.

Test plan

  • All 280 tests pass
  • Manually verified fix resolves the issue at large viewport widths

🤖 Generated with Claude Code

Cap WebGL buffer size to 4096px to prevent GPU rendering issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mcollina mcollina requested a review from Qard December 24, 2025 10:37
@mcollina mcollina closed this Dec 24, 2025
@mcollina mcollina reopened this Dec 24, 2025
@Qard Qard merged commit d21e16c into main Dec 24, 2025
74 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants