Skip to content

Commit a5725c8

Browse files
committed
A better description of faster render
1 parent 64c8d8c commit a5725c8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ When creating an instance of SubtitleOctopus, you can set the following options:
115115
`false`)
116116

117117
### Fast Render Mode (Lossy) (EXPERIMENTAL)
118-
The Fast Render mode has been created by @no1d as a suggestion for fix browser freezing when rendering heavy subtitles (#46),
119-
this mode simply drop some bitmaps when the process start to freeze. this mode can cause some bitmap loss or simply not render they at all.
118+
The Fast Render mode has been created by @no1d as a suggestion for fix browser freezing when rendering heavy subtitles (#46), it use [createImageBitmap](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap) to render the bitmap in the Worker, using Promises instead of direct render on canvas in the Main Thread. When the browser start to hang, it will not lock main thread, instead will run Async, so if the function createImageBitmap fail, it will not stop the rendering process at all and may cause some bitmap loss or simply will not draw anything in canvas, mostly on low end devices.
120119

121120
**WARNING: Experimental, not stable and not working in Safari**
122121

0 commit comments

Comments
 (0)