[Gtkradiant] r395 - in GtkRadiant/branches/Rambetter-math-fix-experiments: libs libs/mathlib tools/quake3/q3map2

svn-noreply at zerowing.idsoftware.com svn-noreply at zerowing.idsoftware.com
Fri Dec 31 02:54:43 CST 2010


Author: rambetter
Date: Fri Dec 31 02:54:43 2010
New Revision: 395

Modified:
   GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib.h
   GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib/mathlib.c
   GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c
   GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/q3map2.h
Log:
Making more progress on EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES code.

- Setting EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES to 1 (enabled).  I'll
turn this off before merging into trunk.

- In function MapPlaneFromPoints() in map.c, doing a bit tighter math when
EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES is on.  This comes at the
expense of a few extra CPU cycles.  The signature of the function remains
the same.

- In VectorNormalize() in mathlib.c, fixing a cast of the return value.
I did not see compile warnings or runtime errors, but it seems wrong the
way it was.

- Adding VectorNormalizeAccu() in mathlib.c, for normalizing vectors built on
the high resolution data type.


Modified: GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib.h?view=diff&rev=395&p1=GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib.h&r1=394&p2=GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib.h&r2=395
==============================================================================

Modified: GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib/mathlib.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib/mathlib.c?view=diff&rev=395&p1=GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib/mathlib.c&r1=394&p2=GtkRadiant/branches/Rambetter-math-fix-experiments/libs/mathlib/mathlib.c&r2=395
==============================================================================

Modified: GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c?view=diff&rev=395&p1=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c&r1=394&p2=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/map.c&r2=395
==============================================================================

Modified: GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/q3map2.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/q3map2.h?view=diff&rev=395&p1=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/q3map2.h&r1=394&p2=GtkRadiant/branches/Rambetter-math-fix-experiments/tools/quake3/q3map2/q3map2.h&r2=395
==============================================================================



More information about the Gtkradiant mailing list