839 karma · joined September 6, 2012
So generally Wuffs is great and you should use it to decode your PNGs. There are some downsides: not all of the obscure bit depths and formats that PNG supports are loaded as-is, some are converted to more standard formats.
Also the Wuffs documentation is a bit hard to understand. It's a litle bit of a mission getting PNG decoding working. You can see my code for that here though: https://github.com/glaretechnologies/glare-core/blob/2c7174c...
https://github.com/glaretechnologies/glare-core/blob/master/... https://github.com/glaretechnologies/glare-core/blob/master/...
I would fix it if I could be bothered. Instead I will just use the Cuda whisper backend which is pretty nice and fast.
As far as scaling goes, fancy scaling solutions are currently in the 'future-problems' basket. Currently Substrata just uses a naive client-server solution with O(n^2) messaging where n is the number of connected clients - e.g. each message from a client is sent to all other clients. I'm relying on the performance of C++ to manage despite this. I've tested with a few hundred concurrent clients.
Cheers, Nick
It's out there live, you can visit the world right now via https://substrata.info/
It can do networked physics, see https://youtu.be/_rECxiwVteY, https://youtu.be/CzGz6voUE_8 etc.
I haven't gone through any of the maths in detail. I do however have a semi-classical electrodynamics computer simulation that I occasionally work on, so why do the maths when you can just run a simulation :)
When I get back to it maybe I will try and simulate Compton scattering or the photoelectric effect.
EDIT: will try and find Compton paper later, going for walk now.