Hi Guys,
If I expand the window to fill the screen the cpu usage for the process is around 95% on OSX, same on xp is about 5% both these figures are on a MacPro.
I have looked into it a bit and it seems that the problem is to do with the screen update.
If you run as a plugin and have the window displayed cpu is at the 95% mark, if you close the window cpu goes down to the 10% mark.
Is anyone else seeing this?
The following is a shark profile for the standalone version, as you can see most of the cpu is used in CoreGraphics:
# Report 1 - Session 4 - Time Profile of Standalone Mg Modular V 2
SharkProfileViewer
# Generated from the visible portion of the outline view
- 21.1% img_alpha (CoreGraphics)
- 12.1% decode_data (CoreGraphics)
- 11.4% CMM8Bit3ChanNoConvDecoder::DoDecode(CMM8Bits const&, CMMRuntimeInfo*, unsigned long) (ColorSync)
- 8.4% vCMMVectorConvert8BitRGBToRGB (ColorSync)
- 8.1% CMM8Bit3ChanNoConvEncoder::DoEncode(CMM8Bits&, CMMRuntimeInfo*, unsigned long*, unsigned long*) (ColorSync)
- 4.5% sseCGSBlendXXXX8888Transpose (CoreGraphics)
- 4.4% ml_set_interrupts_enabled (mach_kernel)
- 3.9% sseCGSBlendXXXX8888 (CoreGraphics)
- 2.9% aa_render (CoreGraphics)
- 2.1% rgba32_mark_constantmask (CoreGraphics)
- 2.0% blkclr (mach_kernel)
- 1.2% 0xffff07a0 [1.8KB] (Unknown Library)
1.0% lo_alltraps (mach_kernel)
- 0.9% 0x5fe12000 [unreadable] (com.motu.driver.FireWireAudio)
- 0.9% 0x5df6 [231B] (Standalone Mg Modular V 2)
- 0.7% COscillateur::GenerationOscillateurs(long) (Mg Modular V 2)
- 0.6% 0x5fe11000 [unreadable] (com.motu.driver.FireWireAudio)
- 0.5% 0x5dda [28B] (Standalone Mg Modular V 2)
- 0.4% CGestionFifo::SortieFifo(float) (Mg Modular V 2)
- 0.4% CableNode::normalise(vect&, vect&) (Mg Modular V 2)
- 0.4% mutex_unlock (mach_kernel)
- 0.4% CableNode::moveA(Physics*) (Mg Modular V 2)
- 0.4% _mutex_lock (mach_kernel)
- 0.3% 0xffff0600 [416B] (Unknown Library)
- 0.3% rgba32_colorlookup (CoreGraphics)
- 0.3% vm_page_lookup (mach_kernel)
- 0.2% 0x7b6e [210B] (Standalone Mg Modular V 2)
- 0.2% vm_fault (mach_kernel)
- 0.2% 0x46ba [371B] (Standalone Mg Modular V 2)
- 0.2% aa_lineto (CoreGraphics)
- 0.2% vm_page_grab (mach_kernel)
- 0.2% aa_ael_insert (CoreGraphics)
- 0.2% CFiltrage::CalculFiltreMgSansMajRes() (Mg Modular V 2)
- 0.2% 0x7a40 [302B] (Standalone Mg Modular V 2)
- 0.2% szone_free (libSystem.B.dylib)
- 0.2% vm_map_enter (mach_kernel)
- 0.2% bzero_phys (mach_kernel)
- 0.2% vm_page_free (mach_kernel)
- 0.2% 0xffff026d [4B] (Unknown Library)
- 0.2% draw_line (CoreGraphics)
- 0.1% CLfoSin::GestionLfo() (Mg Modular V 2)
- 0.1% __i686.get_pc_thunk.bx (HIToolbox)
- 0.1% aa_distribute_edges (CoreGraphics)
- 0.1% CLfoSin::SortieLfoPuissance(float) (Mg Modular V 2)
- 0.1% CChorus::Traitement(float*, float*, float*, long) (Mg Modular V 2)
- 0.1% CModMg::Synthese(float*, float*) (Mg Modular V 2)
- 0.1% mutex_try (mach_kernel)
- 0.1% vm_map_lookup_locked (mach_kernel)
- 0.1% CResonnateur::Filtrage(long) (Mg Modular V 2)
- 0.1% szone_calloc (libSystem.B.dylib)
- 0.1% CMMConvRGBToRGB::Convert(CMM8Bits&, CMMRuntimeInfo*, unsigned long, unsigned long) const (ColorSync)
- 0.1% tws_traverse_object_hash_list (mach_kernel)
- 0.1% path_stroke_round_line_segment (CoreGraphics)
- 0.1% szone_malloc (libSystem.B.dylib)
- 0.1% CMMConvLut::Convert(CMMMaxBits&, CMMRuntimeInfo*, unsigned long, unsigned long) const (ColorSync)
0.1% user_trap (mach_kernel)
- 0.1% CSuperMixe::GestionSuperMixe() (Mg Modular V 2)
- 0.1% CableNode::initTorseur(Physics*) (Mg Modular V 2)
- 0.1% aa_ael_remove (CoreGraphics)
- 0.1% 0x5fe04000 [unreadable] (com.motu.driver.FireWireAudio)
0.1% lo_mach_scall (mach_kernel)
- 0.1% hw_lock_to (mach_kernel)
- 0.1% __CFStringEqual (CoreFoundation)
- 0.1% vm_page_remove (mach_kernel)
- 0.1% pthread_mutex_lock (libSystem.B.dylib)
- 0.1% aal_geometry (CoreGraphics)
- 0.1% tws_internal_lookup (mach_kernel)
- 0.1% path_stroke_round_iterate (CoreGraphics)
- 0.1% CGestionFifo::EntreeFifo(float) (Mg Modular V 2)
- 0.1% CableNode::moveB(Physics*) (Mg Modular V 2)
- 0.1% ripr_Coverage (libRIP.A.dylib)
Cheers
Andy