Files
ArtPlayer/packages/artplayer-plugin-danmuku/src
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
..
2024-05-26 14:57:22 +08:00
2025-08-03 13:17:33 +08:00
2025-08-03 13:17:33 +08:00
2025-08-03 13:17:33 +08:00