Skip to content

Optimize renderer incremental redraws#512

Merged
emil-e merged 14 commits into
dakra:mainfrom
emil-e:emil-e/render-optimize
Jul 7, 2026
Merged

Optimize renderer incremental redraws#512
emil-e merged 14 commits into
dakra:mainfrom
emil-e:emil-e/render-optimize

Conversation

@emil-e

@emil-e emil-e commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • render directly from libghostty terminal pages instead of maintaining a separate RenderState
  • batch adjacent dirty-row insertions and preserve renderer-owned buffer positions/scrollback accounting
  • resolve styles lazily and keep cursor-only movement updating ghostel--cursor-char-pos
  • update render architecture docs, comments, tests, and benchmark/debug tooling

Verification

  • make build
  • make test-zig
  • targeted native ERT tests:
    • ghostel-test-cursor-only-redraw-updates-char-pos
    • ghostel-test-partial-redraw-only-dirty-row-rebuilt

@emil-e
emil-e force-pushed the emil-e/render-optimize branch from 27970aa to 6ab76ce Compare July 7, 2026 09:39
@emil-e
emil-e merged commit 4c6351f into dakra:main Jul 7, 2026
22 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.

1 participant