That was 10 years ago when computers were significantly slower than today. When you are using floats it is most likely fastest to use the CPU's sin, cos, sqrt commands and others. Tables only make sense if it is faster to calculate the index into the table than the needed value itself.rpeter wrote:Optimizing for speed is not just the compiler's territory. Ken used precalculated tables for almost everything: power, sqrt, sin, cosin, angles. Some were static tables in the code, the bigger ones were loaded from the grp file. Sure, you won't find many floats in Build, probably none in the Duke's game code, but with a fixed precision float lookup tables can also be created.
That depends on the amount you have in a level. Even though the AI doesn't cost much in overall percentage of execution time large amounts of monsters can still have an impact.I still cannot imagine that those bird-brain piggies could be fitted with an AI that can slow down ZDoom noticably...