I'm currently investigating box2d performance on Android device without FPU.
I've compiled box2d (2.0.1) using NDK and measured time for 1000 step()s on a Pyramid test.
Results for the T-Mobile G1 device:
* using float: 37641 ms
* using fixed: 19574 ms
* using fixed (long long): 24308 ms
I've tested 'long long' version of fixed because it is the only solution when original fixed (which uses long) is unable to deliver needed precision/max values (I'm new to box2d, but I've searched forum and encountered some concerns about it).
So it is pretty obvious that fixed point is useful. And yet it is not in the current SVN version. And also tweaks related to fixed point are gone from the .cpp files. Why so? Does support for fixed point officially planned?
I've compiled box2d (2.0.1) using NDK and measured time for 1000 step()s on a Pyramid test.
Results for the T-Mobile G1 device:
* using float: 37641 ms
* using fixed: 19574 ms
* using fixed (long long): 24308 ms
I've tested 'long long' version of fixed because it is the only solution when original fixed (which uses long) is unable to deliver needed precision/max values (I'm new to box2d, but I've searched forum and encountered some concerns about it).
So it is pretty obvious that fixed point is useful. And yet it is not in the current SVN version. And also tweaks related to fixed point are gone from the .cpp files. Why so? Does support for fixed point officially planned?