How to Compile Supermodel for Windows from Latest SVN Code

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby rokfpoewrkcpoqwkcp » Wed Sep 02, 2020 4:00 pm

deleted
Last edited by rokfpoewrkcpoqwkcp on Fri Sep 25, 2020 7:44 pm, edited 1 time in total.
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Jiterdomer » Thu Sep 03, 2020 12:03 am

Thanks to the 820 update, I can finally compile my own version of Supermodel for my post! Bart, what is that NEW_FRAME_TIMING option feature?
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Bart » Thu Sep 03, 2020 8:04 pm

It no longer does anything and ought to be removed.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby michaelg1234 » Mon Sep 07, 2020 12:06 am

YAY! i can compile again. As said before, adding "-j plus the number of cpu cores" to "mingw32-make -f Makefiles\Makefile.Win32" helps speed up the compile time.
michaelg1234
 
Posts: 8
Joined: Mon Sep 30, 2019 12:03 am

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Jiterdomer » Mon Sep 07, 2020 1:28 am

Don't forget the SDL2_net.dll file when you build if you have the NET_BOARD = 1 variable on Options.inc. I tried using the -j command at the end of "mingw32-make -f Makefiles\Makefile.Win32" (no quotes) command will speed up the compilation time. This method is way faster than using Visual Studio which is more expensive and a lot of time to load whereas this, you use Command Line and compile, that's it.
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Bart » Mon Sep 07, 2020 5:26 pm

I actually saw -j4 fail the other day with Musashi. I guess I must have an error in my Makefile in terms of how dependencies are specified or some other subtle race condition. Certain files were not present at the right time and boom! But simply running Make again resumes where it picked off if that ever happens to you.

Let us know if you ever experience a build that crashes mysteriously as I have seen this. There are some issues in Supermodel that need to be fixed (all those compiler warnings are pointing to some real problems). Would be interesting to benchmark a gcc build against an MSVC build on a slower CPU (or just run unthrottled). Someone should also investigate link-time optimization (LTO) in gcc.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby michaelg1234 » Mon Sep 07, 2020 11:06 pm

Oh and it compiles just fine in windows powershell in case anyone was wondering. I always set -j to one less than my cpu core count, in my case -j7 for a quad (8 thread) amd rizen 5.

GCC compile time in windows powershell 5.1, 48 seconds.
michaelg1234
 
Posts: 8
Joined: Mon Sep 30, 2019 12:03 am

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby VFer97 » Sun Sep 13, 2020 4:21 am

Thanks a lot Bart for the updated simplified method to compile Supermodel.
It worked like a breeze this time! Finally I can compile it myself :D
10年早かったか
User avatar
VFer97
 
Posts: 17
Joined: Sat May 30, 2020 12:51 am
Location: Madrid, Spain

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Bart » Sun Sep 13, 2020 4:37 pm

VFer97 wrote:Thanks a lot Bart for the updated simplified method to compile Supermodel.
It worked like a breeze this time! Finally I can compile it myself :D


Awesome :) This is definitely the way to go and I highly recommend doing this rather than relying on builds of unknown provenance.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: How to Compile Supermodel for Windows from Latest SVN Co

Postby Bart » Sun Sep 13, 2020 8:34 pm

Interestingly, I just tried measuring the performance impact of different optimization flags and found none. Using different permutations of -flto, -march=skylake, -O2, -O3, and -Ofast had no effect. I suspect the optimizer just can't do much given how the code is structured. The PowerPC emulator relies on indirect calls to tables of function pointers, which works against the compiler's optimizer. I do not think I've hit any sort of GPU bottleneck because I get the same results at 496x384 as at 1280x1024.

L.A. Machineguns runs at 160-175FPS during game play for me when the frame rate is uncapped.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

PreviousNext

Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 1 guest