For building a scene graph a decision needs to be made between using TFixedPoint and TFloatPoint for all geometries and math. GR32 uses both Fixed and Float.
- Why are there two point types in GR32?
- Which is faster / more efficient?
- Which is safer?
- Any other suggestions re this issue?
Operational boundaries for the graph:
- max 500 primitives/elements per node, avg is 20
- max 2000 nodes per scene, avg is 250
Features for the graph:
- Graphics are 2d
- Graphics must be of a high visual quality
- Animation is required
- Isometric projections is required
The intended use for the graph:
- Business graphics (charts, grids etc)
- Modeling tool
- Textual presentation
- Process simulations
Fixed Point math is generally faster, so TFixedPoint will perform faster mathematically.
Floating Point can (depending on the degree of precision employed on Fixed Point values) provide greater precision than Fixed Point, but will not perform as quickly in terms of mathematical routines.
“Safety” is too subjective to answer… safer how?
As per your final part-question, it depends what you value more: precision or performance.
If precision is your primary objective, go with TFloatPoint. If performance is your primary objective, go with TFixedPoint.