Bug 1399 : too many temporary objects (particularly w/ color) created with PGraphicsAndroid2D renderer
Last modified: 2009-11-30 13:11




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-11-30 13:10
PGraphicsAndroid2D borrows from PGraphicsJava2D from the original
Processing installation, where it's cheaper to construct temporary objects
for colors and shapes. Under Android these aren't efficient, especially
when the native color format is ARGB packed ints, which is used all over
the Processing API anyway.

A lot can be optimized with regards to how colors are handled, particularly
because not as many assignments (e.g. strokeR, strokeRi, et al) aren't
needed as much on Android.
This bug is now being tracked here.