Keep gutter marquee text readable

This commit is contained in:
Meta Vens 2026-06-07 00:42:47 +01:00
commit 7534362bfa
3 changed files with 32 additions and 26 deletions

View file

@ -17,8 +17,8 @@ regions may use different text resolutions.
- Outputs: `gjallar.overview` composition state, visible framebuffer frames,
and renderer telemetry.
- Derived state: pane weights, pixel rectangles, chosen font sizes, one-row
gutter blocks, alternating serpentine marquee glyph positions, dirty
rectangles, glyph runs, and compact agent-readable projections.
gutter blocks, alternating scroll offsets, readable marquee glyph positions,
dirty rectangles, glyph runs, and compact agent-readable projections.
- Forbidden writers: discovery systems do not decide Gjallar layout; providers
do not tune themselves for Nightwing; framebuffer backends do not invent
provider truth; Gjallar does not derive marquee content from provider status
@ -40,7 +40,7 @@ Odin provider catalog
-> EveNode panel extraction
-> weighted AABB packing
-> one-row gutter cell plan
-> alternating serpentine marquee block path
-> alternating readable marquee block offsets
-> per-panel text pressure estimate
-> PSF font selection
-> frame draw commands

View file

@ -503,7 +503,7 @@ internal sealed class GjallarRenderer : IDisposable
gutterCells = sceneCache?.GutterCells.Count ?? 0,
gutterRows = sceneCache?.GutterCells.Select(static cell => cell.Row).Distinct().Count() ?? 0,
gutterPolicy = "single-row-top-between-panels-bottom",
gutterFlow = "alternating-serpentine-blocks",
gutterFlow = "alternating-scroll-readable-blocks",
marqueeChars = sceneCache?.MarqueeTape.Length ?? 0,
marqueeSample = Sample(sceneCache?.MarqueeTape ?? "", 160),
},
@ -908,29 +908,35 @@ internal sealed class FrameDocument
const int framesPerScrollCell = 8;
var scroll = (frameIndex / framesPerScrollCell) % Math.Max(1, tape.Length);
var orderedCells = cells
var blocks = cells
.GroupBy(static cell => cell.Row)
.OrderBy(static group => group.Key)
.SelectMany(static group =>
{
var rowCells = group.OrderBy(static cell => cell.LaneColumn);
return group.First().Forward
? rowCells
: rowCells.Reverse();
})
.Select(static group => group.OrderBy(static cell => cell.LaneColumn).ToArray())
.ToArray();
var glyphs = new List<GlyphCommand>();
for (var index = 0; index < orderedCells.Length; index++)
var blockStart = 0;
foreach (var block in blocks)
{
var cell = orderedCells[index];
var tapeIndex = index - scroll;
var character = tape[((tapeIndex % tape.Length) + tape.Length) % tape.Length];
if (character == ' ')
if (block.Length == 0)
{
continue;
}
glyphs.Add(new GlyphCommand(cell.X, cell.Y, character, tones.Add(cell.X, cell.Y, CultMathTone.Edge, font.Width)));
var direction = block[0].Forward ? 1 : -1;
for (var index = 0; index < block.Length; index++)
{
var cell = block[index];
var tapeIndex = blockStart + index + direction * scroll;
var character = tape[((tapeIndex % tape.Length) + tape.Length) % tape.Length];
if (character == ' ')
{
continue;
}
glyphs.Add(new GlyphCommand(cell.X, cell.Y, character, tones.Add(cell.X, cell.Y, CultMathTone.Edge, font.Width)));
}
blockStart += block.Length;
}
return glyphs;

View file

@ -45,7 +45,7 @@ Observed live status after marquee/gutter cut:
"panels": 6,
"gutterRows": 3,
"gutterPolicy": "single-row-top-between-panels-bottom",
"gutterFlow": "alternating-serpentine-blocks",
"gutterFlow": "alternating-scroll-readable-blocks",
"marqueeChars": 3101
}
}
@ -62,8 +62,8 @@ Observed live status after marquee/gutter cut:
- Outputs: `gjallar.overview` composition state, framebuffer frames, sparse
refresh streams, and agent-readable panel captures.
- Derived state: pane weights, pixel rectangles, selected fonts, one-row gutter
blocks, alternating serpentine marquee glyph positions, dirty rectangles,
glyph runs, and compact text projections.
blocks, alternating scroll offsets, readable marquee glyph positions, dirty
rectangles, glyph runs, and compact text projections.
- Forbidden writers: discovery systems must not decide Gjallar layout; providers
must not tune themselves for Nightwing; framebuffer backends must not invent
provider truth; Gjallar must not synthesize status-noise marquee content from
@ -153,9 +153,9 @@ Source: `https://en.wikipedia.org/wiki/Linux_framebuffer`
- `FontAtlas.ForTextBox` picks a font per panel based on available pixel area
and text pressure.
- `FrameDocument` draws text, panels, gutters, marquee glyphs, and fills. It
lowers the incoming marquee as one continuous stream across gutter blocks.
Adjacent gutter blocks alternate scroll direction, and the tape path reverses
at each block boundary so text can be followed between gutters.
lowers the incoming marquee as readable text inside each gutter block.
Adjacent gutter blocks alternate scroll direction, but glyph order remains
left-to-right inside every block.
- `FramebufferDevice` maps or writes the Linux framebuffer.
- 2026-06-06 live fix: rooted provider endpoints such as `/eve/deck/bifrost`
must be resolved against the configured Odin deck authority before opening a
@ -170,8 +170,8 @@ Source: `https://en.wikipedia.org/wiki/Linux_framebuffer`
the provider catalog and enforces one glyph row for top padding, one per
inter-panel gutter band, and one for bottom padding.
- 2026-06-07 gutter flow correction: the marquee is split into gutter blocks
again. Blocks alternate direction and share one serpentine tape path, rather
than flattening every gutter row into the same left-to-right stream.
again. Blocks alternate scroll direction without reversing glyph order inside
right-to-left blocks.
- Transport debt remains explicit: the live Nightwing body still consumes the
compatibility Eve deck bridge. The target input organ is native CultNet /
CultMesh typed state over the real GameCult transport, not a web-shaped