Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Hardware Accelerated PtMTrend widget: (7 Items)
   
Hardware Accelerated PtMTrend widget  
Hi,

a customer is considering QNX in a project and wants to make sure CPU load is low while some data is being updated in 
realtime using the PtMTrend widget.

Which graphics operations need to be accelerated in hardware to ensure the most possible complete acceleration of this 
widget?


- Malte
Re: Hardware Accelerated PtMTrend widget  
This is a list of PgDraw calls performed by PtMTrend:

 PgDrawGridCx();
 PgDrawIRectCx(); -- filled 
 PgDrawPolygonCx();

RE: Hardware Accelerated PtMTrend widget  
Hi Malte,
 
grid:
if line_width > 1, then the "stroke" are polylines, which get converted to spans, which in turn goes to rectangles.
if line_width == 1, then it practically goes straight to rectangles.
 
irect:
same as above
 
polygon:
polygon to spans to rectangles
 
In all these cases, the rectangles are the accelerated "part".  There is possibility on 642 for accelerated polygons, 
but most GPUs don't offer this anyhow, so it's a toss up ...
 
-Derek

________________________________

From: Misha Nefedov [mailto:community-noreply@qnx.com]
Sent: Thu 23/04/2009 11:14 AM
To: photon-graphics
Subject: Re: Hardware Accelerated PtMTrend widget



This is a list of PgDraw calls performed by PtMTrend:

 PgDrawGridCx();
 PgDrawIRectCx(); -- filled
 PgDrawPolygonCx();



_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post27902



Attachment: Text winmail.dat 4.24 KB
Re: RE: Hardware Accelerated PtMTrend widget  
Thank you, this is helpful. I'm not  sure how you would draw a polygon using rectangles though, or do you mean 
rectangles with a height of 1?

Is hardware blitting used to scroll the widget's content to the left? 


- Malte
RE: RE: Hardware Accelerated PtMTrend widget  
yeah, height of 1...
 
and yes, blitting is used for the scrolling.
 
-Derek

________________________________

From: Malte Mundt [mailto:community-noreply@qnx.com]
Sent: Fri 24/04/2009 4:19 AM
To: photon-graphics
Subject: Re: RE: Hardware Accelerated PtMTrend widget



Thank you, this is helpful. I'm not  sure how you would draw a polygon using rectangles though, or do you mean 
rectangles with a height of 1?

Is hardware blitting used to scroll the widget's content to the left?


- Malte


_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post27955



Attachment: Text winmail.dat 3.6 KB
Re: RE: RE: Hardware Accelerated PtMTrend widget  
Just curious - a rectangle with the height of 1, seems slower to me than just a horizontal line... no? Or does the 
hardware not know about horizontal lines, only about rectangles, and if it's height 1, actually only draws one line 
instead of two lines above each other?


- Malte
RE: RE: RE: Hardware Accelerated PtMTrend widget  
Most common accelerated primitive ... span vs 1 height is approximately equal ... some h/w did not have a specific "span
" operation ... iirc
 
 As to if it draws 1 or 2 lines, I think it would depend on the h/w
 
-Derek

________________________________

From: Malte Mundt [mailto:community-noreply@qnx.com]
Sent: Fri 24/04/2009 5:11 AM
To: photon-graphics
Subject: Re: RE: RE: Hardware Accelerated PtMTrend widget



Just curious - a rectangle with the height of 1, seems slower to me than just a horizontal line... no? Or does the 
hardware not know about horizontal lines, only about rectangles, and if it's height 1, actually only draws one line 
instead of two lines above each other?


- Malte

_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post27960



Attachment: Text winmail.dat 3.75 KB