RE: Challenge for EUPHORIA Programmers
> From: sephiroth _ <euman2376 at yahoo.com>
> To: EUforum <EUforum at topica.com>
> Reply-To: EUforum at topica.com
> Subject: RE: Challenge for EUPHORIA
> Programmers
> Date: 11/09/2001 3:17:10 PM
>
>
> maybe, maybe not. depends on how you
> implement it.
>
> but, no matter what you do, euphoria is
> interpreted, and interpreted
> languages will never be as fast as
> compiled languages
>
> C. K. Lester wrote:
> > I was wondering and considered this:
> >
> > Is EUPHORIA "powerful" enough for
> running the "Flying Windows"
> > screensaver?
> >
> > I'd like to see a EUPHORIA version, if
> it runs as fast or is as capable.
> >
> > Of course, you will use a EUPHORIA icon
> in place of the Windows icon. :)
>
But the question was not "Is EUPHORIA the fastest way to do 'Flying Windows'
screensaver?" but simply, is Euphoria fast enough (my paraphrase) for doing
such a screensaver? Even though it is interpreted, it still might be faster
enough to animate a logo.
I guess my first approach would be to create the stop-motion images of the
logo using a PaintShop type of program. This might need 15-20 images of the
logo in different positions as it "wiggles". Then I'd precalculate all the
X/Y coordinates of the movement path(s). Then program would load the images
into RAM and only need to cycle through the images using a single
double-buffer while moving the X,Y location through a preset path.
Basically, this approach tries to do as much computation as possible before
the program needs it, and preferable does it only once.
If the program needs to calculate the image for every cycle, then you might
have to resort to either OpenGL or DirectDraw libraries. This would arise if
the image can have varying sizes and/or color-cycling.
----
Derek
--------------------------------------------------------------------
CAUTION - This email and any files attached may contain privileged and
confidential information intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended recipient of
this message you are hereby notified that any use, dissemination,
distribution or reproduction of this message is prohibited. If you have
received this message in error please notify the sender immediately. Any
views expressed in this message are those of the individual sender and may
not necessarily reflect the views of Global Technology Australasia Limited.
--------------------------------------------------------------------
|
Not Categorized, Please Help
|
|