Page 2 of 2

Re: Cozy Lights - Voxel light maps

Posted: Fri Nov 29, 2024 17:39
by LMD
SingleDigitIq wrote:
Fri Nov 29, 2024 16:24
If only LuaJIT wouldn't lack bit operations. Bit operations probably should be fast even in a JIT, and if they wont be fast, then they would at least eliminate the need for some unique types, which could potentially result in massive improvement anyway. Another one scored for NodeJS. All day, every day.
This statement is blatantly false:
  • LuaJIT has bit operations.
  • They are fast. (There may be minor drawbacks to them just being functions, but that shouldn't matter much to LuaJIT.)
  • They treat floats as 32-bit integers. Just like JS.
  • Luanti bundles LuaBitOp so you can use bitops on PUC too.
TL;DR: Bitops are completely fine to use in Luanti.

Re: Cozy Lights - Voxel light maps

Posted: Sat Nov 30, 2024 13:01
by SingleDigitIq
Strange, when I last looked into it, it wasn't a thing? Or maybe I wasn't paying attention