Re: floating point precision
From: Eyal Teler (et_at_nospam-et3d.com)
Date: 12/15/04
- Previous message: zak_at_secretlevel.com: "floating point precision"
- In reply to: zak_at_secretlevel.com: "floating point precision"
- Next in thread: zak_at_secretlevel.com: "Re: floating point precision"
- Reply: zak_at_secretlevel.com: "Re: floating point precision"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 08:22:45 +0200
If you create the device with the D3DCREATE_FPU_PRESERVE flag, it will
keep the FP state, instead of switching to single precision.
Eyal
zak@secretlevel.com wrote:
> hello,
>
> i have recently discovered that d3d silently switches the floating point
> precision to 24bits. this was giving me undue headaches!! i have my own
> temporary solution of setting the floating point precision back to the
> default 53bits and then restoring it after using _controlfp(...) function. i
> am curious as to why msft does this and if it must be this way. either way i
> think it is very important that you document this somewhere public (like in
> the sdk documentation!!! ).
>
> thanks,
> zak taylor
> zak@secretlevel.com
>
- Previous message: zak_at_secretlevel.com: "floating point precision"
- In reply to: zak_at_secretlevel.com: "floating point precision"
- Next in thread: zak_at_secretlevel.com: "Re: floating point precision"
- Reply: zak_at_secretlevel.com: "Re: floating point precision"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|