#51 new
Matt

Drawing optimization

Reported by Matt | February 13th, 2009 @ 10:53 AM | in 1.1.0 ("Malted Milk")

A preliminary investigation using Shark reveals that the great majority of CPU time is spent drawing & redrawing the layer window.

Two approaches have been suggested to me:

1) Use NSWindow #cacheImageInRect to store the base hexagonal matrix as an image that can be reflushed & only redraw changed cells. This would require each cell to know if it was updated and needed to redraw.

2) Use CoreAnimation. It's not entirely clear what this would mean but the implication is that much of the CPU load would be moved to the GPU so, ultimately, leading to a lower CPU usage for the same (or better) workload.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Elysium is a generative music application inspired by the mighty reacTogon (by Mark Burton) and brought to life by Matt Mower. It is written for Mac OS X in Objective-C using the excellent Cocoa application framework and uses CoreMIDI to drive any MIDI instrument to produce sound.

People watching this ticket

Pages