Anime4K.js icon indicating copy to clipboard operation
Anime4K.js copied to clipboard

High memory usage and WebGL context crashing

Open AlmightyHD opened this issue 1 year ago • 1 comments

Hi, first of all, I would like to thank you for creating this awesome project.

The upscaling effect looks astonishing, but I can't make it working for more than a couple of seconds of the video playback. The memory usage of the browser jumps rapidly up to 6Gb and then the page soft-crashes with WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost error in the console. The settings I'm using are: VideoUpscaler(30, Anime4KJS.ANIME4K_LOWEREND_MODE_A).

AlmightyHD avatar May 13 '24 09:05 AlmightyHD

@AlmightyHD Sorry for late response

This behavior caused by dynamically allocate/destruct texture. Device Specific, MacOS doesn't occur, but Windows occurs this problem. (Device Specific)

Please Try it!

monyone avatar Jun 04 '24 00:06 monyone