Sunday, October 25, 2009

[android-developers] Why a single String.format reduce the FPS from 35 to 25 ?

Hi,  String.format("%.3f, %.3f, %.3f", float_1, float_2, float_3); // FPS 25  // FPS 35 StringBuffer buff = new StringBuffer(); buff.append((int)(float_1*1000)); buff.append(',');
buff.append((int)(float_2*1000)); buff.append(',');
buff.append((int)(float_3*1000)); buff.append(',');
Device is HTC Hero.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment