Game Development Community

TGE: FPU Single Precision Problem

by Prairie Games · in Torque Game Engine · 10/18/2002 (5:35 am) · 1 replies

Let's see if I can get this into the right forum this time...

At least on win32:

What in torque is setting the FPU to single precision?

I don't see it being set with ASM or _controlfp in the engine...

I am using OpenGL... D3D has a "PRESERVEFPU" flag I have used in the past... not familiar with any such OpenGL flag... that is if OpenGL/the driver is setting the single precision mode...

OpenAL? Where? What? Who? :)

It isn't that whatever is setting the FPU shouldn't... though, if something sets the precision it should restore it when it is done... or give an option...

I have some code that needs double precision... and am setting the FPU accordingly... though if I can patch this up in another way, which is cross platform, and makes me feel more secure about compatibility/speed of the FPU state,I'd rather do that...

-J

#1
10/18/2002 (3:12 pm)
I'm not much of an expert on coding, but if I remember correctly theres a a wrapper to enable d3d to use opengl standards.( As the torque engine uses opengl.) That be the source of the extenstion.

Openal is the open audio standard.