Welcome! Log In Create A New Profile

Advanced
Re: LDCad 1.2 Public Alpha 1
avatarFebruary 19, 2013 10:06PM
Unfortunately, the code I have right now is quite slow. The 10143 Death Star II model takes about 9 seconds to load on my Mac without this new code. Adding in the new code bumps that up to 21 seconds. I haven't done any general benchmarking to see if the new code is consistently doubling the load time, but it's very obviously quite slow (so much so that it's obviously not acceptable as-is).

The main reason its so slow is that it gets run at the last minute, right before the smoothing is performed on a part. That means that it's incredibly inefficient, because it is run on "flattened" part geometry. So, for example, for a 2x4 stud, it gets run against all 8 stud caps individually. The proper way to do it is to run it against the disc primitive once, and then reuse the results throughout the entire main file loaded by LDView. (This would prevent adding fake conditionals between two separate sub-files, but that shouldn't be much of a problem.)

I placed the code where I did because I wanted to see if it would work, and I knew that if I put it there, it wouldn't have any secondary effects. I need to put comparable code in the LDraw file-loading section of LDView, so it can be efficient (running once per unique sub-file), but in order to do that, I have to flag these calculated conditionals as being "fake", so they won't get drawn (slowing things down) when LDView is set to draw conditional lines.

So, the short answer to your question is no, because I'm never going to release what I have right now. However, the longer answer is that I can hopefully do either another Beta, or perhaps just a more limited test release, that includes code that produces the same end-result, but does so in a reasonable fashion.
SubjectAuthorViewsPosted
LDCad 1.2 Public Alpha 1 Attachments Roland Melkert1230February 15, 2013 06:21PM
Re: LDCad 1.2 Public Alpha 1 Travis Cobbs373February 16, 2013 12:21AM
Re: LDCad 1.2 Public Alpha 1 Travis Cobbs341February 16, 2013 12:24AM
Re: LDCad 1.2 Public Alpha 1 Philippe Hurbain379February 16, 2013 08:06AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert436February 16, 2013 10:17AM
Re: LDCad 1.2 Public Alpha 1 Travis Cobbs364February 16, 2013 07:48PM
Re: LDCad 1.2 Public Alpha 1 Travis Cobbs384February 16, 2013 09:31PM
Re: LDCad 1.2 Public Alpha 1 Philippe Hurbain365February 16, 2013 11:32PM
Re: LDCad 1.2 Public Alpha 1 Travis Cobbs377February 19, 2013 10:06PM
Re: LDCad 1.2 Public Alpha 1 Philippe Hurbain369February 20, 2013 05:25AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert302February 17, 2013 09:41AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan370February 17, 2013 11:30AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert382February 17, 2013 11:54AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan492February 19, 2013 06:05AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert377February 19, 2013 12:37PM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan361February 20, 2013 05:05AM
Re: LDCad 1.2 Public Alpha 1 Philippe Hurbain347February 22, 2013 06:48AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert353February 22, 2013 09:49AM
Re: LDCad 1.2 Public Alpha 1 Philippe Hurbain307February 22, 2013 10:52AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan385February 22, 2013 05:37AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert335February 22, 2013 09:55AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan318February 22, 2013 11:04AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert368February 22, 2013 11:37AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan356February 23, 2013 12:21AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert303February 23, 2013 10:24AM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan362February 24, 2013 02:35AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert481February 24, 2013 10:29AM
Re: LDCad 1.2 Public Alpha 1 Attachments Ignacio Fernandez Galvan388February 24, 2013 11:51AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert414February 24, 2013 02:46PM
Re: LDCad 1.2 Public Alpha 1 Ignacio Fernandez Galvan476February 25, 2013 05:50AM
Re: LDCad 1.2 Public Alpha 1 Roland Melkert515February 25, 2013 03:43PM



Sorry, only registered users may post in this forum.

Click here to login