Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Tags
    3. performance
    Log in to post

    • monomonnik

      SOLVED Delay after drawing
      General Discussion • animation performance saving • • monomonnik  

      4
      0
      Votes
      4
      Posts
      24
      Views

      frederik

      DrawBot has an abstract stack of "actions" which can be applied on different contexts. One context is your output: an animated gif. And there is always a drawBot context to create the preview pdf data. Using drawBot from the module helps in this case as @gferreira suggested.
    • Tim

      Drawbot Multiprocessing
      Code snippets • performance • • Tim  

      1
      0
      Votes
      1
      Posts
      249
      Views

      No one has replied

    • Tim

      UNSOLVED Code crashing when using multiprocessing.Pool
      General Discussion • drawbot as module performance • • Tim  

      11
      0
      Votes
      11
      Posts
      3465
      Views

      Tim

      @frederik Sorry for the late reply, I've been on vacation for a while. It's a little rusty after so many days The main focus lays on "main_pool()" "multiprocessing.Pool()" creates, in my 8core case, 8 separate processes (ignore the -1 in the code) Then "p.map()" runs function "run()" 120 times (12 fps times 10 sec. from the settings) but only 8 at one time. As soon as one process is finished it runs the next one. it saves the images separately and can be stitched together into one gif with "exportGif()" More in depth info can be found on: https://docs.python.org/3.4/library/multiprocessing.html My example is only useful if the processes don't have to talk to each other. But on the ref page above should be other examples as well. I'll post the result of my script in a few hours. Well the result in which I've used this method.
    • dyb

      UNSOLVED Generating A LOT of images. 1M+
      General Discussion • drawbot as module performance saving • • dyb  

      1
      0
      Votes
      1
      Posts
      703
      Views

      No one has replied

    • MauriceMeilleur

      SOLVED Saving large videos
      General Discussion • animation performance saving • • MauriceMeilleur  

      3
      0
      Votes
      3
      Posts
      1216
      Views

      justvanrossum

      @mauricemeilleur Right, sorry, I didn't notice that earlier thread before. http://forum.drawbot.com/topic/36/drawbot-on-something-more-powerful-than-desktops-and-laptops
    • MauriceMeilleur

      SOLVED Drawbot on something more powerful than desktops and laptops?
      General Discussion • animation performance • • MauriceMeilleur  

      5
      0
      Votes
      5
      Posts
      1728
      Views

      MauriceMeilleur

      Thanks—I'll have a chance to try this for myself later today.