Skip to content

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented Dec 24, 2025

Summary

  • Increases MAX_BUFFER_DIM from 4096 to 7232 pixels
  • Found through binary search testing that 7232 is the maximum safe value before the Y=0 rendering bug appears
  • Provides sharper text rendering (~3616px CSS width at DPR 2 before scaling)

Background

The previous PR (#47) set a conservative 4096px limit. Through binary search testing, we found:

  • 7232: works ✓
  • 7234: fails (content at Y=0 disappears)

The value doesn't align with typical GPU limits (4096, 8192, 16384), suggesting a driver-specific bug on macOS Apple Silicon rather than a documented limit.

Test plan

  • Test on macOS Apple Silicon in fullscreen mode
  • Verify flamegraph top frames remain visible at large viewport widths
  • Check text sharpness compared to 4096 limit

🤖 Generated with Claude Code

Binary search testing found 7232px is the maximum safe buffer dimension
before the Y=0 rendering bug appears on macOS Apple Silicon.

This allows ~3616px CSS width at DPR 2 before scaling kicks in,
providing sharper text rendering on most displays.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mcollina mcollina merged commit bb2b689 into main Dec 24, 2025
79 of 82 checks passed
@mcollina mcollina deleted the fix/increase-buffer-cap-7232 branch December 24, 2025 13:19
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