Optimized? TBE versus C++ NET 2003, reduced framerate
by starwize · in Torque Game Engine · 05/12/2005 (10:25 am) · 11 replies
I had originally been using TBE to compile my projects but I went ahead and bought the Visuall C++ NET book and installed the compiler. Now I have a funny problem: the framerate of my compiled version of Tourque (with Synapsis Lighting Pack) runs noticeably slower than the vesion I compiled under TBE. I was really surprised to see this and wondered if I missed some optimization step in C++ NET. Has anyone else experienced this difference? Any advice would be more than welcome.
BTW, love the new site deisgn!
BTW, love the new site deisgn!
About the author
#2
05/12/2005 (10:53 am)
The .NET framework is bytecode interpreted in many areas. But the compiler itself can produce non-.NET code just fine.
#3
Also you can DL the VS 2003 optimized compiler and replace a few files from there to your install and viola you have the real optimizing compiler.
05/12/2005 (10:54 am)
2 things to check, first and foremost a the top it will tell you which kind of build you want to do a debug or final, debug will greatly reduce framerate.Also you can DL the VS 2003 optimized compiler and replace a few files from there to your install and viola you have the real optimizing compiler.
#4
05/12/2005 (11:13 am)
You're only using bytecode if you're using Managed C++ or C# or something. If you got Torque to compile at all, you're not doing that.
#5
Also, Jonathan made a point I didn't investigate. There probably are project setting that are not set (versus those preset in TBE). This is something I'll check shortly. Same with the graphics libraries: I believe they are the same but I will check this.
Thanks again for the help.
05/12/2005 (11:34 am)
Thanks much for the quick replies. It is building tourque_debug.exe, so I assume that it is building the debug version (not final). How would I change the settings in C++ NET so that it would compile a final version?Also, Jonathan made a point I didn't investigate. There probably are project setting that are not set (versus those preset in TBE). This is something I'll check shortly. Same with the graphics libraries: I believe they are the same but I will check this.
Thanks again for the help.
#6
05/12/2005 (12:38 pm)
In the target drop-down, change it from debug to release.
#7
05/12/2005 (12:56 pm)
That did it, David. I changed to Release, compiled, runs great now. Thanks!
#8
-Ron
05/12/2005 (2:05 pm)
I thought the version that came with books was some form of a limited compiler with less that superior (or none at all) optimization...-Ron
#9
While I'm not sure what version comes with the book, you can download the optimized compiler and setup VS 2003 to use it as David stated.
05/12/2005 (2:55 pm)
@RonWhile I'm not sure what version comes with the book, you can download the optimized compiler and setup VS 2003 to use it as David stated.
#10
05/12/2005 (2:57 pm)
The book version simply doesn't include many of the optimization algorithms. You can still access debug and release information (as a compiler without debug options is rather worthless). You just don't get the optimizations. MS did release a download of it, though. I'm not sure about the specifics of the licensing.
#11
05/15/2005 (9:07 am)
C++.NET 2003 Standard does not come with the optimizing compiler. Only C++.NEt 2003 Professional does (which only comes in the Visual Studio.Net Professional package). Though you can still do as David stated.
Torque 3D Owner Jon Fernback
There may also be settings in your project options to set optimizations in .NET to allow the use of specialized instruction sets like MMX and SSE. These options were probably preset in TBE for torque, but wouldnt be in a .NET project. The other thing I would check is the graphic libraries that .NET is trying to use. Are they the same libs that TBE was using? Just a few guesses on my part.