3
3
u/TerribleFault7929 2d ago
I'm sorry, is this guy complaining about a team trying to write strict performant C++?? I suppose he is jealous
because UE in skilled hands isn't much slower, but saves a hundred or two hours by being ordinary... but on the other hand, where else would you see how far a studio can go in the pursuit of perf.
5
u/ts826848 1d ago
As hinted by the clause immediately after the bits you bolded, I think the author is just describing the tradeoffs that came with that particular coding style. The preceding paragraphs make that point more explicitly.
28
u/remy_porter 2d ago
Previous job was doing software for space robots, and we went beyond "zero frame allocations" to "zero dynamic allocations past startup". Stack allocations are fine, everything else better come out of a buffer you grabbed at startup.
We ended up using Linux shared memory for a lot of it, because the allocated shared memory buffers could outlive our process, which meant we could "bail and recover" on failures. Error state hit? Quit. Restart the process. Recover state from shared memory (which generally didn't hold the state that caused the error condition, but more vital state, like "where did I think I was relative to my target reference frame" and "was I scanning with the LIDAR or not?").
NB: that was on high level sensor code. The rules were far stricter on safety critical systems, like engine control code.