I add gl2 support for gdi32 (GL2Backend = 4), it is faster than gdiplus, but still a lot slower than the real wd gl2. I guess part of reason is it use glcmds which is implemented in tight c code avoiding dll calls and other overheads in J701. for speed comparison, load 'plot' t1 -~ 6!:1'' [ 'surface' plot +/~ 1 o. i: 6j99 [ t1=. 6!:1''
This shows the performance degradation is not entirely the fault of cairo, and I tested cairo is even a little bit faster than pixmap. I suspect it needs to rewrite plot package or implement glcmds using c plus gtk calls in a shared library - glcmds.dll/libglcmds.so Срд, 09 Мар 2011, Ric Tikkanz писал(а): > Thanks for putting together the gdiplus addon Bill and all the work > you're doing in the graphics area. GDI+ does seem to be slightly > faster than the cairo setting, but still quite a bit slower than J602 > wd. > > Timings on Windows 7 32-bit for ( 'surface' plot +/~ 1 o. i: 6j99 ) > are as follows: > > J701 > Using GL2Backend_j_=: 0 takes ~2.2 seconds > Using GL2Backend_j_=: 3 takes ~2 seconds > > J602 > Using wd takes ~0.1 seconds > > Also, from my testing it is necessary to edit the GL2Backend_j_ > setting in ~config/base.cfg and restart the J system to successfully > switch from one backend to the other. Just resetting GL2Backend_j_ > doesn't seem to change the graphics engine used. > > > On Wed, Mar 9, 2011 at 6:01 PM, bill lam <[email protected]> wrote: > > If the 0.11377 second is timed on Mac + jwd, then it suggested there is > > room of improvement. > > > > Втр, 08 Мар 2011, Joey K Tuttle писал(а): > >> At 8:38 PM -0800 11/03/08, Joey K Tuttle wrote: > >> > > >> >I can now to the sine plot, it takes noticeably longer (more than 3 > >> >times as long) than j602 producing the plot.pdf file. The window is > >> >VERY slow to resize (using 100% of one of the 4 available cores) - > >> >much longer than "zoom" on the pdf plot and making the window bigger. > >> > > >> > >> When I said "more than 3 times" as long - I hadn't measured it. To do - > >> > >> 'surface' plot +/~ 1 o. i: 6j99 > >> > >> Takes 56 times as much cpu time in j701 as in j602 - 6.4631 seconds > >> versus 0.11377 seconds... This doesn't include all the mouse > >> clicking to free the jconsole session again. > >> > >> But at least I can plot something and get my session back (although I > >> get to "live with" the orphan process...). > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > > -- > > regards, > > ==================================================== > > GPG key 1024D/4434BAB3 2008-08-24 > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
