A virtual list
A virtual list: 100,000 log lines.
<for ... virtual=""> inside a scroll container renders only the lines around what the container shows, with two spacers standing in for the rest, and renders again as scrolling moves past them. A frame then costs what a screenful of lines does, however long the log.
Try it: scroll with the mouse wheel, or Tab to the log and use the arrows, PageUp/PageDown and Home/End.
- Source file:
example/virtual_list.cpp - Standalone terminal: ⛶ Open Fullscreen
- Guide: Relevant Documentation
- ← Back to Examples Index

