[futurebasic] Slow QuickDraw

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1999 : Group Archive : Group : All Groups

From: Michael Malone <crochety@...>
Date: Sat, 30 Jan 99 14:43:27 -0800
Greetings good FB folks!

I have a couple of questions about Quickdraw.
They go on- and off-  FB topic.
I'm drawing a world map from a handle containing 1311 polygons (polylines 
mostly) defining most of the continents, islands, countries, states etc.
It takes FB or the compiled app. about 2 seconds on an 8600/250 or a 
7300/200 to draw the while thing.  Its about 264kB of data.
No Gworld/copybits here - just straight to the screen. I'm using OS 
8.5.1/8.1.1
This seems inordinately slow to me. You can see the more lengthy lines 
drawing.
This is the code:

'===========================================
LOCAL FN WorldMap& (MapHdl&)
'=========================================== 
DIM MapHdl&
CLS
CALL SETORIGIN (-450, -300)
AUTOCLIP = _true

osErr% = FN HLOCK (MapHdl&)
LONG IF osErr% = _nil
  AtlasPtr& = PEEK LONG (MapHdl&)

'Map polygons are integer values of (scaled) Lat/Long.
'occuring in sequence starting at offset 5400 bytes 
'into the file.
'Bytes 0-5399 contain an index of up to 1350 long  
'integer offsets identifying the position of each 
'poly relative to 5400.

  CALL PENNORMAL
  FOR i% = 0 TO 1310
    PolyPtr& = AtlasPtr& + 5400 +[AtlasPtr& + 4*i%] 
    CALL FRAMEPOLY (@PolyPtr&)
  NEXT

XELSE
  BEEP:BEEP
END IF

osErr% = FN HUNLOCK (MapHdl&)
END FN = dummy&
'=========================================== 

Questions:
1) Am I out of line expecting faster than this? 
2) Is drawing to a GWorld actually faster than to the screen perhaps? 
3) Does the non-PPC nature of FB-II come into play here. Or should 
Quickdraw (I assume it's native by now)  operate at full speed once the 
CALL is placed?
4) Here's where it gets interesting.  I just got a super-duper Mactell 
Vision Pro ...blah blah  graphics accelerator card which advertises among 
other things, Quickdraw enhancement.
Guess what?  In this instance it does nothing!  Nothing? Well maybe it 
slows things down a hair.
Any clues as to what's going on/what my expectations should be?  
TIA    -  Mike



=====================
Mike Malone
crochety@...
=====================