> Hi Fargo, > Something Interesting. You mentioned the flicker in the test app so I put in > code to minimize it and the sluggishness disappeared too. Then I decided to > count how many times the drag event fired. I now have this in the drag event: > > If InitX<>X or InitY<>Y then > me.Refresh > pg.DrawRect X-20, Y-20, 40, 40 > End If > InitX=X // these 3 are properties of the window > InitY=Y > Count=Count+1 > > Running this code, it does not flicker so bad (this is just the test) and it > is not sluggish. If I drag quickly from upper left to lower right, I see > numbers like 6500 to 9500 in the count variable after the drag. > > If I remove the if statement, and quickly drag, I can watch the square slowly > move behind the cursor, taking about 3 full seconds. The count shows numbers > like 750 to 900. i.e. Much LESS. I had expected it to be many times higher. > So it is sluggish when it refreshes fewer times. > > Could my check to see if it has moved somehow interrupt some built in > checking > that thte system mdoes that is not working properly? > > Don > > I had done the same counting thing while checking it out and routinely saw 6k-8k. No checking or anything, just counting the drag events. I meant to ask earlier, does the slowness happen as soon as you close the IDE, or will the application run fine until you close and re-open it? Is there any difference if you run the app as root, via sudo or other means? _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/>
Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
