Author Topic: Saving a sequence with WHM is slow  (Read 2150 times)

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Saving a sequence with WHM is slow
« on: November 11, 2014, 08:01:37 PM »
My whole house model consists of 4 windows with a total of 237 channels.   Saving a sequence that originally had just a 3600 ch model took under 1 minute with 66 rows.

Saving the same sequence with the added WHM of the windows has been saving for over 15 minutes and I've just only added effects to the first 10 timing marks.

Win task mgr showing 50% CPU and 500mb of memory to xlights.exe during the save process.
I do understand that's where the rendering is taking place.

It's slow saving the megatree rows that did not change since the last save.

The save finished as I typed this and it took just under 20 minutes to save.

xlights.exe CPU usage is at 1% and memory still at 500mb.

I re-created the whole house model as a custom model with all of the channels and added the custom model to my sequence. I copied the same effects from WHM to the custom model, then removed the WHM and saved. The save took just a few seconds.

I don't think that's right that the WHM with such few channels should take that long to save. 

-Steve
Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline sean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1727
    • View Profile
    • Xlights and Nutcracker Forum
Re: Saving a sequence with WHM is slow
« Reply #1 on: November 11, 2014, 09:38:20 PM »
When you made a custom model of your WHM, what size did you make it. try a custom model that is 400x400 or 600x600.

Also , in a custom WHM, you cannot have models overlay each other. If your arches are in front of the megatree, you must artifically move the arches so they would be below if doing a custom model.

The data in the current WHM has way finer resolution and handles the collision. We might make the save become multithreaded. basically each thread handles a column.

Do i have your latest xlights_rgbeffects.xml? I would like to try testing with yours.
sean@meighan.net
Sean
Littleton, CO
Latest releases http://nutcracker123.com/nutcracker/releases
xLights/Nutcracker Forum http://nutcracker123.com/forum/index.php
Fbook [url=https://www.facebook.com/groups/62

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Saving a sequence with WHM is slow
« Reply #2 on: November 11, 2014, 11:05:56 PM »
The custom model was VERY small  6x24.

The custom model is comprised of the 4 boat windows. As you can see the left most triangle window is only 19 pixels.

The WHM just included the windows so I could sequence to those as a singular unit.

Last year I used dumb RGB with 4 models with 3 channels each. Those red pixels will now be individual 2811s with a relatively small pixel count.

I would like the ability to sequence to each window individually and combined as a WHM or custom model.   The 24x50 megatree will go on the bow in front of the windows with no physical overlap.



[attachment deleted by admin]
Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline sean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1727
    • View Profile
    • Xlights and Nutcracker Forum
Re: Saving a sequence with WHM is slow
« Reply #3 on: November 11, 2014, 11:08:29 PM »
Maybe we can prompt for the resolution we save our whm. It was 400x400, now I think it is 600x600. So speed of a 6x24 vs 600x600 grid is probably the speed difference. I'll discuss with the team
Sean
Littleton, CO
Latest releases http://nutcracker123.com/nutcracker/releases
xLights/Nutcracker Forum http://nutcracker123.com/forum/index.php
Fbook [url=https://www.facebook.com/groups/62

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Saving a sequence with WHM is slow
« Reply #4 on: November 11, 2014, 11:17:16 PM »
Ok that makes sense and it explains why the Preview Controls were so large as well for a relatively small model. A dynamic resize based on user input sounds good.

I've sent the my rgbeffects.xml via email.  Now you have all my good effects too!  Try the last 3 on a 24x50 megatree.
Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: Saving a sequence with WHM is slow
« Reply #5 on: November 11, 2014, 11:23:06 PM »
I will add that I just created a WHM  that contains a smaller WHM inside.. so a nested WHM and it works!!

It is a slow buggar to save but that's a small price to pay for a cup of awesome!

Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline jnealand

  • Hero Member
  • *****
  • Posts: 1421
    • View Profile
Re: Saving a sequence with WHM is slow
« Reply #6 on: November 12, 2014, 01:39:46 PM »
I have also found that saving a sequence that has nothing but my whole house model has become an opportunity to visit the head or refresh my current beverage of choice and I still have to wait before I can do anything more with xlights.  A small price to pay for the functionality I have gained.  I love it.
Jim Nealand
Kennesaw, GA