Replies: 6 comments 4 replies
-
On this:
Where can I find the announcement that It is likely the experts are overloaded with school or work or both and may not respond. This is outside of my technical expertise, but here are my thoughts anyway… I am typing this on a MacBookPro18,2 with the Apple M1 Max chip. I'm currently still on macOS Ventura as I read some reports of problems with macOS Sonoma related to closed clamshell mode. @svobs has upgraded and is experiencing a problem I have not been able to reproduce. You caught us wondering if it is due to Sonoma. I am going to have to upgrade at some point and see if that causes the problem to appear for me. Back to the problem at hand… I have not been too concerned about details on how IINA is managing the display on the new MacBook Pros because of the following from MacBook Pro (16-inch, 2021) - Technical Specifications:
An unfortunate choice for the name of this display feature as if you search for The WWDC 2021 video Optimize for variable refresh rate displays discusses this feature from a developer's perspective. Thus, when it comes to properly handling display refresh on the MacBook Pros there is definitely work to do. The root cause of problems that are reproducible with |
Beta Was this translation helpful? Give feedback.
-
On Although most reports I've read about macOS Sonoma were good, there were a number of posts on MacRumors that made me concerned enough to decide to drag my feet for a while before upgrading. I don't remember the details now, but closed clamshell mode was mentioned and as I frequently operate in that mode I didn't want to deal with such problems. You are definitely more than an expert than me in this area. Apple made lots of changes to graphics for macOS Ventura as a part of Metal 3 that definitely introduced regressions. @svobs mentioned seeing new Metal related messages in the log files after upgrading to Sonoma. Thanks for posting the link to the I have experienced very noticeable video pauses when leaving IINA running for a long time with many windows open (only one playing). It is as if some periodic task is holding a lock and blocking rendering threads. I have wondered if this problem is always there, but difficult to notice until it gets really bad. From what I recall the time between pauses was longer than 15-20 seconds, but there is something going on that can disrupt rendering. |
Beta Was this translation helpful? Give feedback.
-
I tested using closed clamshell mode attached to a 27" Apple/LG UltraFine 5K monitor. Super busy today and I have run out of time to carefully review the screen capture. Hopefully I can find time tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Reproduced. Here is what I did. I performed this test on my MacBookPro18,2 with an Apple M1 Max and 64 GB memory which is still running macOS Ventura 13.5.2. I attached the Mac to my 27" 5K UHD UltraFine™ IPS Monitor with macOS Compatibility (60hz refresh rate). In I downloaded YouTube 60fps Tester. I started IINA 1.3.3 playing the video. With IINA configured to use the mpv key bindings I pressed ⇧i to display statistics. I then opened Screenshot and started a screen recording of IINA. Once the video finished I reviewed the screen capture at 0.02x. A very tedious exercise. A good ways into the test I noticed a tick was skipped over. The statistics still showed 0 for dropped frames. The following is a second screen capture, this one shows me stepping forwards and backwards by individual frames around the skipped tick while reviewing the screen capture of the test. discussion-4652-tick-skipped.movDoes this sound like a valid test? Did this reproduce what you are reporting? MediaInfo reports the video downloaded from YouTube as having a variable frame rate. Not sure if that is impacting the test:
Full MediaInfo Output:
I remember quite a while ago hacking mpv sources to change thread QOS. At the moment I can't remember what the issue was. I vaguely remember it did not seem to change whatever behavior I was investigating. I recently acquired a used MacBook Pro with an Intel chip to be able to investigate trouble with hardware decoding that only reproduced on Intel Macs. That one is also running macOS 13.5.2. Was planning on upgrading that one to macOS Sonoma. Just haven't had time. I will try and find time to run this test on that Mac. On the problem I mentioned with the video freezing when IINA has been running for a long time with many windows open and minimized to the dock and one playing, that occurs on my MacBook Pro from 2019 running macOS Catalina 10.15.7. I have not experienced it on my M1 MacBook Pro, but I'm always having to stop and start IINA. I just tried opening a lot of videos at the same time on my M1 Mac. The problem did not reproduce, but this isn't exactly the same scenario as when I experience the problem on my old machine, IINA has been running for a very long time. I have noticed that on the old MacBook Pro Activity Monitor shows half of IINA's memory as being compressed, whereas in the above test on my M1, no memory was listed as compressed. Both machines have 64 GB. So either macOS has changed to not be as aggressive in compressing memory, or macOS is basing the decision to start compressing memory on the app being idle for a long time. The concern is that execution gets blocked while macOS is uncompressing pages. Possibly something like that is going on. Given that, it may be a separate problem that is not a factor in the problem at hand. |
Beta Was this translation helpful? Give feedback.
-
I was worried screen capture might interfere. At best my old iPhone might be able to do 60 fps. I will have to see what else I have for recording movies. I downloaded again specifying the following to obtain
MediaInfo does not report this version as variable:
Need to move away from I have never found any discussion about how Apple is continuing to support OpenGL. So news to me they are using a translation layer. I will improve my testing methodology and test this on my Intel. Super busy these days. I may not get to this until the weekend. |
Beta Was this translation helpful? Give feedback.
-
This is the Line 17 in 2ec4e36 |
Beta Was this translation helpful? Give feedback.
-
I found a curious issue, and was hoping some of the developers here more familiar with OpenGL development on macOS could opine. I am on an M1 Pro mbp running macos14, and when playing a 60fps video (e.g. https://www.youtube.com/watch?v=Cyxixzi2dgQ where it is very easy to see framedrops), and video-taping it in slow-motion, I get occasional (about once every 30 seconds) frame drops that are not registerd on mpv/iina's osc. This happens regardless of the config used (I have tried
no-config
,opengl-dumb-mode
and with/withoutdisplay-resample
. It is more likely to happen when the stats panel of mpv is open.The issue seems reproducible on both mpv and iina so I think it's likely an issue with the CAOpenGLLayer that both of them use, but I hesitate to open an issue upstream since it seems libmpv is being deprecated anyway. I was wondering if anyone else could reproduce this. My intuition is that it's somehow related to the timings of the glFlush compared to vsync boundary.
Beta Was this translation helpful? Give feedback.
All reactions