SoftPixel Forum

Official community of the SoftPixel Engine and the SoftPixel Sandbox (REGISTRATION only with consultation with the Admin)
It is currently Mon Oct 23, 2017 12:45 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Dec 29, 2012 10:53 am 
Offline

Joined: Sat Dec 29, 2012 10:47 am
Posts: 8
Hi
First of all congratulations on writing this very nice engine
very well written , lots of features .. i'll try to improve it's visibility since the community doesn seem to be too big.

And second ...
is there any reason why you don't use precompiled headers ?

It takes a really ... realllllllllyyy ...REALLLY long time to compile ....
or am i doing someting wrong ?

Cheers
Mihai.


Top
 Profile  
 
PostPosted: Sat Dec 29, 2012 11:14 am 
Offline
Site Admin
User avatar

Joined: Sat Jul 07, 2012 5:58 pm
Posts: 540
Location: Germany
I think compiling the engine once should not be a problem.
But when you are developing the enigne further it can be very annoying, yes.

BTW: why you no using pre-compiled headers when it's too long for you?
Another problem is that there are still many parts I'm changing also some base headers.

Greedings,
Lukas

_________________
My latest project:
- The XièXiè Programming Language

My hardware:
- GIGABYTE GeForce GTX 670
- Intel Core i7 (Ivy-Bridge)
- 16 GB DDR3


Top
 Profile  
 
PostPosted: Sat Dec 29, 2012 7:46 pm 
Offline

Joined: Sat Dec 29, 2012 10:47 am
Posts: 8
Actually i'm using precompiled headers :D
Full rebuild with only opengl and nothing else
49682 ms
which is still a lot in my book but it;s way better now
I also created separate projects for jpeglib , pnglib and zlib so they dont get recompiled when the precompiled header is changed.

And since i hate Cmake with all my guts I did this in premake http://industriousone.com/premake
if anyone is interested i can share the premake.lua file

btw i didn't modify a single line of code for this
Visual Studio has a nice little feature ...force include :)

Now getting back to precompiled headers ...
When you are developing the engine they CAN be very HELPFULL :D
take a look at this article http://gamesfromwithin.com/the-care-and-feeding-of-pre-compiled-headers
It says at some point Don’t put any headers from the library itself in the pre-compiled headers.

Well i didn't do that yet since I'm still trying to figure out the engine and why it's taking so long to compile...

So far i have 2 main suspects ...

    File Inclusion

here i think windows.h is included everywhere
and i could not at least define WIN32_LEAN_AND_MEAN
http://blogs.msdn.com/b/oldnewthing/archive/2009/11/30/9929944.aspx
and of course all other std stuff ..vector list etc etc

    Template Instation

I suspect this is a real problem since
without PCH EVERY obj file has around 8MB
and the whole fodler has around 400MB

with PCH obj size drops to around 1-2 MB (albeit the pch file is 80MB) but
the whole obj folder is now 130MB

A nice little tool to find out what is your obj files is this http://www.cheztabor.com/dumpbinGUI/index.htm

I kind of suspect string and stringstream classes to be the main culprits.

I'll keep you updated if i make any progress in this direction.

Cheers
Mihai


Top
 Profile  
 
PostPosted: Tue Dec 02, 2014 5:44 am 
Offline

Joined: Tue Dec 02, 2014 5:42 am
Posts: 2
BTW: why you no using pre-compiled headers when it's too long for you?

_________________
Enjoy the real success with Brain Dumps.com exam and 642-883 training programs and latest bentley.edu Also prepare for next level with quality marygrove


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group