Please don't use powershell Get-Clipboard in console.lua. It can take up to 1x seconds on first run #14373
Closed
6 tasks done
Labels
meta:help-wanted
Anyone is invited to help with this. Suitable for new developers with no experience with mpv code.
os:win
mpv Information
Other Information
Reproduction Steps
Task manager
to ensure there is no process hogging CPU/Disk/Ram`
) > Paste clipboard text (Press ctrl+v)Expected Behavior
The clipboard text is pasted with a small delay, like below 1 second..
Actual Behavior
On my system, the clipboard text took 1x seconds (more than 10 seconds) to be pasted into mpv console on first run.
This is because
console.lua
uses powershell command to getclipboard data. On first run, powershell can be really slow.Log File
output.txt
Sample Files
I pressed
ctrl+v
at 00:13, text showed up at 00:22mpv-powershell-firstrun.mp4
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: