jeertmans/manim-slides

[BUG] Flickering at slide change for stand alone html

kejtos opened this issue · 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

flickering.mp4

Additional information

No response

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?

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

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

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