DC Redraw with C Extension


Hi there,

It seems that combining DC redraw ($dc_observers.get_latest_class.redraw_with_undo) with C Extension takes a long time to complete while in Debug mode within VS2012. Am I doing something wrong? Is there a way to avoid such behaviour ?



P.S.: I always got the SketchUp popup “This operation seems to be taking a long time. Would you like to continue?”


Does it always happen only in Debug mode? Do you have a reproducible sample?

Debug mode do tend to be slower though - but you are running your C extension in a debug build - not SketchUp itself. But maybe you have symbols loading from the MS symbol server?


This happens when the C extension process is attached to SketchUp.exe with all breakpoints and step features.


And the C extensions is calling $dc_observers.get_latest_class.redraw_with_undo ?
What else is it doing? Hard without more context.


Thanks pointing me to the right direction, yes, it was about symbols. This forum gave me the steps to regain a normal speed in Debug mode. I wonder why it was only slow while redrawing DC ?

By the way, $dc_observers.get_latest_class.redraw_with_undo was called from Ruby.