Groups | Blog | Home
all groups > dotnet academic > september 2006 >

dotnet academic : porting .NET


Rain
9/14/2006 7:55:02 PM
Hi,

I made a test program that draws shapes in a in-memory bitmap and displays
it in a form.. i tested it in windows and it worked very very fast with no
problems.. but when i ported it in Linux Mono, it doesnt have any problem but
seems to be very slow (I can see it being drawn).. does anyone know why this
happens? is there an alternate solution? any help would be appreciated..
Alex Turmer
9/15/2006 12:00:00 AM
[quoted text, click to view]

Here is one suggestion. The windowing system in windows is much closer
to the hardware than that in X11. This tends to mean that stuff which
draws directly to the screen can be slower with X11. I will probably
get flamed for saying that - so - I started out programming X11 on SGI's
in the 90's and THEN learned how to use Windows...

Anyhow - my first suggestion is to use Z buffering. Try drawing the
image off line and then switching to it so that X11 only has to do one
update. Otherwise, each time you draw a pixel in your image Mono will
call X11. X11 will then encode a packed, that will then get sent to the
X11 rendering engine, get decoded and then something drawn. Then the
rendering engine will say 'done it' which will result the reverse
process. Even if this is very very fast in cpu time, propagation delays
cause it to be an issue in wall clock time.

AJ

--
www.deployview.com
www.nerds-central.com
AddThis Social Bookmark Button