On Wed, 2009-08-12 at 00:28 +0700, Hieu Le Trung wrote: > Robert, > > Thanks for your information. So in case I need to run Clutter on non > FPU platform, I must spend effort on porting it? Why is it named Fixed > Point API :)
I'm assuming you are talking about Clutter 1.0 here? The only think that should be "named Fixed Point API" is the CoglFixed utility API. The CoglFixed typedef and utility API are the only things left that support fixed point maths. They can be used by applications for optimizations if they want, but the rest of Clutter and Cogl only accepts single precision floats. All calculations internal to Clutter will be done using floating point so if your profiling shows that any of them are a bottleneck you may need to patch Clutter to implement some fixed point fast-paths, and accept the loss or precision and range implied. I would strongly recommend that you profile your application before assuming what effort is involved. There are many factors that may affect your applications performance and the cost of soft float on your platform may not be a problem depending on the complexity of the scenes you are painting. kind regards, - Robert -- Robert Bragg, Intel Open Source Technology Center -- To unsubscribe send a mail to [email protected]
