FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Does Supcom work with windows 11?

    Scheduled Pinned Locked Moved General Discussion
    28 Posts 13 Posters 4.6k Views
    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.
    • arma473A Offline
      arma473
      last edited by

      Please focus only on the question that @soulgamer31 asked, which is if anyone is aware of any FAF bugs that are specific to Windows 11.

      Is anyone aware of any bug, unwanted behavior, or significant performance decrease, that only happens when you run FAF in Windows 11, but not when you run FAF in Windows 10? If so, please report it here.

      This isn't the right thread to talk about minor performance issues or performance optimization.

      1 Reply Last reply Reply Quote 0
      • FemboyF Offline
        Femboy Promotions team
        last edited by

        none at all

        FAF Website Developer

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

          I have been running windows 11 for nearly month and developing the client and noticed no issues

          1 Reply Last reply Reply Quote 0
          • S Offline
            soulgamer31
            last edited by

            Okay, thanks for the answers guys. I think im going to bite the bullet and try upgrading. I'll report back here if i encounter any problems. Cheers

            olesO 1 Reply Last reply Reply Quote 0
            • olesO Offline
              oles @soulgamer31
              last edited by

              @soulgamer31 Hey! Could you please share experience on how does FAF (and windows 11) working for you?

              1 Reply Last reply Reply Quote 0
              • T Offline
                thecore
                last edited by

                I have upgraded to Windows 11 and have found there is no issues with FAF client or Supreme Commander Forged Alliance. In fact I haven't seen any issues with any of my older games. Windows 11 does feel faster than Windows 10 so for me so worth the upgrade.

                Never Fear, A Geek is Here!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Corsaire
                  last edited by

                  Does work on Windows11 on Mac M1 with the faf-client executable set on "Safe emulation"
                  https://docs.microsoft.com/en-us/windows/uwp/porting/apps-on-arm-program-compat-troubleshooter

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Corsaire @Corsaire
                    last edited by

                    @corsaire said in Does Supcom work with windows 11?:

                    Does work on Windows11 on Mac M1 with the faf-client executable set on "Safe emulation"
                    https://docs.microsoft.com/en-us/windows/uwp/porting/apps-on-arm-program-compat-troubleshooter

                    One bit of advice however, it "works" but has a desynchonization problem.
                    See this topic https://forum.faforever.com/topic/2796/desync-on-all-replays-and-games-with-windows-11-arm-on-m1-max-apple/6

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

                      This is not necessarily an issue with Windows 11 but rather the hardware it is running on. If the hardware performs non deterministic calculations or gets different answers than other machines the game will desync.
                      Not much to do with windows 11 I believe

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Corsaire @Sheikah
                        last edited by

                        @sheikah
                        Couldn't it be possible to reinforce the code for those calculations to make them really identical?
                        I mean having two computers giving different results for a same calculation is kind of, bad.

                        Makes you remember the infamous Pentium processor floating point hardware bug...

                        Programs such as Matlab does tons of calculations and don't get throw out the windows whatever the processor or the OS that makes them run.

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

                          @corsaire said in Does Supcom work with windows 11?:

                          I mean having two computers giving different results for a same calculation is kind of, bad.

                          This happens all the time. Particularly floating point numbers (in comparison to doubles) is easy prey to giving different results. It may be small, but if it determines whether something got hit then suddenly you have a desync. You can read this article that scratches the surface of the issue.

                          A work of art is never finished, merely abandoned

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            Corsaire @Jip
                            last edited by

                            @jip That's a nice article you got here.
                            Interestingly it points to a possible solution for the case we are facing.

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

                              A solution if we had access to the source code of the engine - which we do not :sad_cowboy:

                              A work of art is never finished, merely abandoned

                              Dragun101D 1 Reply Last reply Reply Quote 0
                              • K Offline
                                Katharsas
                                last edited by Katharsas

                                We would not be able to rip out floating points out of the egine even if we had source code access. Maths, graphics and physics libraries for games and even C++ compilers all usually are written explicitely for floating point numbers instead of simulating it with fixed point arithmetic. Switching away from floating point, if at all possible, would probably result in an engine too slow to be usable.

                                And for little reason, becasue the imprecision of floating point is not really the problem here. A problem only appears if the imprecision varies from machine to machine. If you use the exact same hardware/software, you will still have floating pint imprecision, but it will be the exact same imprecision on every machine, so the game will not desync.

                                However, when hardware is emulated you often run into problems where the emulation has to do things slightly different than real hardware for performance reasons.

                                Anyway that doesn't matter much because we still need engine source to find problems with the strictness of FP operations.

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

                                  @katharsas said in Does Supcom work with windows 11?:

                                  And for little reason, becasue the imprecision of floating point is not really the problem here. A problem only appears if the imprecision varies from machine to machine. If you use the exact same hardware/software, you will still have floating pint imprecision, but it will be the exact same imprecision on every machine, so the game will not desync.

                                  I think this is incorrect.

                                  In the CPU when processing floats they are processed using full precision instead of 32 bits. However, when the thread is taken off the processor the intermediate result is stored back into 32 bits (as it is a float and not a double). This can cause any computation to divert.

                                  I think in FA they use double precision for everything. I know that at least Lua uses double precision by default.

                                  A work of art is never finished, merely abandoned

                                  K 1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Corsaire
                                    last edited by

                                    I was thinking, it is probably a very naive thought but, can the calculation be done by another code, like a mod?
                                    Or is it something that is done by a part that is untouchable?

                                    1 Reply Last reply Reply Quote 0
                                    • Dragun101D Offline
                                      Dragun101 @Jip
                                      last edited by

                                      @jip said in Does Supcom work with windows 11?:

                                      A solution if we had access to the source code of the engine - which we do not :sad_cowboy:

                                      We do legit have access to alot of the games' code. While not helpful for above problem I do think it is worth stressing that we do have alot going for other games don't.

                                      I’m a shitty 1k Global. Any balance or gameplay suggestions should be understood or taken as such.

                                      Project Head and current Owner/Manager of SCTA Project

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Corsaire @Dragun101
                                        last edited by

                                        @dragun101 said in Does Supcom work with windows 11?:

                                        We do legit have access to alot of the games' code. While not helpful for above problem I do think it is worth stressing that we do have alot going for other games don't.

                                        hmmm, so you think that it would be possible to have a look into this matter?

                                        1 Reply Last reply Reply Quote 0
                                        • Dragun101D Offline
                                          Dragun101
                                          last edited by

                                          No, Jip knows the code better than I do. I am just saying how lucky we are in general.

                                          I’m a shitty 1k Global. Any balance or gameplay suggestions should be understood or taken as such.

                                          Project Head and current Owner/Manager of SCTA Project

                                          1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            Katharsas @Jip
                                            last edited by Katharsas

                                            @jip said in Does Supcom work with windows 11?:

                                            @katharsas said in Does Supcom work with windows 11?:

                                            And for little reason, becasue the imprecision of floating point is not really the problem here. A problem only appears if the imprecision varies from machine to machine. If you use the exact same hardware/software, you will still have floating pint imprecision, but it will be the exact same imprecision on every machine, so the game will not desync.

                                            I think this is incorrect.

                                            In the CPU when processing floats they are processed using full precision instead of 32 bits. However, when the thread is taken off the processor the intermediate result is stored back into 32 bits (as it is a float and not a double). This can cause any computation to divert.

                                            I think in FA they use double precision for everything. I know that at least Lua uses double precision by default.

                                            I think you are talking about putting values into/out of registers, because speaking of threads does not make much sense in this context. If your CPU context switches your thread into/out of the hardware, it should also restore/backup any register values.

                                            The only thing that your CPU is doing is executing instructions. If the same instruction does the same thing on every CPU that you want to support, you can safely use that instruction without ever running into problems. I am not sure why expanding a float to a double and back would change anything about that.

                                            If you know to which instructions your code is compiled by your C++ compiler, you can probably make sure that only the ones are used that are consistent for every CPU that is relevant.

                                            Here is an example of the amount of options you have on windows these days:
                                            https://docs.microsoft.com/en-us/cpp/build/reference/fp-specify-floating-point-behavior?view=msvc-170

                                            I have no idea if those options are enough or if they result in code that is too slow, there are usually a ton of trafe-offs to consider here. For a usefull insight we would have to

                                            • know which instructions create the problem for the emulator
                                            • why and how often the game uses those instructions
                                            • if those instructions can be replaced with an equivalent that does not run into the same problem

                                            @Corsaire
                                            In general nothing is really impossible, but you would need to do reverse engineering and answer all the questions stated above. And even if you know the exact problem it it might be unfeasable to patch (for example due to problematic instruction(s) being used everywhere in the code or the replacement instruction(s) being larger than the original instruction).

                                            JipJ 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post