Files
ArtPlayer/docs
Harvey Zhao 1841f754dc feat: enhance Danmuku plugin with batch processing for top calculations
- Implemented a callback pool in the Web Worker to handle concurrent requests without overwriting onmessage.
- Modified postMessage to generate unique IDs for messages and store corresponding callbacks.
- Improved state management by using in-place deletion for removing danmu from state pools.
- Optimized the rendering loop to batch calculate the top positions of danmu elements, reducing DOM reads and improving performance.
- Added a new function getDanmuTopBatch in the worker to handle batch requests for top calculations.
2026-02-19 12:48:32 +08:00
..
2019-04-20 12:46:15 +08:00
2024-08-04 09:53:40 +08:00
2018-11-25 19:46:28 +08:00
2022-10-21 10:36:50 +08:00
2024-10-14 23:16:51 +08:00