Re: [Algorithms] FIST optimization
Brought to you by:
vexxed72
From: Amit B. <am...@de...> - 2000-09-09 18:52:23
|
If you're using D3D, then it's quite possible that D3D is changing the rounding mode. I think there's a flag somewhere in D3D which you can set so it restores the FPU control word every time D3D decides to change it. Ahh.. found it : IDirectDraw7::SetCooperativeLevel has a flag called "DDSCL_FPUPRESERVE". From the docs : "The calling application cares about the FPU state and does not want Direct3D to modify it in ways visible to the application. In this mode, Direct3D saves and restores the FPU state every time that it needs to modify the FPU state. For more information, see DirectDraw Cooperative Levels and FPU Precision. " That might resolve your issues. |