Greg Ercolano wrote: > Load all the coords from the file into an array in ram, > so that the draw() function doesn't have to load the file > each time (as that's what it sounds like you're doing) > > The lines should draw quickly, similar to the 'scroll' test program. > See that program (fltk-1.x.x/test/scroll.cxx) for example code. > > Also, for a simpler line drawing example, see: > http://seriss.com/people/erco/fltk/#FltkX > > Line drawing should be fast, and if you use an Fl_Double_Window > instead of a plain Fl_Window, there should be no flicker. > (Double == Double Buffered)
BTW, if you're still having trouble, try pasting a small compilable example program that you're using. Simplify it as much as possible. In place of loading a file, just make a procedural demonstration of the problem (ie. a loop that creates the numerous lines instead of loading from a file) This way we can paste your code into an editor and compile it to see the same problem you are, and advise better on a solution. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

