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

    Generator updates too slowly

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 389 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 10/05/2009 at 01:50, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.1, 11 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      in my generator plugin, I create a Plane primitive, convert it into a polygon object (Current State to Object) and manipulate the point positions (using the point array retrieved from ->GetPointW()).

      Using the GeGetTimer() function, I measure the time used. Even with a plane subdivision of 1000x1000, it's really fast, only 2 or 3 seconds.

      Then I return the resulting PolygonObject from GetVirtualObjects().

      And then I wait, and I wait, and I wait...
      And after approx. 2 Minutes(!!) the geometry in the viewport updates!

      What could be the reason for this? My calculations are all finished, and I just return the geometry. And that takes sooooo damn long! What is Cinema doing all this time? If I create a Plane primite in the editor and set it to 1000x1000 subdivisions, it updates immediately.

      Is there anything I can do? Do I have to send some kind of message to speed this up?

      Greetings & thanks in advance,
      Jack

      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 10/05/2009 at 04:31, xxxxxxxx wrote:

        Hm, got it somehow.
        But don't know what the reason was.

        Cheers,
        Jack

        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 10/06/2009 at 14:41, xxxxxxxx wrote:

          Any ideas on this as I'm experiencing the same issue with my plugin generator?

          Makes no sense, does it?

          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 10/06/2009 at 16:54, xxxxxxxx wrote:

            To include additional information: doing a GePrint() of sections of the GetVirtualObjects() code, I see that it is continually making it to a certain part and then starting over many, many times before it completes. The method where it keeps bailing is like Recurse() in Atom.cpp (hint: checking bt->TestBreak()). If I omit that check, it bails forever, otherwise it bails for ridiculous amounts of time for no apparent reason. It almost appears as if there is a timeout in the thread and it eventually succeeds (sometime in the future) but only if the stars align and the messiah born (???).

            I want a solution like yesterday or that's it for me and Cinema 4D plugin development. This plugin is supposed to tide me over financially until I can work on something *more complicated*. There's gotta be something more stable than this crap (and you're much better than Apple-arrogance - just do searches on iPhone approval and developer payments - we're just about to consider legal proceedings against Apple).

            Matthias, if you'd like, I can send you the entire project (not large) to test so you can see exactly what's going on. Maybe you or another developer at Maxon can instruct. I've been through PluginCafe, the docs, and the examples enough so I'm at a complete loss at this point.

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