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