lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


MikePall wrote:
> Maybe. Maybe not. Do you use Direct3D/DirectX? If yes, then you
> are just shadowing the problem here and it will come back to
> haunt you elsewhere. Read:


> It should be noted that turning on D3DCREATE_FPU_PRESERVE
> reportedly has no detectable performance impact on modern CPUs.

I can see your point but I don't think that lua handles this problem
correctly. As soon as lua does "conversion tricks" that assume the
coprocessor to be in a specific state lua has to take care about being in
that state AND recovering the old state afterwards. This is what you expect
from DirectX and what DirectX is does using D3DCREATE_FPU_PRESERVE. 

Everything that does an implicit assumption concerning the FPU state (which
I did not find noted in any doc yet?) has to be considered as a bug, imho.