#232 Panning and zooming lag over background images
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#232
- issue
- state:closed
Panning and zooming lags on a timeline with background images (the Marine Corps timeline, for example). Measured in Chromium with 4× CPU throttling while panning and zooming 1900–1950: frames have a median of about 100ms, against 17ms with the image plugins off. Most of the cost is the halo from #220. It applies `filter: drop-shadow()` ×3 to whole full-stage layers (`.axis` and especially `.edge-arcs`), which re-rasterizes them on every frame. The same filter on markers and stems costs little, and the images, their masks and the label blur add little. https://github.com/openchronology/timeline-app/issues/232
Related
- #220 Duration backgrounds cover the timeline's markers and labels; add a contrast halo over them
- #235 Draw the halo without filtering whole layers, so panning keeps up
- #450 Over backgrounds, the timeline is drawn crisply instead of with a glow
- Draw the halo without filtering whole layers, so panning keeps up
Open #232 Panning and zooming lag over background images in the timeline