This document describes the feature flags available in the viewer and how to enable them.
All feature flags are set in /src/clip_plot/web/assets/js/tsne.js in the Config() constructor (around line 43).
Controls which image detail system to use:
true: Use GPU mipmaps for image detail (recommended, better performance)false: Use the legacy LOD (Level of Detail) system
How to change:
function Config() {
// ...
this.useMipmaps = false; // Enable LOD system
// ...
}Notes:
- Mipmaps provide hardware-accelerated image detail at all zoom levels
- LOD dynamically loads high-res images for nearby cells (more complex)
- Both systems work with the same
imagelist.jsonmanifest
Controls diagnostic console logging:
true: Enable detailed logging for debuggingfalse: Disable all diagnostic logs (cleaner console)
How to enable:
Method 1: URL parameter ( runtime, no code changes):
https://your-viewer-url/?debug=1
Method 2: Console ( runtime, no code changes):
// Open browser console and type:
config.debug = true;Method 3: Source code change:
function Config() {
// ...
this.debug = true; // Enable diagnostic logging
// ...
}What gets logged when enabled:
- Cell creation details (atlas positions, filenames, sizes)
- Atlas/texture loading and mapping information
- GPU picker mesh cloning and color attributes
- Draw call grouping information
- Color encoding for GPU picking
- Click detection and cell index mapping
// In src/clip_plot/web/assets/js/tsne.js, Config() constructor:
function Config() {
this.data = {
dir: 'data',
file: 'manifest.json',
gzipped: false,
}
this.mobileBreakpoint = 600;
this.isTouchDevice = 'ontouchstart' in document.documentElement;
// FEATURE FLAGS
this.useMipmaps = true; // Set to false to use LOD system
this.debug = new URLSearchParams(window.location.search).get('debug') === '1'; // Enable via ?debug=1
// ... rest of config
}-
Production (default):
useMipmaps: true, debug: false- Best performance, clean console
-
Debug mipmaps:
useMipmaps: true, debug: true- Debug the mipmap system with detailed logs
- Enable via:
?debug=1orconfig.debug = true
-
Test LOD:
useMipmaps: false, debug: false- Test the legacy LOD system
-
Debug LOD:
useMipmaps: false, debug: true- Debug the LOD system with detailed logs
- Enable via:
?debug=1orconfig.debug = true