Box2D Forums

It is currently Tue May 21, 2013 5:10 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Mar 11, 2008 2:44 pm 
Offline

Joined: Sat Feb 09, 2008 4:00 pm
Posts: 75
I listened to this interesting post here from kavaler.
Quote:
...The pyramid comes to a rest in about 15 seconds now...
15 secs for the TestBed/pyramide example :) Thats what I'm dreaming on...
Could fixed point math increase the box2d speed for slow processors ?
Should I give a try to kaveler's fixpoint math for my HTC touch cruise ?
(windows mobile 6 running on a 400 MHz Qualcomm Processor)

regards,
nimodo

ps: somebody knows a working patch-utility, running on windows ?


Top
 Profile  
 
PostPosted: Thu Mar 13, 2008 5:28 pm 
Offline

Joined: Thu Dec 06, 2007 7:36 am
Posts: 13
Fixed point math is used on processors that do not have a floating point unit (FPU). If an FPU is not present, floating point operations are emulated in software, which is very slow. In this case it is a lot faster to use fixed point math. Have a look at the specs of your processor to find out if it has an FPU. If it does, you are probably better off with the floating point implementation, because our fixed point changes are still unstable, and you will not see a speed improvement on a CPU with FPU.


Top
 Profile  
 
PostPosted: Sat Mar 15, 2008 5:15 am 
Offline

Joined: Sat Feb 09, 2008 4:00 pm
Posts: 75
It makes sense, what you are saying. It is the qualcomm msm 7200 chipset, if i interpret http://www.pdadb.net/index.php?m=cpu&id=a7200 correctly the chipset has a floating point unit.

But i will try and compare anyway testbed/pyramide ....

saludos - nimodo


Top
 Profile  
 
PostPosted: Sat Mar 15, 2008 9:37 am 
Offline

Joined: Sun Sep 23, 2007 2:35 pm
Posts: 803
Actually, if I remember correctly back to the dark ages of gaming, sometimes even if you have an FPU you'll get a speed boost from fixed point because the lower end FPUs still don't do stuff as quickly as you can do integer math. These days on desktops the speed difference has evaporated (on some PCs integer divides are even slower than floating point ones), but on some handhelds it's probably worth checking the difference.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group