2 ms·
Graphs fit well with functional code styles. Art and games have a lot of places where a functional style makes sense. Games are usually heavily pre-allocated
by jayd16 5y ago
Graphs fit well with functional code styles. Art and games have a lot of places where a functional style makes sense.
Games are usually heavily pre-allocated and work tends towards per frame computation operating on a pre-allocated state. Again, this leans into the functional style and thus an easy graphical style.
You can write behavior trees that run per frame without a lot of hidden state. You can write shader graphs as shaders also happen to be very functional in style.
It also helps that the field attracts very visual people by nature.
It's also a graphical field by nature. A console might make sense for some programs but a graphical interface with a built in graphical output makes more sense when you're operating on meshes and textures and such.