piellepi wrote:I'm again here!
right clicking the solution file, in "properties/C++/Command Line" I suppose there is the complete list of optimizations and compile switches!!
My list is the following (obtained with cut and paste)
--------------------------------------------------------------------------------------------------------------------------
/O2 /Oi /Ot /Oy /GT /GL /I ".\src" /I ".\windows\inc" /I ".\windows\inc\libintl" /I ".\windows\inc\libpng" /I ".\windows\inc\libz" /I ".\windows\inc\spice" /I ".\windows\inc\lua-5.1" /I ".\windows\inc\libjpeg" /D "CELX" /D "LUA_VER=0x050100" /D "USE_SPICE" /D "WINVER=0x0400" /D "_WIN32_WINNT=0x0400" /D "_CRT_SECURE_NO_DEPRECATE" /FD /EHsc /MD /Fo"Release\\" /Fd"Release\vc90.pdb" /nologo /c /TP /errorReport:prompt
--------------------------------------------------------------------------------------------------------------------------
I think a quick comparison with Guillermo's list will give the solution!!!
Pierluigi
Please note that we made a number of last minute changes to the optimizations after extensive discussions in the Dev list. Guillermo may not have these implemented.
I advise to be careful here, since some of the matter is tricky:
-- ChrisL is/was using VC++2008
without service pack when this discussion took place
-- I am using since a while VC++2008
SP1-- it was discussed in the net/MS that there seems to be a bug in SP1 that makes some optimizations uneffective!
To cope with these issues both for no SP and SP1, we have deactivated some optimizations at the very end, just before the release version. However, we made sure by many benchmark runs that with the present celestia.sln, users get optimal performance of celestia.exe.
Presumably, Guillermo was unaware of these subtleties, since he is not a member of the Dev team. Clearly, there may be already small differences in code size due to these facts and the differences between no SP and SP1 compilations.
In general, I would advice to use the optimization flags that we recommend. As I mentioned already, they were carefully chosen...
Fridger