manim-slides icon indicating copy to clipboard operation
manim-slides copied to clipboard

[BUG] Flickering at slide change for stand alone html

Open kejtos opened this issue 1 year ago • 4 comments

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.

  • It happens in the standalone html (generated using the -cdata_uri=true flag)
  • The size does not matter. It happens to the BasicExample from the documentation as well.
  • The flickering happens when open in Brave, Edge or Chrome.

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

kejtos avatar May 04 '24 11:05 kejtos

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 avatar May 04 '24 15:05 jeertmans

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

jeertmans avatar May 04 '24 15:05 jeertmans

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

kejtos avatar May 04 '24 17:05 kejtos

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 ^^'

jeertmans avatar May 06 '24 11:05 jeertmans