robertventurini / FlyingToasters

Recreation of AfterDarks 2.0 Flying Toasters screensaver for macOS
MIT License
92 stars 5 forks source link

lag on dual monitor setups #2

Open boof-fo opened 2 years ago

boof-fo commented 2 years ago

First of all, thanks for making this, I love it. But when I use this screen saver on my dual monitor setup it works as expected on the primary screen, but it doesn't on the secondary one. What happens is that toasts and toasters get stuck on the top-right side of the screen and they don't move at all. Sometimes they move but they stutter a lot (it looks like it's running at 0,5 FPS).

Device: baseline Macbook Pro 16" M1 Pro OS: MacOS Monterey 12.2.1

robertventurini commented 2 years ago

Interesting; thanks for reporting this. I will try to reproduce this when I have access to a second display to test layout on. I'm currently running on a single ultra wide monitor so I haven't been able to make this issue occur yet.

shannonpasto commented 1 year ago

Love this...lot's a good memories. I'd love to see a Simpsons or Star Trek version!!

I can report that on a Samsung 34" Ultra wide (curved) monitor (connected via USB-C) the screen saver is not smooth when compared to the in-built MBP13" (M1) display. I don't have any issues with a HP 27" (HDMI)

robertventurini commented 1 year ago

Shannon, thanks for reporting. That's really curious about the Samsung 34" ultra wide monitor-- I'm running an LG 38" curved ultra wide on USB-C and haven't observed any lag issue however my machine is a 2018 intel mac. I used this screensaver as a jumping in point to start to learn SpriteKit, its entirely possible that something is not optimized with my usage, and may be manifesting on the M1 specifically at certain resolutions. Unfortunately I don't have an M1 here that I can test that hypothesis on and debug/profile in instruments right now.

boof-fo's original issue above is also surfacing on M1 hardware, that is (at least) a coincidence 🤔

shannonpasto commented 1 year ago

Thanks for the response. It wouldn't surprise me this is an M1 issue, we had nothing but issues (kernel panics) with those monitors and the MBP 14" M1 in Monterey when waking from sleep. The issue is mostly gone in Ventura though. Those monitors aren't the best either.

johnrpenner commented 1 year ago

something to note on M1 processors — the graphics card only supports a single external display. we have some users with a second monitor on their M1 machines — but it does so through a Plugable UD-ULTC4k usbC Dock — which enables the display through a usb block mode. its kind of like running your video as if it were a mouse or a printer. it works, but only a low scan rates, and has some latency issues when running animation or video.

so if they have an ultra-wide monitor, it may be that the M1 native graphics chip doesnt handle smooth datarates for the ultrawide mode? 🤷🏼‍♂️

jp

On Thu, 22 Dec 2022 at 20:06, Robert Venturini @.***> wrote:

Shannon, thanks for reporting. That's really curious about the Samsung 34" ultra wide monitor-- I'm running an LG 38" curved ultra wide on USB-C and haven't observed any lag issue however my machine is a 2018 intel mac. I used this screensaver as a jumping in point to start to learn SpriteKit, its entirely possible that something is not optimized with my usage, and may be manifesting on the M1 specifically at certain resolutions. Unfortunately I don't have an M1 here that I can test that hypothesis on and debug/profile in instruments here right now.

boof-fo's original issue above is also surfacing on M1 hardware, that is (at least) a coincidence 🤔

— Reply to this email directly, view it on GitHub https://github.com/robertventurini/FlyingToasters/issues/2#issuecomment-1363485302, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXLOURG3SQE7MC4LDCRZ2TWOT3IXANCNFSM5P2CFC2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dotsam commented 1 year ago

I hadn't previously been seeing this on an M1 Air (3 displays, one native and 2 DisplayLink), but have been since installing macOS 13.3 a few weeks ago.

boof-fo commented 1 year ago

UPDATE: after updating to Sonoma the bug appears in a different way. The screen saver will sometimes either not render at all or it will render at the wrong monitor’s resolution (shows up in a smaller 1080p rectangle on a 1440p monitor while both are connected).

douglaswhitaker commented 11 months ago

I'm experiencing this issue, too. I have an M1 MBP with Ventura 13.5.1 and two external displays (two ASUS VP249 connected via HDMI to USB-C adapters). The external displays have resolution 1920x1080. The screen saver works as expected on both external displays, but on the MBP built-in display it freezes/lags substantially. Essentially a single frame is displayed (and zoomed) for a while, then it switches. Most of the time it is a black screen because there is so much empty space, but sometimes there will be static toasters/toast.