|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
I have found that my JPEG drawing code is extremely slow and after much research I have found that the slow down began with MacOS 9.1.
I wrote a very simple (about 120 lines of code) application that loads a JPEG and draws it 100 times. On the same machine (iMac 266MHz) I ran my test running MacOS 9.0.4, and it takes 266 ticks to call GraphicsImportDraw 100 times. If I ran my test with macOS 9.1 it takes 733 ticks.
On my PB G4, running the same application it takes 775 ticks if I draw to an offscreen GWorld. If I change the application to draw directly on the screen it only takes 166 ticks to draw the JPEG 100 times.
If I change any parameters to the graphics importer, like the BoundsRect or DestRect then it will take 755 ticks to draw onto the main window, which is visible and on screen.
|>Very slow GraphicsImportDraw on MacOS 9.1 (From: David Fichou <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.