Sign in to follow this  
Mali61

[GUIDE]Speed Up Build Time For FreeBSD

2 posts in this topic

https://github.com/blackdragonx61/Metin2-Speed-Up-Build-Time

For this tutorial, your PC must supports virtualization technology.

Spoiler

 

I tested in this machine: https://github.com/blackdragonx61/Metin2-Update-C-Status

FreeBSD 12 + Clang-9 + 2 GB Ram:

 

Benchmarks:

Spoiler

Game: 2 min.
DB: 26 sec.

1- Enable virtualization technology(SVM Mode). I enabled at bios. But you can do this whit different ways:

2- Enable VT at VirtualBox: 

Spoiler

68747470733a2f2f692e6962622e636f2f7a684d

3- Enable I/O APIC at VirtualBox: 

Spoiler

68747470733a2f2f692e6962622e636f2f4d324a

4- Change Processor setting. Before check your CPU Core Count:

Spoiler

68747470733a2f2f692e6962622e636f2f304a6e

68747470733a2f2f692e6962622e636f2f424c4b

Usage:

Don't use gmake j command like: gmake -j20
Usage:
gmake -j(core+1)
Example I have 4 cores: gmake -j5

 

  • Like 4

Share this post


Link to post
Share on other sites

Great, thanks for sharing! Another good thing is CCache, which drastically decreases compilation time by using cache, though it can sometimes be buggy for small modifications. Though I rarely use it

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.