DC Redraw with C Extension


#1

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 ?

Thanks,

Olivier

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


#2

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?


#3

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


#4

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


#5

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.

Cheers