I let Widelands run until it found Both current FPS + Average FPS < 20.0 10x in a row, then wrote the number of flags in each economy and triggered a crash to save myself from digging through long logs.
With just 1 AI running in release mode, I couldn't crash it at 1x speed, but I could on some maps with higher speeds.
Having multiple AI players running instead of just 1 does seem to be a factor. How about we just have a common cutoff anyway, to keep things simple? I'm thinking 500 flags.
The peak values are:
Debug build without ASan
========================
574 flags: seafaring, 8 AIs
486 flags: no seafaring, 1 AI
478 flags: seafaring, 1 AI
Release build, 4x speed
=======================
559 flags: seafaring, 8 AIs
1015 flags: no seafaring, 1 AI
limit not reached: seafaring, 1 AI
Release build, 2x speed
=======================
548 flags: seafaring, 8 AIs
1016 flags: no seafaring, 1 AI
limit not reached: seafaring, 1 AI
Release build, 1x speed
=======================
676 flags: seafaring, 8 AIs
limit not reached: no seafaring, 1 AI
limit not reached: seafaring, 1 AI
I have attached some test results.
I let Widelands run until it found Both current FPS + Average FPS < 20.0 10x in a row, then wrote the number of flags in each economy and triggered a crash to save myself from digging through long logs.
With just 1 AI running in release mode, I couldn't crash it at 1x speed, but I could on some maps with higher speeds.
Having multiple AI players running instead of just 1 does seem to be a factor. How about we just have a common cutoff anyway, to keep things simple? I'm thinking 500 flags.
The peak values are:
Debug build without ASan ======= ======= ===
=======
574 flags: seafaring, 8 AIs
486 flags: no seafaring, 1 AI
478 flags: seafaring, 1 AI
Release build, 4x speed ======= ======= ==
=======
559 flags: seafaring, 8 AIs
1015 flags: no seafaring, 1 AI
limit not reached: seafaring, 1 AI
Release build, 2x speed ======= ======= ==
=======
548 flags: seafaring, 8 AIs
1016 flags: no seafaring, 1 AI
limit not reached: seafaring, 1 AI
Release build, 1x speed ======= ======= ==
=======
676 flags: seafaring, 8 AIs
limit not reached: no seafaring, 1 AI
limit not reached: seafaring, 1 AI