monyone / Anime4K.js

Anime4K WebGL port/implementation
MIT License
34 stars 1 forks source link

High memory usage and WebGL context crashing #2

Open AlmightyHD opened 2 months ago

AlmightyHD commented 2 months ago

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).

monyone commented 1 month ago

@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!