Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vo: use mp_poll wrapper in wait_events when applicable | Dudemanguy | 2023-10-10 | 1 | -0/+5 |
| | | | | | | | | | | On linux, several platforms poll for events over a fd. This has ms accuracy, but mpv's timer is in ns now so lots of precision is lost. We can use an mp_poll wrapper to use ppoll instead which takes a timespec directly with nanosecond precision. On systems without ppoll this falls back to old poll behavior. On wayland, we don't actually use this because ppoll completely messes up the event loop for some unknown reason. | ||||
* | osdep: rename polldev to poll_wrapper | Dudemanguy | 2023-10-10 | 1 | -0/+7 |
Originally, this was added as purely a shim for macOS. However since we want to do high resolution polling which is not neccesarily available on all platforms, making this a generic wrapper for poll functions is useful so rename it. |