home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22024 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.2 KB

  1. Path: sparky!uunet!spool.mu.edu!hri.com!noc.near.net!saturn.caps.maine.edu!maine.maine.edu!ree700a
  2. From: REE700A@MAINE.MAINE.EDU
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: More on TCL Nightmare.....................................
  5. Message-ID: <93023.121559REE700A@MAINE.MAINE.EDU>
  6. Date: 23 Jan 93 17:15:59 GMT
  7. References: <93019.113451REE700A@MAINE.MAINE.EDU>
  8.  <1993Jan22.010015.17871@netcom.com>
  9. Organization: University of Maine System
  10. Lines: 39
  11.  
  12.  
  13.   Well, I posted that last & returned home from the network.  Wonder of
  14. wonders, it drew.  (I was in CStarterPane::Draw... that was an error of
  15. separation... 5 miles between my mac and Bowdoin's network.  Today its
  16. 120 miles between said mac and U. Maine... Ow well.)
  17.  
  18.   So... I altered things a little.  When CStarterDoc::BuildWindow ()
  19. is called, I called SetBounds ( -300000, -300000, 300000, 300000 ); and,
  20. of course, UseLongCoordinates ( TRUE );...
  21.   I placed a loop in CSP::Draw () to get the bounds, generate LongRects
  22. which ran the width of the bounds (less 40 pixels) and were 50 pixels
  23. high.  One LongRect every 100 pixels, vertically.
  24.   Now, this amounts to 60,000 LongRects (hence 240,000 LongInt assigns,
  25. and 120,000 LongInt adds, so the math of generation is non-negigible.
  26. These were not stored ( obviously ) but were created and drawn on the fly.
  27.   I did something which amounts to converting the area Rect to a Frame
  28. LongRect, SectLongRect the refresh area with the desired rectangle and
  29. finally convert the intersection back to QuickDraw coord's.  I then
  30. FillRect'ed them.
  31.   A simple scroll - refresh took 10 seconds on my SE/30 !  Obviously,
  32. this ain't no Quadra and it is a lot of drawing, but seriously...
  33.  
  34.   Any useful suggestions on how to speed this process up?
  35.  
  36.   BTW - HOW DO I GET THE DEBUGGER INTO THE EVENT HANDLING PORTION OF
  37.         MY APPLICATION WITHOUT MANUALLY SETING THE EVENT MESSAGE?
  38.  
  39.         THIS SEEMS REAL USELESS!
  40.  
  41.    Finally, sometimes the scroll causes the whole screen to be filled in.
  42.   If anyone want's to help ridicule my code, I'll post the actual Draw()
  43.   routine or e-mail it to them Monday (when I'm in the same county as the
  44.   code).
  45.  
  46.   Many thanks.
  47.   Jeff Andle
  48.  
  49.   P.S.  I'm glad I didn't define my Pattern in Floating point, as
  50. originally planned!  (Then again, ... ;-)   )
  51.