Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!open.dal.ca!kelley From: kelley@open.dal.ca (Dan Kelley) Newsgroups: comp.windows.open-look Subject: GUIDE -- how to remove excessive initial repaint requests? Keywords: Guide repaint performance Message-ID: <1991May21.140135.26869@cs.dal.ca> Date: 21 May 91 14:01:35 GMT Sender: news@cs.dal.ca (USENET News) Organization: Oceanography, Dalhousie University, Halifax, NS, Canada Lines: 35 Originator: kelley@open.dal.ca Nntp-Posting-Host: open.dal.ca I've used Guide and Gxv to create an xview interface. These are great programs: a few hours of tinkering gave me a functional interface. However, I'm reluctant to do the next step -- adding my own code to the Guide-generated callback functions -- because the application starts out by calling my repaint function SIX times! My application is pretty slow, even if no actual drawing is taking place, so this will totally kill performance. I'm not an X expert (that's why I'm using Guide, after all), so I wonder whether anybody out there can suggest a way around this performance killer. For example, is there some kind of countdown flag I can monitor, so I can do the repaint only the last time it's requested? Below I've pasted the code that Guide wrote for me: /* * Repaint callback function for `canvas1'. */ void repaint_gri(canvas, paint_window, display, xid, rects) Canvas canvas; Xv_window paint_window; Display *display; Window xid; Xv_xrectlist *rects; { fputs("grixv: repaint_gri\n", stderr); } -- Dan Kelley, Oceanography Department | kelley@cs.dal.ca Dalhousie University | {uunet watmath}!dalcs!kelley Halifax, Nova Scotia, CANADA, B3H 4J1 | (902) 494-1694