Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downgrade from lua 5.4 to lua 5.1 (only integer) as default #5

Open
RodrigoDornelles opened this issue Nov 6, 2024 · 3 comments
Open

Comments

@RodrigoDornelles
Copy link
Member

image

@PinhoLinux
Copy link

Qual o problema?

@RodrigoDornelles
Copy link
Member Author

Qual o problema?

o gameboy advanced não possui FPU então operacores matematicas são muito custosas por emular ponto fluante em software, eu não sabia que com lua 5.1 era possivel alterar o number além de float32 ou double, no caso eu vou dar suporte a ambos os casos lua 5.4 com float32 ou então lua 5.1 (apenas inteiros), por padrão vai ser lua 5.1 porque isso vai ordens de grandeza em perfomance mas ainda vai ser possivel alternar usando uma flag com cmake -DLUA_MODE=


The Gameboy Advanced does not have an FPU so mathematical operations are very expensive to emulate floating point in software, I did not know that with Lua 5.1 it was possible to change the number beyond float32 or double, in this case I will support both cases Lua 5.4 with float32 or Lua 5.1 (only integers), by default it will be Lua 5.1 because this will change orders of magnitude in performance but it will still be possible to switch using a flag with cmake -DLUA_MODE=

@RodrigoDornelles RodrigoDornelles changed the title downgrade to lua 5.1 and use only integers downgrade from lua 5.4 to lua 5.1 (only integer) as default Nov 6, 2024
@PinhoLinux
Copy link

Vou escreve sobre, já já te retorno. As 18:20hrs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants