En 13/07/2010 11:54:24, MacArthur, Ian (SELEX GALILEO, UK) <[email protected]> escribió:
> >> Therefore you can't do anything parallel to the main FLTK thread, >> because you would need to change the static variables... > > I guess that should be "you can't do any *rendering* parallel to the > main FLTK thread..." > You can of course do pretty much anything else in parallel, and I often > do. > > But I think Albrecht is right, there is really only one rendering > context in FLTK, so it can not be used in parallel threads. > It seems that the main limitating factor for "only one rendering context in FLTK" are the global static variables. In the case of the pdf driver that I'm trying with libharu basically the matrix stack is the botleneck, that's why I'm asking to move almost all functions and variables from fl_vertex.cxx to the base class of Fl_Graphics_Driver this way each virtual driver has it's own matrix stack that can be safelly managed inside the driver instance. And for some kind of drivers like pdf, postscrip, direct printing, and others that can work with independent devices (I mean any number of a device with it's own context, like a computer can have 4 printers attached to it, or pdfs, postscript or any file based device, where the number of simultaneous creation and generation can biiger than one). _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
