Direct 3D effect on double data type

I recently added some DirectX code to my program, and now my double type variables have a range / resolution for the float (.. or at least a smaller range / resolution than they were used). If I remove direct3D initialization - "Direct3DCreate9 (D3D_SDK_VERSION)" - the problem will disappear. Any insight? Thanks.

+3
source share
2 answers

Direct3D will change the state of the FPU for forced mode with one precision.

If you want to keep the double precision mode, use D3DCREATE_FPU_PRESERVEwhen creating a D3D device. This will affect D3D performance:

http://msdn.microsoft.com/en-us/library/bb172527(VS.85).aspx

+7

: Direct3D FPU, Direct3D FPU :

, , Direct3D, FPU. CreateFlags.FpuPreserve, CLR , .

+1

Source: https://habr.com/ru/post/1703392/


All Articles