Re: speed of text display

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jason Gade wrote:
> 
> JasonDube wrote:
> > 
> > sorry.
> > I forgot to add that I was in graphics mode 18.So, this is the code
> > verbatum.
> > 
> > --------------
> > include graphics.e
> > object gfx
> > gfx = graphics_mode(18)
> > 
> > for i = 1 to 400 by 1 do
> >    puts(1,"01234567890123456789012345678901234567890...etc to 80
> >    characters")
> > end for
> > ---------------
> > 
> > This is the code in totality. It takes about 87 seconds. I want to know why
> > it takes
> > so long.
> > 
> > I have a pentium 1.4 gig with Windows 2000
> > 
> > Thanks & sorry for not including this detail ;(
> > 
> > I would make a good member of a large crowd :)
> > 
> 
> Windows XP, 1.3 GHz Athlon XP-M, 256MB, 32MB S3 integrated video (this is a
> laptop)
> 
> with ex.exe
> console -- 0.06
> fullscreen -- 0.93
> mode 18 -- ~43 seconds
> 
> with exwc.exe
> console -- 1.72
> fullscreen 1.06
> 
> Windows XP, 1.84 GHz Athlon XP, 512MB, 128MB NVidia GeForce FX 5200 desktop
> 
> with ex.exe
> console -- 0.06 and then 0 after subsequent runs
> fullscreen -- 0.88
> mode 18 -- ~57 seconds (that's a surprise...)
> 
> with exwc.exe
> console -- 0.56
> fullscreen -- 0.61 (was 0.9 consistently, then dropped to 0.61)
> 
> }}}
<eucode>
> include graphics.e
> include get.e
> 
> object gfx, junk, start
> 
> gfx = graphics_mode(18) -- comment this out for console/fullscreen tests
> 
> start = time()
> 
> for i = 1 to 400 by 1 do
>     puts(1,
>     "01234567890123456789012345678901234567890123456789012345678901234567890123456789")
> end for
> 
> ? time() - start
> 
> junk = wait_key()
> 
> gfx = graphics_mode(-1)
> -- end
> </eucode>
{{{

> 
> Shows the uselessness of benchmarking ;^)
> 
> But the main thing is that mode 18 is a pixel graphics mode that is not
> accelerated
> by a Windows driver, so the characters are mem-copied to the screen.
> 
> I was surprised that my laptop out-performed my desktop, though.
> 
> =====================================
> Too many freaks, not enough circuses.
> 
> j.
> 

So you speed freaks can brag, the above program yielded
 6.96 seconds
 Windows2000 
 2.66Mhz box.

Don Cole

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu