Some recent changes

Ray Strode halfline at gmail.com
Sun Nov 29 07:59:30 PST 2009


Hi,

> List stuff
>
> Sort was bubble sort and that was exploding somewhat with very large lists.
> I repaced the implementation with quick sort. This messed up the stability
> of sprites in the script plugin so I added a sort_stable which is O^2
> complex but does well with nearly sorted lists (which is what we have). Also
> added get Nth node as it is useful and easy to get wrong.
Maybe we should just use one sorting algortihm that's fast and stable
like merge sort?

> Now a single script instance executes even with multiple screens.
> These are multiple windows present, these can be moved to expose different
> parts of the canvas. By default they are in mirror mode trying to show the
> same view (aligned by their centre point). The Window.GetWidth and Height
> functions return the size of window 0. To get other window sizes, supply the
> window index to the function. It will return NULL if the window is not
> present. You can move the window by doing a Window.SetX(window_index,
> new_x_value). These can then pla placed side by side or far apart to create
> independent scenes.
Cool.

> Label stuff
>
> Added setting of the color. Default is white. I went through all the themes
> and it looks OK. If these is a theme which looks bad then say so and I will
> put a second black shadow (old mode).
I'll have a look when I'm done traveling.

--Ray


More information about the plymouth mailing list