FPU in single precision
by Prairie Games · in Artist Corner · 10/17/2002 (7:41 pm) · 0 replies
CRAP... posted this in the wrong forum...
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
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