VirtualViewList Documentation
VirtualViewList delivers high-performance virtualized scrolling for Cocos Creator projects. It renders only visible items, aggressively reuses nodes, and maintains smooth performance even with massive datasets.
Key Features
- On-Demand Rendering: Only instantiate visible nodes, dramatically reducing draw calls and memory footprint
- Multiple Layouts: Supports vertical, horizontal, and grid layouts with flexible spacing and direction control
- Intelligent Performance:
- 3-tier adaptive refresh rate (30fps/60fps/120fps) based on scroll velocity
- Dynamic buffer expansion during fast scrolling to prevent blank areas
- Frame-distributed loading for smooth handling of 10,000+ items
- Incremental Updates:
PrependData- Insert at top while maintaining scroll positionAppendData- Append at bottom without flickerRefreshData- Incremental refresh with custom comparison
- Pull-to-Refresh/Load: Built-in pull-down and pull-up mechanics with async callbacks and debounce
- Animation & Interaction: Animated insert/remove with queue management, nested scroll support
- Flexible Templates: Multi-template system with dynamic switching and object pooling