[motherhamster] vec2d lite

Brian Fisher brian at hamsterrepublic.com
Thu May 3 23:17:23 PDT 2007


Interesting - I'll make a perf test for creating vec2d's. If one of
the _lite changes makes that faster, that I'll see about getting those
changes in the motherhamster vec2d

It looks like you added a "levitate" slot - if you've got some other
place to put that, I'd recommend removing vec2d_lite


On 5/3/07, Bob the Hamster <Bob at hamsterrepublic.com> wrote:
> On Thu, May 03, 2007 at 07:39:51PM -0700, Brian Fisher wrote:
> > Hey yo,
> > I decided to check out vec2d_lite to see if there was anything about
> > it's speed improvements that we'd just want to put in the original, so
> > that we always get the benefit.
> > I was thinking it may also have speed benefits for the sidescroller
> > cause vec2d's are fastest when working with other vec2d's (cause they
> > will use the faster .x and .y attributes) and the rest of
> > motherhamster will be using the non-lite version
> >
> > However, I was running the performance tests inside the files for
> > vec2d on my python 2.3 system on my windows laptop, and I am not
> > seeing any speed increase in vec2d_lite over the one in motherhamster
> > at all. What circumstances do you see vec2d_lite being faster? Does
> > your machine show a speed increase when running the perf tests that
> > are in the vec2d files?
> >
>
> Actually, I haven't tested for quite a while, so it is possible that
> they are no longer useful. I think the case that caused the slowdown was
> doing a large number of vec2d creations per cycle (one for every dirt
> tile on screen for every draw cycle), but I later changed the code to
> just create one, and modify it as an iterator.
>
> So it is entirely possible that vec2d_lite is not usefull at all
> anymore.
>
> ---
> James
> _______________________________________________
> dev mailing list
> dev at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>



More information about the Dev mailing list