Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Strange Slowdown in latest version

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 392 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/02/2010 at 04:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      i am currently working on a new version of one of my plugins and wanted to test if it's still functional in C4D11.5.

      All seems to work, strangely though one particular piece of code got much slower in regard to earlier versions (fast on 11).

      There's not much going on, i iterate a vector and generate (roughly 900) null objects from that like this:

      for (vectorvm::Vector3::const_iterator it = something.begin();
      it != something.end(); ++it)
           {
              BaseObject *object = BaseObject::Alloc(Onull);
              object->SetColorProperties(&null;_object_properties);
           object->SetScale(SomeVector);
           object->SetPos(SomeVector);
           doc->InsertObject(object, parent_object, NULL);
           }

      I went through all the code and this (extremely simple piece) seems to run much slower now...I couldn't find anything in the release notes regardings this, any ideas?

      Thanks

      Markus

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 11/02/2010 at 05:28, xxxxxxxx wrote:

        forgot an important fact:

        i am compiling this against the 10.5 SDK

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 11/02/2010 at 07:47, xxxxxxxx wrote:

          Could you try if using doc- >InsertObject(object, parent_object, NULL,FALSE) makes a difference?

          Name checking was not supported for R10.x-11.0. and got only introduced again in R11.5 and will cost alot of processing time.

          cheers,
          Matthias

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 18/02/2010 at 06:53, xxxxxxxx wrote:

            Hi Matthias,

            as always you are right 😉 - this was exactly what was happening...the code got alot faster without name checking.

            Many thanks!

            Markus

            1 Reply Last reply Reply Quote 0
            • First post
              Last post