Unwanted MTKView content stretching when I resize/zoom the window

This is running on macOS 10.13.2

I've got a MTKView subclass that's drawing a CIImage to the current texture, and rapidly resizing my window causes my content to become either squished or streched out as the window size changes. I’ve double checked that the sizes of the texture and the window size are in sync (they are).


Here’s a video of the problem in action: http://shapeof.com/trash/metal_ci_resize_what.mp4


Any ideas for what to look for in my code?


thanks,


-gus

Replies

Have you made any progress on this issue? I have tried seveal approaches and do not have a solution.

@ccgus a similar discussion that jzrake is involved with is here https://forums.developer.apple.com/message/323356?et=watches.email.thread#323356.


I'd be interested in knowing if the suggestions in that thread are helpful to you.

Hi 4k4,


The issue described by ccgus is still unresolved as far as I can tell. I am still experiencing it despite many attempts at getting Apple engineers to propose a solution.


Is there any progress?


PS - as a reminder, I pointed out how the problem can be reproduced by modifying a single line in Apple's HelloTriangle example program:


https://forums.developer.apple.com/message/323356?et=watches.email.thread#323356.