detached bda6366

fix(render): limit speculative storage for scrolled content

commit
bda63665bbe461bddeca18751aab666d554bc1ec
author
brice · · 2026-09-30 04:29 UTC
parent
69d5b14
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +3 -2
M internal/presentation/syncobj/syncobj.go +2 -1
@@ -187,7 +187,8 @@ func (n *Node) WaitPoint(handle uint32, point uint64, timeout time.Duration) (bo
187187 if err := unix.ClockGettime(unix.CLOCK_MONOTONIC, &now); err != nil {
188188 return false, err
189189 }
190- a := timelineWaitArg{Handles: uint64(uintptr(unsafe.Pointer(&h))), Points: uint64(uintptr(unsafe.Pointer(&p))), TimeoutNS: now.Nano() + timeout.Nanoseconds(), Count: 1, Flags: 2}
190+ deadline := now.Nano() + timeout.Nanoseconds()
191+ a := timelineWaitArg{Handles: uint64(uintptr(unsafe.Pointer(&h))), Points: uint64(uintptr(unsafe.Pointer(&p))), TimeoutNS: deadline, Count: 1, Flags: 2}
191192 errno := n.ioctlErrno(ioctlTimelineWait, unsafe.Pointer(&a))
192193 runtime.KeepAlive(h)
193194 runtime.KeepAlive(p)
@@ -187,7 +187,8 @@ func (n *Node) WaitPoint(handle uint32, point uint64, timeout time.Duration) (bo
187 if err := unix.ClockGettime(unix.CLOCK_MONOTONIC, &now); err != nil {187 if err := unix.ClockGettime(unix.CLOCK_MONOTONIC, &now); err != nil {
188 return false, err188 return false, err
189 }189 }
190- a := timelineWaitArg{Handles: uint64(uintptr(unsafe.Pointer(&h))), Points: uint64(uintptr(unsafe.Pointer(&p))), TimeoutNS: now.Nano() + timeout.Nanoseconds(), Count: 1, Flags: 2}190+ deadline := now.Nano() + timeout.Nanoseconds()
191+ a := timelineWaitArg{Handles: uint64(uintptr(unsafe.Pointer(&h))), Points: uint64(uintptr(unsafe.Pointer(&p))), TimeoutNS: deadline, Count: 1, Flags: 2}
191 errno := n.ioctlErrno(ioctlTimelineWait, unsafe.Pointer(&a))192 errno := n.ioctlErrno(ioctlTimelineWait, unsafe.Pointer(&a))
192 runtime.KeepAlive(h)193 runtime.KeepAlive(h)
193 runtime.KeepAlive(p)194 runtime.KeepAlive(p)
M internal/render/prepare.go +1 -1
@@ -76,7 +76,7 @@ func scaled(e layout.Edges, scale float64) layout.Edges {
7676
7777 // maxQuadPrealloc bounds speculative storage for mostly clipped documents.
7878 // Visible frames larger than this grow normally as their quads are emitted.
79-const maxQuadPrealloc = 2048
79+const maxQuadPrealloc = 512
8080
8181 // quadCapacity estimates one quad per glyph and drawable command, capped so
8282 // offscreen content cannot force a large allocation before culling.
@@ -76,7 +76,7 @@ func scaled(e layout.Edges, scale float64) layout.Edges {
76 76
77 // maxQuadPrealloc bounds speculative storage for mostly clipped documents.77 // maxQuadPrealloc bounds speculative storage for mostly clipped documents.
78 // Visible frames larger than this grow normally as their quads are emitted.78 // Visible frames larger than this grow normally as their quads are emitted.
79-const maxQuadPrealloc = 204879+const maxQuadPrealloc = 512
80 80
81 // quadCapacity estimates one quad per glyph and drawable command, capped so81 // quadCapacity estimates one quad per glyph and drawable command, capped so
82 // offscreen content cannot force a large allocation before culling.82 // offscreen content cannot force a large allocation before culling.

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 12

↑↓ moveenter openesc close