[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Which parts of DirectX interfere with Lua?
- From: "Chen Li (MSRA)" <chenli@...>
- Date: Tue, 18 Apr 2006 05:30:04 +0800
You can use "D3DCREATE_FPU_PRESERVE" when creating the D3D device (the behavior flag).
This will force Direct3D to not change the FPU control word, running the pipeline using the precision of the calling thread.
This is the easiest way to solve this problem, although there might be performance hit to enable this flag.
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Matt Campbell
Sent: 2006年4月17日 12:01
To: lua@bazar2.conectiva.com.br
Subject: Which parts of DirectX interfere with Lua?
Hello:
I've read that DirectX causes problems with Lua because it sets the FPU
to single-precision mode. Which parts of DirectX do this? If I use
DirectSound but not DirectDraw or Direct3D, will I still have problems?
Thanks.
--
Matt Campbell
Lead Programmer
Serotek Corporation
www.freedombox.info
"The Accessibility Anywhere People"