FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Supcom/Moho engine rewrite

    Scheduled Pinned Locked Moved Contribution
    86 Posts 39 Posters 4.8k Views 12 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Sprouto
      last edited by

      At present, it appears to be working normally with LOUD - but there's no Steam connectivity (which LOUD utilizes for it's multiplayer hosting).

      There are some odd sound issues, with some units being excessive - but I haven't identified which units. Total Mayhem is a likely culprit, as they routinely overmodulated their audio files.

      Overall performance, based on the saturation tests I normally run for LOUD, indicates that the saturation point (where the SIM can no longer hold onto +10) is about 10% higher than the STEAM based EXE. Which appears to match what you're seeing from games with other AI.

      I haven't as of yet, pushed out to the memory limit, which would be something LOUD users would be greatly interested in, as games with 10k units, on 40/80k maps, are fairly common. I'll try to arrange that testing at my next opportunity.

      S 1 Reply Last reply Reply Quote 2
      • J Offline
        jobi82
        last edited by

        Would it be possible to add single player? I'd love to replay the campaigns.

        S 1 Reply Last reply Reply Quote 0
        • S Online
          SlightlyGrilled
          last edited by SlightlyGrilled

          Now with benchmarking!
          https://github.com/ThomasMonkman/rts-core-engine/releases/tag/v0.3.2

          You can now run some benchmarks to see how your system handles the game

          this will also output some pretty graphs, it runs 4 benches
          63k land
          63k air
          10k v 10k air
          4v4 standard ai 1 hour on setons

          rts-core-engine.exe --bench all --bench-graph all.html
          

          the graphs break down where time was spent, along with ram and cpu usage.

          Along with some more fixes for LOUD

          • alt f2 cheat menu now works
          • implemented GetEntitiesInRect, which was a stub before

          The graph outputs of that benchmark command

          Screen Shot 2026-11-30 at 22.23.06.png
          Screen Shot 2026-11-30 at 22.23.03.png
          Screen Shot 2026-11-30 at 22.23.00.png
          Screen Shot 2026-11-30 at 22.22.53.png

          1 Reply Last reply Reply Quote 3
          • S Online
            SlightlyGrilled @Sprouto
            last edited by SlightlyGrilled

            @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.

            1 Reply Last reply Reply Quote 0
            • S Online
              SlightlyGrilled @jobi82
              last edited by

              @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?

              J 1 Reply Last reply Reply Quote 0
              • S Online
                SlightlyGrilled @RavenCurow
                last edited by

                @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? 🙂 🐛

                1 Reply Last reply Reply Quote 0
                • S Online
                  SlightlyGrilled @D4rkstalker
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jobi82 @SlightlyGrilled
                    last edited by

                    @SlightlyGrilled I didn't even think about it but yes, it would be the base game then.

                    1 Reply Last reply Reply Quote 0
                    • JipJ Offline
                      Jip
                      last edited by Jip

                      @slightlygrilled how do I conveniently upload the all.html file? 😃

                      all.txt

                      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: ()
                      

                      A work of art is never finished, merely abandoned

                      S 1 Reply Last reply Reply Quote 0
                      • GiebmasseG Offline
                        Giebmasse Team Lead FAF Association Board Moderator Admin
                        last edited by

                        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.

                        alt text

                        S 1 Reply Last reply Reply Quote 0
                        • S Online
                          SlightlyGrilled @Jip
                          last edited by

                          @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... 😄

                          1 Reply Last reply Reply Quote 0
                          • S Online
                            SlightlyGrilled @Giebmasse
                            last edited by

                            @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
                            
                            1 Reply Last reply Reply Quote 0

                            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
                            • First post
                              Last post