rowett wrote:Build 149 is available on the lazyslug server...
Dave this build needs some testing since the generation engine is new!
Looks like a definite improvement so far.
When the script says something like [[ AUTOSTART LOOP 160 ]], previous builds would jump right back to T=0 with no appreciable pause, and keep on going. Now there's something like a half-second delay when the last generation is reached and when the first generation is shown.
One of my tests involves saving a copy of a conwaylife.com forum page, then substituting the new version of lv-plugin.js. When I do that, I end up with a page with code block headers that look like "CODE: SELECT ALL / SHOW IN VIEWER / SHOW IN VIEWER". Is it easy to check if there's already a "Show in Viewer" link, and replace it if so, instead of adding another one?
[I'm not absolutely sure that this is a good idea, really, but I don't see any harm in it offhand -- it will probably only happen in this strange test case, so it's definitely not very important... I don't quite understand why the HTML gets saved with "Show In Viewer" links point back to conwaylife.com but don't pop up a viewer when you get there -- but I can imagine very reasonable explanations.]
People have been posting a lot of glider guns lately, and they definitely keep running much better in Build 149 than in Build 147. In Build 147 they quickly got mired in molasses, to the point where any AUTOSTART viewers I posted would have a LOOP setting to restart the gun before it got too sluggish.
There's one subtle change that doesn't seem like an improvement: if you look at a posting like
this one, you'll see that the periodic gun restart is very smooth -- you just see the background cells disappear, but the signals in the loop appear to keep going without a pause. If you switch over to Build 149, there's a very definite pause that goes along with the restart. It's barely noticeable for some looping-script patterns, and a fairly large fraction of a second for others. Might show up more on slow CPUs (?).
I noticed on
this posting that the Step setting sticks to whatever value you set it to, between uses of the standalone viewer. It's probably a good idea to have the Step size be sticky -- seems like different step sizes might work better for different users, depending on their CPU speed and/or level of impatience... but is there a reason why other settings aren't also retained, such as the Theme setting? Seems like a user might also have a preferred theme, and it could maybe be kept if there's no THEME statement in the next pattern's script to say otherwise.
In
this posting I put a STOP command in the script, so that signal trails would all be filled in but the viewers wouldn't all be running at once (except for a moment at the beginning). I noticed that the word "Pause" still shows up even in the thumbnail view. It actually fits on the screen in Build 149, whereas in Build 147 it used to say "...use" and then something parenthetical about loops. Should text be appearing at all in the thumbnail view? If so, then everything seems to be in working order now. But are there other messages that might still get displayed that would overflow the thumbnail view?
Finally, here are a couple of test patterns+scripts that showed up problems in Build 147. Haven't tested in build 149 yet -- I'll maybe edit in some comments shortly...
Yup, the first pattern below seems okay in Build 149 -- the progress-bar overflow goes away. The idea here was to zoom out to see the whole rest of the slow-salvo recipe, halfway through. It's slow at the beginning and very fast at the end and then jerks to a stop, but that's the zoom-level interpolation issue that has already been discussed.
There are some odd effects with 0.5 level zooms, like some objects and gliders disappearing while others are still visible. There's also the odd fact that when patterns get large enough, you can't zoom out to see the whole thing at once, so the Autofit function does strange things... hit F on a gun pattern that's been running for a while, for example, and you'll probably see just a line of gliders, with the gun off the screen.
Might be worth jumping to the original extents of the pattern at zoom level 0.5, just in the odd case where the whole pattern won't fit in the viewer any more...?
With the pattern below you get a little of the opposite problem -- the pattern is very autofit-compatible toward the end of its Life cycle, but at the beginning you see weird effects in the corners because the pattern is on a torus.
Code:
Select all
x = 897, y = 903, rule = B3/S23
2o$2o4$3o$o$bo8$21b3o$21bo$22bo28$17b3o$17bo$18bo8$38b3o$38bo$39bo28$
34b3o$34bo$35bo8$55b3o$55bo$56bo28$72b3o$72bo$73bo8$91b3o$91bo$92bo8$
104b3o$104bo$105bo28$119b2o$118b2o$120bo8$149b2o$148b2o$150bo18$179b2o
$178b2o$180bo33$212b3o$212bo$213bo28$250b3o$250bo$251bo28$281b3o$281bo
$282bo28$285b3o$285bo$286bo28$315b3o$315bo$316bo28$360b3o$360bo$361bo
28$375b3o$375bo$376bo28$412b2o$411b2o$413bo28$435b2o$434b2o$436bo8$
493b3o$493bo$494bo28$519b3o$519bo$520bo28$551b3o$551bo$552bo28$574b3o$
574bo$575bo28$615b2o$614b2o$616bo48$654b3o$654bo$655bo28$687b3o$687bo$
688bo28$724b3o$724bo$725bo28$753b2o$752b2o$754bo28$787b3o$787bo$788bo
28$803b2o$802b2o$804bo28$836b2o$835b2o$837bo28$865b2o$864b2o$866bo28$
894b3o$894bo$895bo!
[[ AUTOSTART STEP 8 ZOOM 16 X 450 Y 450 PAUSE 5 "loaf2GtoG slow salvo\n35 gliders total" ]]
[[ T 1800 ZOOM 0.5 STEP 8 ]]
[[ T 3600 STEP 8 ]]
[[ LOOP 4000 ]]
With this next pattern the only problem I saw in Build 149 was a mysterious slowdown between T=3600 and T=4000. I'm guessing that the viewer is jumping back to its original default STEP 1 once it's done playing through the defined waypoints. I can't set a default of STEP 4 before the first waypoint; that throws an "overwrite" error. No doubt I could put an official waypoint at 4000 to solve the problem -- just wasn't expecting that that would be necessary. Apparently I thought that the last STEP setting should continue after the last waypoint.
Code: Select all
x = 897, y = 903, rule = B3/S23
2o$2o4$3o$o$bo8$21b3o$21bo$22bo28$17b3o$17bo$18bo8$38b3o$38bo$39bo28$
34b3o$34bo$35bo8$55b3o$55bo$56bo28$72b3o$72bo$73bo8$91b3o$91bo$92bo8$
104b3o$104bo$105bo28$119b2o$118b2o$120bo8$149b2o$148b2o$150bo18$179b2o
$178b2o$180bo33$212b3o$212bo$213bo28$250b3o$250bo$251bo28$281b3o$281bo
$282bo28$285b3o$285bo$286bo28$315b3o$315bo$316bo28$360b3o$360bo$361bo
28$375b3o$375bo$376bo28$412b2o$411b2o$413bo28$435b2o$434b2o$436bo8$
493b3o$493bo$494bo28$519b3o$519bo$520bo28$551b3o$551bo$552bo28$574b3o$
574bo$575bo28$615b2o$614b2o$616bo48$654b3o$654bo$655bo28$687b3o$687bo$
688bo28$724b3o$724bo$725bo28$753b2o$752b2o$754bo28$787b3o$787bo$788bo
28$803b2o$802b2o$804bo28$836b2o$835b2o$837bo28$865b2o$864b2o$866bo28$
894b3o$894bo$895bo!
[[ AUTOSTART GPS 10 T 0 STEP 8 ZOOM 16 X 450 Y 450 PAUSE 5 "loaf2GtoG slow salvo\n35 gliders total" ]]
[[ T 1000 ZOOM 8 X 445 Y 415 ]]
[[ T 3600 ZOOM 4 X 445 Y 415 ]]
[[ LOOP 4000 ]]