diff --git a/src/_macosx.m b/src/_macosx.m index e961e306ed76..b50b59d37bd8 100755 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -393,6 +393,9 @@ static CGFloat _get_device_scale(CGContextRef cr) PyErr_SetString(PyExc_RuntimeError, "NSView* is NULL"); return NULL; } + // We need to interrupt the runloop very briefly to allow the view to be + // displayed when used in a fast updating animation + [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]]; [view displayIfNeeded]; Py_RETURN_NONE; }