nanogui: Drawing performance


Previous by date: 16 Feb 2001 17:16:13 -0000 Re: Mircowindows on 66MHz DragonballVZ, Greg Haerr
Next by date: 16 Feb 2001 17:16:13 -0000 Re: NanoX on Agenda VR3, Greg Haerr
Previous in thread: 16 Feb 2001 17:16:13 -0000 Re: Drawing performance, Jordan Crouse
Next in thread:

Subject: Re: Drawing performance
From: "Greg Haerr" ####@####.####
Date: 16 Feb 2001 17:16:13 -0000
Message-Id: <02e201c09839$b164b960$15320cd0@gregh>

: drawing speed will go down obviously. Lines, Arcs,
: Curves also have the problem, but draw Horizontal_Line
: and Vertical_Line are very fast, why? 

Well, first, it's faster to draw horizontal and vertical
lines ;-)  Curves must either calculate sin/cos or do a table
lookup per pixel, which is much slower.


And how to
: imporve the performance?

The Microwindows screen driver interface (look at 
microwin/src/include/device.h) has entry points only for
read/write pixel, draw horz/vert line, and blit.  The
other routines calculate each point and test for clipping
each point as well.  To improve performance, take 
one of the routines you want faster out of engine/devdraw.c,
and move it into a screen driver entry point, after having
checked that the area drawn is VISIBLE (GdClipArea) and
doesn't require clipping.

Regards,

Greg




: 
: Best Regards,
: Yi Yang
: 
: __________________________________________________
: Do You Yahoo!?
: Get personalized email addresses from Yahoo! Mail - only $35 
: a year!  http://personal.mail.yahoo.com/
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 16 Feb 2001 17:16:13 -0000 Re: Mircowindows on 66MHz DragonballVZ, Greg Haerr
Next by date: 16 Feb 2001 17:16:13 -0000 Re: NanoX on Agenda VR3, Greg Haerr
Previous in thread: 16 Feb 2001 17:16:13 -0000 Re: Drawing performance, Jordan Crouse
Next in thread:


Powered by ezmlm-browse 0.20.