Forum Xamarin.Mac


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

NSPopupButton selection blocking main thread?

Scott_BScott_B AUMember ✭✭

Selecting an item from an NSPopupButton causes a noticeable hitch in frame rate (I have a metal scene running in a window so it is easy to notice). This happens even if I am not subscribing to the Activated Event. I notice the same kind of delay with NSMenuItems being selected, again even if no action is called. Something blocking the main thread perhaps?

I'm not sure where to look at this point, any suggestions would be very welcome!

Best Answer


  • Scott_BScott_B AUMember ✭✭

    I've put together a simple demo of the issue by making the following changes to the Xamarin macControls sample project. (just replace this file)

    If you go to the menu controls page you can easily see that any change to one of the UI elements causes the display to lock briefly. This is what I am seeing in my app as well.

    Here is a clip of my app running, you can see the pause in display every time I change the popup.

    Should I just be filing a bug at this point?

  • Scott_BScott_B AUMember ✭✭

    Thanks for chasing that Chris, darn. I'll file one but I think making my own control will be the way to go at this point!

Sign In or Register to comment.