1. problem in my computer...

Hi all!

I just realized that there is something bad in my computer
when i use super graphics mode with "use_vesa(1)".

I found that when "use_vesa(1)" is used, the screen display speed
is much different according to the screen location. In the top part of
the screen (around 1/4th upper area of screen) is very fast, however,
in the rest part, the speed is very slow.

Please see the test codes attached. In my computer, the speed ratio is
more than eight(8).

I'm nearly sure that this problem is strongly related to why Pete's (and others)
SVGA mouse routine does not work propery in my computers.
When i display an image on the screen amd move the mouse pointer across
the screen, all the screen area EXCEPT the top part of the screen (mentioned
above) is messed up.

Is there any way to overcome this problem? if not possible,
Is there any one to know why?

Bye! from Lee, woo seob

------------------- test codes --------------------
include graphics.e
include image.e
include get.e
include machine.e

procedure rect(integer color, integer fill, sequence area) -- draw rectangular
    sequence s
    integer x1,y1,x2,y2
    x1=area[1]
    y1=area[2]
    x2=area[3]
    y2=area[4]
    s=repeat(color,x2-x1+1)
    if fill then
        for y=y1 to y2 do   ---
            pixel(s,{x1,y}) -- this one is faster than using polygon()
        end for             ---
    else
        draw_line(color,{{x1,y1},{x2,y1},{x2,y2},{x1,y2},{x1,y1}})
    end if
end procedure


object junk,t0
tick_rate(100)
use_vesa(1)
junk=graphics_mode(257)
t0=time()
for i=1 to 5000 do
    rect(CYAN,1,{1,1,9,9}) -- 4065 f.p.s
    --rect(CYAN,1,{201,201,209,209}) -- 494 f.p.s, slower more than 8 times!!!
end for
t0=time()-t0
junk=graphics_mode(-1)
?5000/t0
junk=wait_key()
------------------------- codes end here ----------------------

new topic     » topic index » view message » categorize

2. Re: problem in my computer...

At 11:38 AM 8/21/97 +0900, you wrote:
>---------------------- Information from the mail header
-----------------------
>Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at MIAMIU.ACS.MUOHIO.EDU>
>Poster:       Lee woo seob <wslee at HHI.CO.KR>
>Subject:      problem in my computer...
>---------------------------------------------------------------------------
----
>
>Hi all!
>
>I just realized that there is something bad in my computer
>when i use super graphics mode with "use_vesa(1)".
>
>I found that when "use_vesa(1)" is used, the screen display speed
>is much different according to the screen location. In the top part of
>the screen (around 1/4th upper area of screen) is very fast, however,
>in the rest part, the speed is very slow.
>
>Please see the test codes attached. In my computer, the speed ratio is
>more than eight(8).
>
>I'm nearly sure that this problem is strongly related to why Pete's (and
others)
>SVGA mouse routine does not work propery in my computers.
>When i display an image on the screen amd move the mouse pointer across
>the screen, all the screen area EXCEPT the top part of the screen (mentioned
>above) is messed up.
>
>Is there any way to overcome this problem? if not possible,
>Is there any one to know why?

You assumption that something is wrong with your computer is wrong.  It's
like that with my computer too.  I'm not sure why it's like that, but it
has to do something with memory.  I am not sure if this problem can be
overcome.
Vikas B. Patel
*******************************************************************
\*The Programmers' Guild:For the Amatuer and Hardcore Programmers*/
\\*  http://www.geocities.com/SiliconValley/Way/7272/main.html  *//
\\\*OM                       Jai Hind                        OM*///
*******************************************************************

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

Search



Quick Links

User menu

Not signed in.

Misc Menu