jeertmans / manim-slides

Tool for live presentations using manim
https://manim-slides.eertmans.be
MIT License
410 stars 44 forks source link

[BUG] Flickering at slide change for stand alone html #426

Open kejtos opened 2 months ago

kejtos commented 2 months ago

Description

Dunno if it is a bug per se, but there is a frame flick every time I switch a slide (backward or forward). While it is visible only sometimes in the video below, it happens at every single slide switch. It feels as if there was an empty frame between the slides.

Version

5.1.5

Platform

Windows 11

Screenshots

https://github.com/jeertmans/manim-slides/assets/101019159/0d7f37be-d08a-4de1-9d40-a77275c50fb2

Additional information

No response

jeertmans commented 2 months ago

Hello @kejtos, thank you for reporting your issue!

Before I dig deeper, can tell me if that bug persists when you turn off dara_uri?

jeertmans commented 2 months ago

And also can you include some information about your computer: RAM, CPU and GPU?

kejtos commented 2 months ago

Of course @jeertmans.

It happens only when the data_uti is on.

My specs:

CPU: AMD Ryzen 7 7800X3D 8-Core Processor 4.20 GHz GPU: NVIDIA GeForce RTX 4080 SUPER RAM: 32 GB

I tested it on another PC (Windows 11) as well, which has NVIDIA GeForce RTX 3080 (I don't have access to it atm and unfortunately I do not remember the rest).

jeertmans commented 2 months ago

So I tried a bit and could not find a solution, unfortunately.

It seems like there is a small but visible delay to decode the video from data-uri source.

I tried using data-preload, or preload="auto" attributes on <video> and <slide> sections, without any visible change. But maybe I don't know how to use them properly.

Another solution might be to create source URLs when the page loads...

If anyone is willing to help me on this, I'd be happy ^^'