Understand SubtitlesOctopus rendering modes
masterSubtitlesOctopus supports three rendering modes via the renderMode option:
- WASM Blending (
wasm-blend): The default mode. It blends bitmaps of different events within WebAssembly. This is faster when many or complex subtitles are displayed simultaneously. Falls back toasm.jsif WebAssembly is unavailable. - JS Blending (
js-blend): Performs bitmap processing outside of WebAssembly using JavaScript. - Lossy Render Mode (
lossy): EXPERIMENTAL. UsescreateImageBitmapto render bitmaps in the Worker using Promises. This prevents the main thread from hanging/freezing during heavy subtitle rendering, though it may cause bitmap loss or skipped frames on low-end devices. Warning: Not stable and not supported in all browsers.