There seem some flaws that I found while perusing this chapter. First off, while working on the XNAPerfStarter, it tells you to call all methods for JIT-ing, but it doesn't in the book; it leaves of the following methods:
IntializeTransformWithPreDetermineAspectRatio()
RotateWithoutMod()
RotateWithMod()
RotateElseIf()
*is there a specific reason for leaving these off?
Additionally, when I try to run the program, after referencing XNAPerformanceChecker, and compiling the same Windows Game Library Project, if get the following error:
----------------------------------------------------------------------------------------------------------------------------------------
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'XNAPerformanceChecker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'XNAPerformanceChecker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at XNAPerfStarter.Program.Main(String[] args)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
----------------------------------------------------------------------------------------------------------------------------------------
*What did I do wrong?
Could someone tell me? I have no idea what to do. I'm new to XNA.
Thanks a lot!