FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1399 : too many temporary objects (particularly w/ color) created with PGraphicsAndroid2D renderer
Last modified: 2009-11-30 13:11
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
ASSIGNED
Resolution:
-
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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
.