Tried the settings on the GitHub, doesn’t seem to work, and it also made the stuttering worse
opengl-pbo=yes
opengl-early-flush=no.
video-sync=display-resample
ok, here you go
Tried the settings on the GitHub, doesn’t seem to work, and it also made the stuttering worse
opengl-pbo=yes
opengl-early-flush=no.
video-sync=display-resample
ok, here you go
Yea, it seems to be using 200% CPU.
But I have vo=gpu
though, so I’d thought the GPU would’ve taken some of the load.
If I am strapped for CPU resources, how do I make it so that MPV buffer or something instead of dropping the audio when this happens? Cause it is strange the even though the visuals are acceptable, it is the audio that fails before the video
I thought about it, but it isn’t as expressive as I wished.
Meaning if I do
a = foo(return_more=True)
or
a, b = foo(return_more=False)
it doesn’t catch these errors for me.
In comparison, the other suggested solution does catch these.
yea, this is pretty close to what I’m looking for.
The only missing piece is the ability to define the overload methods on the bool
something like
@overload
def foo(return_more: True) -> (Data, Data)
@overload
def foo(return_more: False) -> Data
But I don’t think such constructs are possible? I know it is possible in Typescript to define the types using constants, but I don’t suppose Python allows for this?
EDIT: At first, when I tried the above, the typechecker said Literal[True]
was not expected and I thought it was not possible.
But after experimenting some, I figured out that it is actually possible.
Added my solution to the OP
Thanks for the tip!
ok, here you go https://pastebin.com/uPc5S1LU