Supcom/Moho engine rewrite
-
@Sprouto Thank you for testing!
So I would benchmark the game at when it hits a sim speed of 0, instead of +10 as i don't start splitting things off to other cores/threads until certain amount of work is hit (as there is overhead to using the threadpool, you might not be seeing this until below 10+, what i would expect is my version is able to handle staying above or at realtime for longer than the base game.
As well as scaling to more units, projectiles, effects, etc...
Of course i can't do anything about lua overhead that must be serial.
It may also be that those thread offloading thresholds need tweaking for other machines.
For me when I'm pushing the engine as far as i can, i get to an average cpu usage between 2-5 cores, depending on the work load, high refresh screens and second monitor will add further core usage. As you can see in the screenshot from the ai benchmark above.
I would be keen on you running the benchmark i have posted, and seeing what results you get on your hardware, i can also set this up to run a LOUD benchmark.
-
@jobi82 Hello!
I can certainly look in to it, currently I'm just going off fafs lua, which has the campaigns disabled as broken, or something to that effect, (although its been ages and ages since i double checked that
and i could be completely wrong )However i will check they work against the base game
is that your intension? -
@RavenCurow Very cool! let me know if you have any issues and i will gladly help.
Did you see the vscode debugging I posted higher up? I wonder if that is useful or not?

-
@D4rkstalker Do you think you could please run the benchmarking tool I just posted above? I would love to see how your 9800x3d shines!
And include the html output graphs?
-
@SlightlyGrilled I didn't even think about it but yes, it would be the base game then.
-
@slightlygrilled how do I conveniently upload the all.html file?

If you rename that to all.html then you have the visuals. Ran on a 7950x3d with 128gb of ram. I was using the computer for other things, like playing FAForever. I do get loads of these:
thread 'worker 16' (41112) panicked at /cargo/registry/25cdd57fae9f0462\full_moon-2.2.0\src\ast\parsers.rs:3709:37: called `Result::unwrap()` on an `Err` value: () 2026-12-01T20:56:46.308869Z ERROR panic: crashed: panicked at /cargo/registry/25cdd57fae9f0462\full_moon-2.2.0\src\ast\parsers.rs:3709:37: called `Result::unwrap()` on an `Err` value: () 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: <unknown> 10: <unknown> 11: <unknown> 12: <unknown> 13: <unknown> 14: <unknown> 15: <unknown> 16: <unknown> 17: <unknown> 18: <unknown> 19: <unknown> 20: <unknown> 21: <unknown> 22: <unknown> 23: <unknown> 24: <unknown> 25: <unknown> 26: <unknown> 27: <unknown> 28: <unknown> 29: <unknown> 30: <unknown> 31: <unknown> 32: <unknown> 33: <unknown> 34: <unknown> 35: <unknown> 36: <unknown> 37: <unknown> 38: <unknown> 39: <unknown> 40: <unknown> 41: <unknown> 42: <unknown> 43: <unknown> 44: <unknown> 45: <unknown> 46: <unknown> 47: <unknown> 48: <unknown> 49: <unknown> 50: <unknown> 51: <unknown> 52: <unknown> 53: <unknown> 54: <unknown> 55: <unknown> 56: <unknown> 57: <unknown> 58: <unknown> 59: <unknown> 60: <unknown> 61: <unknown> 62: <unknown> 63: <unknown> 64: <unknown> 65: <unknown> 66: <unknown> 67: <unknown> 68: <unknown> 69: <unknown> 70: <unknown> 71: <unknown> 72: <unknown> 73: <unknown> 74: <unknown> 75: <unknown> 76: <unknown> 77: <unknown> 78: <unknown> 79: <unknown> 80: <unknown> 81: <unknown> 82: <unknown> 83: <unknown> 84: <unknown> 85: <unknown> 86: <unknown> 87: <unknown> 88: <unknown> 89: <unknown> 90: <unknown> 91: <unknown> 92: <unknown> 93: <unknown> 94: <unknown> 95: <unknown> 96: <unknown> 97: BaseThreadInitThunk 98: RtlUserThreadStart thread="worker 19" thread 'worker 19' (4128) panicked at /cargo/registry/25cdd57fae9f0462\full_moon-2.2.0\src\ast\parsers.rs:3709:37: called `Result::unwrap()` on an `Err` value: () -
Interesting, my results seemed better with 5800X3D and 32 GB ram (slightly improved clocks/timings). Linux power? CPU usage seemed much more stable for me from the graphs, I had plenty of background stuff still open.
The first test mine on left, yours on right. Basically same the other tests, the last one the difference was a bit bigger even.

-
@Jip thanks! please could you give me the log for the game? It will be something like game.log
I think that will be a mod that my lua is failing to parse.
When you say running faf, do you mean the actual game? i imagine that will make the benchmark worse, as they will both be fighting over memory bandwidth etc...

-
@Giebmasse thank you!
yes I wonder if the result differ due to system load, as i would certainly expect the generation ahead to be faster, but it could just be linux!it could also be that, that 7950x3d only has the 3d cache on one of the 8 core chiplets, and my code is certainly not aware of cpu topography like that.
@jip you could try and limit it to one chiplet with Process Lasso, but i have never used one of those asymmetrical chips.
My mac has 6 perf cores, and 12 efficiency cores, and seems to do fine, with me simply giving the game full core access.you can also limit the cores it uses by setting an env before calling the bench, from powershell
$env:RTS_CORES=8; ./rts-core-engine.exe --bench all --bench-graph all.html -
@Jip thanks! please could you give me the log for the game? It will be something like game.log
I think that will be a mod that my lua is failing to parse.
When you say running faf, do you mean the actual game? i imagine that will make the benchmark worse, as they will both be fighting over memory bandwidth etc...

The computer was not saturated at all. CPU < 20%, RAM < 40%, GPU < 50%.
I just ran some tests again, these are the logs:
game.ai.txt
game.air.txt
game.air-duel.txt
game.land.txt
game.txtAnd the
all.*files: -
Are you running your memory with proper settings? Or the default slow SPD?
-
I opened a PR that adds the ability to manually capture screenshots using Ctrl + F.
https://github.com/ThomasMonkman/rts-core-engine/pull/151
This has a few advantages over the base game's implementation.
-
@slightlygrilled this is amazing. Just wanted to pop in and say thanks and extra thanks for adding cross-platform compatibility and hoping it will stay around, hard to believe I just got FA running on my Mac. Super excited to see where this will go, especially with improvements to the engine, graphics, controls, etc.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login