1. mtn benchmarks

In case anyone is interested, on my p166 my little mountain thing created
a 1025x1025 terrain map in 518.27 seconds (8.63 minutes for 1,050,625 data
points)  As you increase maxlevel you increase the compute time
exponentially.  It goes something like this:

maxlevel     grid size  number of data points   time
5             33x33       1089                      .11
6             65x65       4225                      .27
7            129x129      16641                    1.04
8            257x257      66049                    5.66
9            513x513     263169                   43.83
10          1025x1025   1050625                  518.27

This is mucho faster than the last time I wrote this in gwBasic on a
4.77XT in CGA. It took minutes to do a 129x129.

I guess it'll go as big as you want.  Generally for creating 3d models for
professional animations, we use a 129x129 or 257x257 height map most of
the time.

BTW the algorithm for the fractal thing came from "The science of fractal
imaging."  Good book, lots of pretty pictures, lots of neato pseudocode.
(most of which translated into Euphoria without modification other than
than to account for the weird non-standard "let's start counting from 1
just to be different from EVERY OTHER LANGUAGE" stuff.)

Anywho, if anyone finds any of this stuff amusing at least let me know.

Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp/euphoria

Hey Rob, I wanna be able to count BACKWARDS, like from 10 to 1 by -1.

new topic     » topic index » view message » categorize

2. Re: mtn benchmarks

On Fri, 6 Feb 1998, Michael Packard wrote:

> Hey Rob, I wanna be able to count BACKWARDS, like from 10 to 1 by -1.

Have I missed something here?

sequence s
s = {4, 5, 6, 2, 9, 5, 1, 4, 1, 3}

for i = 10 to 1 by -1 do
    ? s[i]
end for

for i = 8 to 0 by -2 do -- experiment with zeroes
    ? s[(i)+1] -- I've stuck brackets round the 'i' because it could
               -- be a more complex expression (e.g. try i/2)
end for

There's even the line:
        for i = length(buffer)-1 to b_line+1 by -1 do
in ed.ex!

--
Carl R White - "I thought it was about time I redesigned my .sig..."
E-mail...: crwhite- at -comp.brad.ac.uk        / Remove the hyphens before
Finger...: crwhite- at -dcsun1.comp.brad.ac.uk \ mailing or fingering...
Url......: http://www.student.comp.brad.ac.uk/~crwhite/cyrek.cgi

new topic     » goto parent     » topic index » view message » categorize

3. mtn benchmarks

Hi! :)

EU>In case anyone is interested, on my p166 my little mountain thing created
EU>a 1025x1025 terrain map in 518.27 seconds (8.63 minutes for 1,050,625 data
EU>points)  As you increase maxlevel you increase the compute time
EU>exponentially.  It goes something like this:

EU>This is mucho faster than the last time I wrote this in gwBasic on a
EU>4.77XT in CGA. It took minutes to do a 129x129.
Can you send me the gwbasic source?

Thanx in advance!

Fernando Ariel Gont

gstuff at siscor.bibnal.edu.ar

new topic     » goto parent     » topic index » view message » categorize

4. Re: mtn benchmarks

On Sat, 7 Feb 1998, Fernando Ariel Gont wrote:

> Can you send me the gwbasic source?
>
The Euphoria source is almost identical to what I did in gw, other than it
was in cga and I had to program the dither patterns to make 4 colors look
like 32.  ick.

I haven't seen the gw source in 10 years.  Sorry.

Michael

new topic     » goto parent     » topic index » view message » categorize

5. Re: mtn benchmarks

Hi!

EU>> Can you send me the gwbasic source?
EU>>
EU>The Euphoria source is almost identical to what I did in gw, other than it
EU>was in cga and I had to program the dither patterns to make 4 colors look
EU>like 32.  ick.

EU>I haven't seen the gw source in 10 years.  Sorry.
Ouch.. :(  But the fact is that I don't program in Euphoria, yet...

Bye! :)

Fernando Ariel Gont

gstuff at siscor.bibnal.edu.ar

new topic     » goto parent     » topic index » view message » categorize

6. Re: mtn benchmarks

Fernando Ariel Gont wrote:

>EU>I haven't seen the gw source in 10 years.  Sorry.
>Ouch.. :(  But the fact is that I don't program in Euphoria, yet...
>
>Bye

But.. why not?
If you can understand the basic code well enough to get it working (slowly),
you should have no trouble understanding Euphoria!

Irv
----------------------------------------------------------------------------
-----------
Congress is good at two things:
Passing laws, and passing gas.
They put numbers on the laws so we can tell the difference.
----------------------------------------------------------------------------
-----------

new topic     » goto parent     » topic index » view message » categorize

7. Re: mtn benchmarks

Hi!

EU>>EU>I haven't seen the gw source in 10 years.  Sorry.
EU>>Ouch.. :(  But the fact is that I don't program in Euphoria, yet...
EU>>
EU>>Bye

EU>But.. why not?
EU>If you can understand the basic code well enough to get it working (slowly),
EU>you should have no trouble understanding Euphoria!
There are to facts:
10 I realized that Euphoria existed about a month ago...
20 I must learn Clipper, SQL, Cobol, and Vi$ual BASIC, too.

Bye!

Fernando Ariel Gont

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu