Page 2 sur 2

Re: X3D - A 3D Engine for Nspire and PC

Message non luPosté: 09 Juil 2018, 10:25
de Ti64CLi++
Lionel Debroux a écrit:What are the binary's size and the RAM usage for the Nspire, if you're still maintaining support for that platform ?

I hope so. If we could have a realist port of Portal, not Portal 2D, the Nspire would now be the best calculator ever, if she isn't already ;)
Good job catastropher :bj:

Re: X3D - A 3D Engine for Nspire and PC

Message non luPosté: 09 Juil 2018, 18:15
de catastropher
Lionel Debroux a écrit:Good progress :)

Thank you! :3

Lionel Debroux a écrit:You're right to have switched to C++. C has been stagnating for years, and platforms which don't have a C++ compiler are unfit for running such engines at a decent framerate anyway.

You're absolutely right, I should have switched to C++ a long time ago. Others in the community were actually upset that I switched, asking "Do you want slow code"? It seems the myth that C++ is slower than C is still pervasive...

Lionel Debroux a écrit:What are the binary's size and the RAM usage for the Nspire, if you're still maintaining support for that platform ?

The Nspire is indeed still supported! Currently, the executable is ~550 Kb, but that's because I've been lazily compiling every file with -O3. I need to spend some time figuring out which files are actually worth the increase in size. If size becomes a problem, I could probably use Thumb in a few places.

As for memory usage, current peak usage is 2-3 MB for a large level. Most of that is taken by the surface cache for lighting. When the game is done, I'll make sure it takes no more than 8 MB.

Ti64CLi++ a écrit:I hope so. If we could have a realist port of Portal, not Portal 2D, the Nspire would now be the best calculator ever, if she isn't already ;)
Good job catastropher :bj:

Thanks! My hope is that creating this will draw more people to the Nspire. I think a lot of people scoffed a few years ago when I told them I was going to make Portal, but people like Lionel have believed in me the whole time which has kept me going! :3