Closed samreid closed 10 years ago
Even though garbage collections are not a significant problem in this sim, reducing allocations will improve the performance.
Significantly reduced Color allocations. See commits df40e5873427b1306163ad75a768f593f46aa77b and 9d9f16d925adc8f7f4d6b83f4f45f7b1278d25b0. Reduced Vector2 allocations by updating the perceived color only when it changes, so as not to trigger re-draws of the thought bubbles.
Performance on iPad seems good. Closing for now.
Use phetAllocation to track + remove unnecessary allocations. Consider pooling where appropriate.