Hi,
I have encountered a strange issue on macOS 14 (Sonoma).
I am creating a barrage (danmaku) effect: I have an NSView called BarragePipe which is a long horizontal rectangle (width = 50000). I treat this view as a "train" moving from right to left with animation.
I add subviews (BarrageItem, which are also NSViews with text) to this "train." The background of BarragePipe is set to transparent, so visually it looks like the text items are moving across the screen.
Here's the problem: On macOS 14, only the BarrageItem views whose X position is between 0 and the screen width display their text correctly. If a BarrageItem is positioned with X > screen width, its background still renders, but the text does not appear.
This did not happen on previous macOS versions. It seems like the system is optimizing rendering for off-screen views.
Has anyone encountered this? Is there a workaround to make the text always visible, regardless of the view's frame position?
Thanks!