mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
graphics: add memory-only storage for graphics data
Add a new graphics protocol key, N=1, to request that transmitted image/frame data is kept only in memory and not written to the graphics disk cache file. This is useful for transient high-frequency updates such as video-like streams, where the latest frame is the only useful data and persisting each frame to the disk cache causes unnecessary write traffic. The implementation keeps the existing graphics cache abstraction intact: memory-only entries can still be read back by animation, composition, and frame coalescing paths. Only persistence to the disk cache file is skipped. The default behavior is unchanged when N is omitted or set to zero.
This commit is contained in:
@@ -1051,6 +1051,8 @@ Key Value Default Description
|
||||
``o`` Single character. ``null`` The type of data compression.
|
||||
``only z``
|
||||
``m`` zero or one ``0`` Whether there is more chunked data available.
|
||||
``N`` zero or one ``0`` If set to ``1``, keep the transmitted image or frame data in memory only,
|
||||
without writing it to the graphics disk cache.
|
||||
|
||||
**Keys for image display**
|
||||
-----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user