Spring Compile is Slow, Big, and Depends on MinGW

Spring Compile is Slow, Big, and Depends on MinGW

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Spring Compile is Slow, Big, and Depends on MinGW

Post by REVENGE »

I compiled Spring successfully, but the file is about 2.5 times bigger than the release exe, the framerate is extremely low, my CPU usage is extremely high, and the exe depends on MinGW stuff to run.

I'm using the latest MinGW release + the spring MinGW stuff + cmake. Am I not checking the right compiler flags or what? What is the exact method used to build the release exes?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by Auswaschbar »

Make sure you set build type to "RELEASE", cause ti defaults to a debug build.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by REVENGE »

Auswaschbar wrote:Make sure you set build type to "RELEASE", cause ti defaults to a debug build.
K, will try.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by REVENGE »

Which flags should I set for best optimization? What are the memory manager stuff and the GML stuff? I've tried GML_SIM before, but it's thrown a sh*ton of errors at me ingame.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by Auswaschbar »

REVENGE wrote:Which flags should I set for best optimization? What are the memory manager stuff and the GML stuff? I've tried GML_SIM before, but it's thrown a sh*ton of errors at me ingame.
You should leave the other options on the default at first. Most of them are disabled for a reason.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by REVENGE »

Auswaschbar wrote:
REVENGE wrote:Which flags should I set for best optimization? What are the memory manager stuff and the GML stuff? I've tried GML_SIM before, but it's thrown a sh*ton of errors at me ingame.
You should leave the other options on the default at first. Most of them are disabled for a reason.
Ok. I'm going to compile with GML since that seems to work fine. Also set the march_flag to core2, if that makes any difference.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring Compile is Slow, Big, and Depends on MinGW

Post by Auswaschbar »

REVENGE wrote:
Auswaschbar wrote:
REVENGE wrote:Which flags should I set for best optimization? What are the memory manager stuff and the GML stuff? I've tried GML_SIM before, but it's thrown a sh*ton of errors at me ingame.
You should leave the other options on the default at first. Most of them are disabled for a reason.
Ok. I'm going to compile with GML since that seems to work fine. Also set the march_flag to core2, if that makes any difference.
Yes, there is a good chance it will desync you.
Post Reply

Return to “Engine”